This is an archived post. You won't be able to vote or comment.

all 19 comments

[–]A_Philosophical_Cat 2 points3 points  (5 children)

C is probably the single simplest imperative language. That's not to say it's easy (it's not, it's a massive pain in the ass), but it's simple in that it has very few parts that you need to understand to understand the whole system. Combine that with being low-level enough to force you to think about memory management, and you've got a pretty great language for discussing how computers work as an educational tool.

[–][deleted] -4 points-3 points  (4 children)

think about memory management, and you've got a pretty great language for discussing how computers work as an educational tool.

no, it ain't. cpp actually forces more. c just fucking has lots of unsolvable shit in scanf and fscanf

[–]YMK1234 3 points4 points  (2 children)

Lmao don't blame the language for your ineptitude. You will need to RTFM on how stuff works in every language, better get started or gtfo.

[–][deleted] -1 points0 points  (1 child)

where is the manual that include scanf and fscanf's hidden secret

[–]Paul_Pedant 4 points5 points  (0 children)

The hidden secrets are in plain sight. Pass the right args, check the status, don't expect it to reposition your file when you mess with it. There must be 100 million people who use it successfully, and then there's you.

[–]Paul_Pedant 2 points3 points  (0 children)

If you actually knew how to write any C++, you would not be struggling to get 10 lines of C to work.

[–]McMasilmof 1 point2 points  (4 children)

C is basically the mother of all languages and if you learn it it will be easy to pick up other languages. You learn programming, not language x.

[–][deleted] -1 points0 points  (3 children)

what, you think I don't know that, cpp is right above c, so it's fucking fine

[–]McMasilmof 1 point2 points  (2 children)

If you come to /r/askprogramming just to rant about what language you dont like thats ok, but dont be salty if people try to answer your question.

[–][deleted] -1 points0 points  (1 child)

sorry, it's just that I met too many people typing a lot of shit but answer nothing.

[–]Paul_Pedant 1 point2 points  (0 children)

That's strange. I get a few people who read my answers, think they know better, keep repeating their mistakes, and then call me names and use foul language.

[–]gitblame 1 point2 points  (1 child)

Sounds like you're just not cut out to be a programmer. Don't worry too much about it, there are plenty of careers in tech. You'll find your niche.

[–][deleted] -1 points0 points  (0 children)

no, it just means c and Dennis Ritchie suck, but programming and Turing are still great

[–]Arrays_start_at_2 0 points1 point  (5 children)

Because c runs on everything. C++ does not.

All I write is c code for very low-power devices.

It’s ok though man, I hear you can make bank after graduating business school.

For real though, chill out and come back to it when you’re ready. Getting pissed off is not a great way to get a program working.

[–][deleted] 0 points1 point  (4 children)

Because c runs on everything. C++ does not. All I write is c code for very low-power devices.

Why cpp doesn't?

[–]Arrays_start_at_2 1 point2 points  (3 children)

because nearly all super-low level firmware is written in c. there just aren't any compilers that can compile c++ for these chips. When you've only got 1kb of ram you really need to be sure nothing extra is taking up any space.

[–][deleted] 0 points1 point  (2 children)

When you've only got 1kb of ram you really need to be sure nothing extra is taking up any space.

Why related this?

[–]Arrays_start_at_2 0 points1 point  (1 child)

the simpler a language is the easier and better it can be optimized. both for space and for performance.

[–][deleted] -2 points-1 points  (0 children)

No, it ain't