3 ms·
I think C and C++ are excellent languages to start on. Not Python though. Here's why: C and C++ are close to the metal, and learning about memory, how it's a
by john_the_writer 3y ago
I think C and C++ are excellent languages to start on. Not Python though.
Here's why:
C and C++ are close to the metal, and learning about memory, how it's allocated and how it's used is super important later. Not perhaps for a while but knowing how memory works and how DB paging works 100% does come into play when working with higher level languages.
The problem with learning it later is. Why bother? If you learned how to use a calculator first you'd never learn to multiply. Why bother?
Once you're in the working world you don't have time to do deep dives, into why your app is slow, you just add more hardware.
If you learned Ruby first (a language I personally use every day), then you'd miss all the subtleties.
Now for why Python is a bad first language. Python has frozen memory, and that's hard to explain. It's hard to look at the down sides of the language if you don't understand why they're bad. (not that I don't think it's a good language)
Like in Elixir, there's no while loop. Recursion is often used to simulate it. BUT, that's so much slower than while and for.
I think Uni is the last great time we get to really learn something, with no other thought, than "I need to learn this"
- eternityforest 3y agoI don't see why you'd need more than a few months at most of C to get a general ability to guess what high level language functions will be fast and which will be slow, which is the main thing people need that for. I wonder if they could just teach Rust first and jump right in with a language that has both low level capability and might actually get used IRL outside of low level drivers and legacy stuff(And suckless experiments).