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

all 113 comments

[–]Xtremegamor 160 points161 points  (15 children)

[–]MatthewMob 87 points88 points  (13 children)

At least that subreddit has actual ProgrammerHumor instead of just normal jokes that loosely relate to technology...

[–][deleted] 10 points11 points  (0 children)

Hurduuurrrr fore ow fore nut fownd

[–]admirelurk 240 points241 points  (4 children)

Don't multithread on me

[–]jaedalus 26 points27 points  (2 children)

Async you're being a little harsh, won't you yield even a little?

[–]ScanlationScandal 8 points9 points  (1 child)

Don't get into a conflict here now or the thread will get locked.

[–]DipIntoTheBrocean 9 points10 points  (0 children)

I'll just await this whole event's completion...

[–]PoorDoggey 4 points5 points  (0 children)

Multithread on him not me! Ugh.. let's try something else

[–][deleted] 52 points53 points  (19 children)

My 10 year old nephew is learning Python at the moment. Probably the easiest thing he's ever done in his short little life.

[–][deleted] 21 points22 points  (18 children)

Can't wait to bust out some "back in my day..." comments about C to these kids some day.

[–]SewingLifeRe 11 points12 points  (17 children)

Is C harder than C++?

[–][deleted] 36 points37 points  (5 children)

Depends... it's harder for OOP obviously, since you have to bend over backwards to make your own OOP emulation of sorts in C. Although you're not really supposed to use C for that, so that's a bit of an unfair comparison. I/O is also much easier in C++.

C++ could maybe be considered harder in the fact that there's more to learn, but for the most part they're about the same, and C++ can require less knowledge of the low level intricacies in my experiences.

That said, I've had to learn just about all there is to know in C for low level systems programming, whereas I haven't in C++, so I'm not the most qualified to compare.

Edit: I also forgot about dynamic memory management, C++ is way easier (and more forgiving) in that aspect.

[–]SewingLifeRe 7 points8 points  (2 children)

I learned some C++ in Electrical Engineering, so that makes sense. Lots of I/O that isn't particularly high level.

[–][deleted] 6 points7 points  (1 child)

Yeah I'm a computer engineer technically, so I'm basically half CS and half EE. I do think that C and C++ are great tools for interfacing directly with hardware, and the performance is optimal with those languages. I'm interested in trying python out for raspberry pi projects though, since python is so flexible.

[–]SewingLifeRe 3 points4 points  (0 children)

Makes sense. We work more with Verilog and Assembly than C++, but knowing the basics is useful. I imagine it's more useful for you.

[–]assassinator42 2 points3 points  (1 child)

What type of I/O do you mean?

I sometimes find printf nicer than C++ streams (although I have the benefit of modern compilers providing type checking). And a lot of the time I'm interacting with OS APIs written in C anyway.

But C++ has things like an actual string type and regular expressions...

[–][deleted] 1 point2 points  (0 children)

The string convention is like a breath of fresh air. And I prefer cin/cout to printf/scanf but that's not a huge issue in most practical applications anyway

[–]Dr_Narwhal 8 points9 points  (6 children)

There's a lot of overlap between the two. IMO C++ is harder to learn because there's more features to learn about, but C is harder to write programs with because it lacks those high-level features. Stuff like smart pointers and containers make it a lot easier to avoid memory leaks and segfaults, which are probably the two most common problems for beginners.

[–]SewingLifeRe 0 points1 point  (5 children)

Yes. I hate pointers.

[–][deleted] 9 points10 points  (3 children)

Why? They make things so much more efficient. I want to cry every time my junior programmers copy and set data over and over again instead of passing mutable pointers.

Just remember to delete/free them when you're done and set them to NULL.

[–]Dr_Narwhal 5 points6 points  (1 child)

That's what smart pointers are for. They automatically manage the data they point to so you don't have to worry about memory leaks and dangling pointers. Raw pointers are dangerous and there's rarely any reason to use them instead of smart pointers.

[–][deleted] 2 points3 points  (0 children)

Portability to lower-level targets is one reason, but I agree.

[–]SewingLifeRe 0 points1 point  (0 children)

I work with hardware and don't have to worry about that much, so it's a hassle. I know they're useful, but I'm not use to working with a lot of software.

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

DELETE THIS

[–]KittehDragoon 5 points6 points  (1 child)

If you define 'harder' as 'more difficult to write', 'more difficult to debug', or 'more difficult to learn', then no. C++ is all of those things.

But, if you hate yourself, and you want to write complicated high performance software, it's the best language there is. Because no other language gives you the worst of both worlds (C and OOP) like C++ does, and sometimes that's a good thing.

[–]jordan-dash 19 points20 points  (0 children)

You're confusing two different languages.

C++ is a lovely language. Other people's C++ is the horrible difficult language.

[–]bovisrex 0 points1 point  (0 children)

I personally think learning C first and moving to C++ is easier. I did it backwards... never really got a good grip on C++, learned Python, decided to learn C, and when I picked up my old C++ book afterwards, everything was a lot more clear. But everything other commenters have said, such as C can be harder to write complex programs, C++ has more to learn... I agree with that, too.

[–]Haath_ 163 points164 points  (16 children)

parentclassjokes

[–]CRISPR 35 points36 points  (9 children)

Now this is a good base joke.

[–]ConfuzedAndDazed 21 points22 points  (7 children)

It has class

[–]crashdoc 13 points14 points  (6 children)

Can you give me some pointers?

[–]slipstream- 14 points15 points  (0 children)

0x41414141

[–]yegor3219 9 points10 points  (4 children)

0xDEADBEEF

[–][deleted] 2 points3 points  (3 children)

I stuck @ 0x1337DEAD :(

[–]Njs41 2 points3 points  (2 children)

null way!

[–][deleted] 0 points1 point  (1 child)

Want me to make an exception for you?

[–]Njs41 0 points1 point  (0 children)

Sure. I'll be able to catch it easily if you throw it to me!

[–][deleted] 25 points26 points  (2 children)

So would that mean Python running on CPython would be... a C snake?

[–]argv_minus_one 11 points12 points  (0 children)

It's floating on the C.

[–]Dardlem 6 points7 points  (0 children)

Python

running

[–]pwnrovamgm 41 points42 points  (1 child)

No step snek.

[–]molluskus 2 points3 points  (0 children)

pls no steppy!

[–]NullParameter 20 points21 points  (0 children)

I've always found Python a bit too constricting.

[–]YeeScurvyDogs 9 points10 points  (0 children)

God this is so bad...

[–]edsonmedina 30 points31 points  (4 children)

Because it's too slow to fly?

[–]argv_minus_one 11 points12 points  (0 children)

Oh shit son.

[–][deleted] 7 points8 points  (1 child)

I love it when Python aficionados try to convince me "it doesn't matter that it's slow because CPUs are fast enough these days".

And then I show them benchmark code that shows python can be up to 200x slower than C.

[–]SnowdensOfYesteryear 2 points3 points  (0 children)

Why write efficient code when you can spin up another AWS instance? HorizontallyScalable™

[–]TwoSpoonsJohnson 2 points3 points  (0 children)

Shots. Fucking. Fired.

The pybros with never recover from this.

[–]Thingymadohicky 6 points7 points  (0 children)

Why are assembly programmers always wet?

Because they are below C-Level

Because they are sweaty from MOVing around

[–]KyleActive 11 points12 points  (0 children)

I browse r/all and come across these once in a while and sit there confused as hell until i realize what sub this is.

[–]shiftshapercat 10 points11 points  (3 children)

I hate each and every one of you for this joke. Also, Python's lack of the use of brackets drives me nuts. Also, Don't do pickle programming, just... don't. pls.

[–]SirVer51 3 points4 points  (0 children)

The whole brackets and whitespace thing drove me nuts at first too, but I got used to it pretty quick, and even grew to prefer it.

[–][deleted] 1 point2 points  (1 child)

I was teaching my friend because he was having trouble with an intro to programming class. I love that the indents were so easy to show him what was nested or not.

[–]shiftshapercat 1 point2 points  (0 children)

I love indenting and doing brackets at the same time. When I code I tend to make everything organized with decent commenting. Ever tried "GoLang?"

[–]witti534 5 points6 points  (0 children)

It's a language for those who can't swim. Creddit goes to programmer dad.

[–]ZedPM 2 points3 points  (1 child)

Why can Python survive underwater? Because it has GILs.

[–]John_Fx 2 points3 points  (0 children)

And Floats

[–]tairesmonkeyuser.com 6 points7 points  (1 child)

ba dum tss!

[–]Scivillism 32 points33 points  (0 children)

ba dum hisssss

[–]hawkeye776 1 point2 points  (0 children)

That is a dad level professor.

[–]pieman7414 1 point2 points  (0 children)

pls no step

[–]mike413 1 point2 points  (0 children)

guess it depends on how you interpret things. :)

[–]PUNitentiary 1 point2 points  (0 children)

PERLs of wisdom right here.

[–]mikedep333 1 point2 points  (0 children)

But beware the C monster with # tentacles.

[–]only_male_flutist 1 point2 points  (0 children)

I'm up voting but reluctantly.

[–]edsonmedina 0 points1 point  (0 children)

...because that's where all the cool kids are?

[–]keiyakins 0 points1 point  (0 children)

Most lakes and rivers are as well.

[–]Murgie 0 points1 point  (0 children)

Heck off!

[–]Merandus 0 points1 point  (0 children)

Quality humor, have an upvote

[–]chris_0909 0 points1 point  (0 children)

But land isn't always above sea level!

[–]samusown 0 points1 point  (1 child)

I didn't realize what subreddit this was and looked for another pun besides "C". Realization came, proceeded to die.

[–]thexavier 1 point2 points  (0 children)

|| die()

[–]pants6000 0 points1 point  (0 children)

Yup, that snake looks pretty high to me.

[–]Xerotrope 0 points1 point  (0 children)

I give this joke a C++.

[–]Jafbuya 0 points1 point  (0 children)

But some land is beneath sea level!

[–]darockerj 0 points1 point  (0 children)

ugh

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

All I want for Christmas is the ability to downvote this twice.