[-] FizzyOrange@programming.dev 2 points 3 weeks ago

Yeah IntelliJ does amazingly without type annotations but even it can't do everything. E.g. if you're using libraries without type annotations, or if you don't call functions with every possible type (is your testing that good? No.)

Static types have other benefits anyway so you should use them even if everyone in your team uses IntelliJ.

[-] FizzyOrange@programming.dev 2 points 3 weeks ago

Honestly I would take a look through a good standard library that provides a lot of algorithms (e.g. C++ or Rust). That has the basics, especially for data structures.

Also have a go at some hacker rank tests. Especially if you want to learn dynamic programming (abysmal name), they absolutely love that.

[-] FizzyOrange@programming.dev 2 points 1 month ago

No but I think this is probably a great use case for AI. Haven't tried it though.

[-] FizzyOrange@programming.dev 2 points 1 month ago

It doesn’t look like it would be hard to have (comment "foo bar baz") in an expression

That is pretty much what the official "solution" is for comments in package.json - add "//": "foo bar baz" keys to dictionaries and NPM will ignore them.

In practice it's terrible. You need real comments.

[-] FizzyOrange@programming.dev 2 points 1 month ago

If that were really true then they would give users with 100k rep some benefit of the doubt when it comes to questions... but nope. Still get closed as "too vague" by people who haven't even heard of the thing you're asking about.

[-] FizzyOrange@programming.dev 2 points 1 month ago

I’m pretty senior, having been in the industry for some time, so I tend not to be asking the questions that will have a million examples out there

Me too, but this was C++ where there isn't a strong culture of making high quality libraries available for everything (because it doesn't have a proper package manager, at least until very recently), so you do end up having to reinvent the wheel a fair bit.

And sometimes you just need things a bit different to what other people have done. So even though there are a gazillion expression parsers out there (so the LLM understood it pretty well) there are hardly any that support 64-bit integers. But that's a small enough difference that it can deal with it.

[-] FizzyOrange@programming.dev 2 points 2 months ago

It's definitely not cheating. But you also do need to understand what you're doing.

[-] FizzyOrange@programming.dev 2 points 2 months ago

I agree. Even when copilot gets something completely wrong it's usually easier to think "no that's wrong, it should be this" than "ok the first line of code should be...".

It completely solves the "blank page" problem.

[-] FizzyOrange@programming.dev 2 points 3 months ago

It has them, but you can't use them from a single-file script. You have to set up a pyptoject.toml, create a venv and then pip install . in it. Quite a lot of faff. It also makes some things like linting in CI way harder than they should be because the linters have to do all that too.

With Deno a single .ts file can import third party dependencies (you can use any URL) and Deno itself will take care of downloading them and making them available to the script.

Some other languages have this feature to certain degrees. E.g. I think F# can do it, and people are working on it for Rust, but Deno is at the forefront.

[-] FizzyOrange@programming.dev 2 points 4 months ago

The kitty graphics protocol lets you send images to display in the terminal. I had a play around with it trying to make a similar GUI. The big gotcha is text rendering. You can either stick to normal grid aligned monospace, or I think you could maybe use a texture atlas, but it's not going to be very efficient at all. I haven't got as far as trying that though.

The videos... while they work are probably uncompressed video which is only going to work well over a very fast network.

[-] FizzyOrange@programming.dev 2 points 5 months ago

Python is going to die eventually. It's too slow and the infrastructure is too painful for it to survive super long term.

It's ridiculous popular now though so it's going to take decades to die down.

[-] FizzyOrange@programming.dev 2 points 6 months ago

Luckily I didn't have to - I found a Github issue where someone else had. Don't ask me how they figured it out!

view more: ‹ prev next ›

FizzyOrange

joined 1 year ago