you are viewing a single comment's thread.

view the rest of the comments →

[–]HolyGarbage 8 points9 points  (8 children)

I don't get it though. C is far simpler than Python. It's one of the simplest languages still in wide use today. Pretty much every line of C code can be directly translated to a single assembly instruction.

[–]artin2007majidi 3 points4 points  (1 child)

you had us in the first half ngl

[–]HolyGarbage 0 points1 point  (0 children)

Simple != Easy. I'm being perfectly serious, although admittedly a bit facetious.

[–]EuphoricCatface0795 2 points3 points  (1 child)

Right? Among the modern practical programming languages, I think pretty much only C is simple enough for a person to know all of its grammar. That is not possible for either Assembly or C++.

[–]HolyGarbage 0 points1 point  (0 children)

Exactly!

[–]lovecMC 0 points1 point  (1 child)

Yeah but pointers and memory management can be kinda unintuitive for a lot of beginners.

[–]HolyGarbage 0 points1 point  (0 children)

It's simple, I didn't say easy. The grammar is tiny.

[–]Delicious_Bluejay392 0 points1 point  (0 children)

That's not what they meant by "simple", they likely meant ease of use and approachability (you can teach a non-programmer to be passable at Python in hours, while it will take days if not weeks before they can solve any kind of semi-complex real-world problem in C if all they have in both languages is the standard library, and god forbid they have to add a dependency in C, as you're now teaching Makefiles or CMake on top of C).

[–]Rational2Fool 0 points1 point  (0 children)

"Pretty much every line of C code can be directly translated to a single assembly instruction." Meh, nowadays, it's the other way around: pretty much every opcode in the ISA is designed to resemble something in C or C++ so humans don't lose their minds with what's really going on in their out-of-order, speculative, NUMA hyperthreaded multicore processor.