this post was submitted on 19 Mar 2024
1309 points (98.9% liked)

Programmer Humor

26354 readers
920 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 2 years ago (7 children)

it's a great candidate. It was my first "real" languages (i.e. the first language, that is not php/js)

you have a text file. then call the compiler on it, and then you have a exe file, that you can run. It does exactly what it is supposed to do without thinking about the browser, the webserver, the JVM, or some other weirdness.

I get, that doing "good cpp" is difficult. And using all the weird languages features is difficult. But as long as you use strings, ints, ifs, fors, you should be fine. Just don't use generics, templates, new (keep everything on the stack), multi-inheritance, complex libraries, and it's a nice beginner language.

[–] [email protected] 5 points 2 years ago (4 children)

Maybe it's C that's a good first language, though I would admit that the basic ouputting of values to stdout is more intutive in C++.

[–] [email protected] 9 points 2 years ago (3 children)

this std::cout << "hello world" bullshit is in no way intuitive. You're using the bit-shift operator to output stuff to the console? WTF? Why 2 colons? What is cout? And then these guys go on to complain about JS being weird...

No, C is where it's at: printf("hello world"); is just a function call, like all the other things you do in C.

[–] Sonotsugipaa 4 points 2 years ago

C is no beginner heaven either, printf is its own can of "why can this function have any number of arguments and why does the compiler have to complain about the formatting every 25 milliseconds" worms

load more comments (2 replies)
load more comments (2 replies)
load more comments (4 replies)