More specifically, they’re borrowing the more mathematical meaning of variables, where if you say x equals 5, you can’t later say x is 6, and where a statement like “x = x + 1” is nonsense. Using “let” means you’re setting the value once and that’s what it’s going to remain as long as it exists, while “var” variables can be changed later. Functional languages, which are usually made by very math-y people, will often protest the way programmers use operators by saying that =
is strictly for equality and variable assignment is :=
instead of ==
and =
in most C-style languages.
- 0 Posts
- 6 Comments
chaos@beehaw.orgto Programming@programming.dev•If AI is so good at coding - where are the open source contributions?5·1 month agoDo you think there’s any reason to believe that these tools are going to continue their breakneck progress? It seems like we’ve reached a point where throwing more GPUs and text at these things is not yielding more results, and they still don’t have the problem solving skills to work out tasks outside of their training set. It’s closer to a StackOverflow that magically has the answers to most questions you ask than a replacement for proper software engineering. I know you never know if a breakthrough is around the corner, but it feels like we’ve hit a plateau for the foreseeable future.
chaos@beehaw.orgto Linux@lemmy.ml•Why Vim Is More than Just an Editor – Vim Language, Motions, and Modes Explained5·1 month agoIt’s very good for navigating and editing text quickly, and fantastic for situations like “I need to do the same thing 100 times” with things like macros. Coders are frequently opening a big, complex file, jumping around it a lot, changing big and small parts of it, and doing repetitive tasks. For something more like writing out thoughts for an email, editing them slightly, then being done with that text forever, there aren’t as many advantages, you’re spending most of your time in “insert” mode which is effectively “normal text editor that people are used to” mode. That said, it’s one of those things where when you do get used to it and start to enjoy it instead of being frustrated by how different it is, you start wanting it wherever you have to type anything.
chaos@beehaw.orgto Programmer Humor@programming.dev•This will be *really* funny, until you remember 99% of current super hyped AI stuff is running on Python2·2 months agoLove a language that doesn’t care if you’re using inputs to get outputs or using outputs to get inputs
chaos@beehaw.orgto Linux@lemmy.ml•Retro, vaguely windows-95-looking linux distro that's actually usable and people like it?5·2 months agoI think you’re thinking of SerenityOS (although it isn’t actually a Linux):
ITT: people saying “the US and China both seem bad” and being told that they obviously just want to kiss America square on the lips because China has never done anything bad ever