Nim. Python-esque way to write, C speed
normalexit@lemmy.world 1 week ago
C is too cold. Python is too hot. What is just right?
ICastFist@programming.dev 1 week ago
squaresinger@lemmy.world 1 week ago
Python is 34 years old already. That means, someone who was already working as a programmer when Python came out would have to be about 54 years or older now.
I wonder why people still think it’s the hot new thing.
When Python came out, C was 19 years old. So Python is much older now than C was when Python came out.
normalexit@lemmy.world 1 week ago
I was thinking more along the line of Goldilocks and the three bears. What is the language that feels just right to you (given the obvious issues with C and Python)
squaresinger@lemmy.world 1 week ago
Makes sense what you are saying.
When it comes to programming languages, I like to think of them as tools for a job. All languages have advantages and downsides.
For server software Java is by far the best (especially if it’s supposed to scale). For web frontends it’s TypeScript. For very simple scripts that mostly call other tools it’s bash. For more complex scripts, non-performance-critical data processing and small projects it’s Python. For microcontroller work, C. For working on more performant microcontrollers C+Lua. For tests Groovy is surprisingly helpful. For game development GDScript or whatever your chosen environment supports.
The rest is just syntax. It doesn’t really matter whether I use curly braces or indentation.
I do like the old if-endif block style, but sadly that doesn’t really exist in mainstream languages anymore. Lua is the only thing that’s kinda similar, but they only use “end”, negating the advantage of being able to easier see where the “for” ends in a sea of “ifs”.
I guess bash does something similar too, but “fi” and “esac” really break my fingers (and then they don’t even do “elihw”).
mhague@lemmy.world 1 week ago
Haskell
squaresinger@lemmy.world 1 week ago
You know why functional programming languages don’t have side-effects?
Because nobody uses them.
resipsaloquitur@lemmy.world 1 week ago
Visual Basic.