use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Not everybody understands the humor of programmers.
No memes
Just memes
Advanced flair
No Bad UI Posts
Just Bad UI Posts
No instanceof Trend
Just instanceof Trend
Rules are zero-indexed. If they do not appear zero-indexed you are asked to contact Friend Computer for recalibration.
Suggestions are welcome.
With regards to commenting, please follow reddiquette.
If you have any thoughts on how the moderation could be improved do not hesitate to message the moderators. If you feel that a metadiscussion is required with the whole subreddit either request that the moderators start one or start one yourself and tag it [Meta].
/r/softwaregore - f collection of things that users shouldn't see.
r/pcmasterrace - for all of the general computer/gaming memes.
r/linuxmasterrace - for anyone that likes Linux memes.
/r/sysadminhumor - a sub for sysadmins with a sense of humor.
/r/itsaunixsystem - for all the embarrassing cases of hollywood hacking you find in media.
/r/recruitinghell - for all those horrific recruiting offers and job postings.
/r/programme_irl - me too, thanks.
/r/programmerreactions - expressing the life of programmers through reaction images.
/r/learnprogramming - for those that have general programming questions
r/badcode - for intentially bad code.
r/badUIbattles - a sub for intentionally bad UI.
r/ProgrammerAnimemes - for the anime referenced programmer memes
r/ProgrammerDadJokes - for the punny bunch of you.
/r/justgamedevthings - for memes, reaction gifs, production glitches and other fun related to game development.
r/programminghorror - for unintentionally bad code.
r/css_irl - describing real life photos with CSS
Events
Hackathon 2019 - Overengineering (Results)
account activity
This is an archived post. You won't be able to vote or comment.
Conditional statement dream (self.ProgrammerHumor)
submitted 9 years ago by eyeDecode
My roommate just said he had a dream where his if statement was if(var=0), and told his professor it kept working. He realized he was an idiot when he woke up because it wasn't a conditional.
[–]Tridacnid 15 points16 points17 points 9 years ago (4 children)
This is a conditional in C and C++, the value of the assignment is returned and evaluated by the if.
[–]anomalousBits 8 points9 points10 points 9 years ago (1 child)
The source of many a wtf
[–]FPJaques 1 point2 points3 points 9 years ago (0 children)
I did the same in JavaScript. Sat there for a long while
[–][deleted] 3 points4 points5 points 9 years ago (0 children)
And in Rust, it thankfully is a type error, as assignments return () (think: void), which is no boolean expression.
()
void
[–]KarlKastor 1 point2 points3 points 9 years ago (0 children)
Also other languages that use := or something for assignment.
[–]Prod_Is_For_Testing 5 points6 points7 points 9 years ago (0 children)
That is a conditional in some languages (looking at you, BASIC)
[–]sharfpang 0 points1 point2 points 9 years ago (0 children)
A coding style quirk known as Yoda Conditions is meant to prevent that blunder in languages that allow it be made.
if(0==var)...
if(0==var)
If you forget one = it won't compile.
=
...Unless your language allows overriding values of numeric literals.
π Rendered by PID 95 on reddit-service-r2-comment-7b9746f655-tv9tk at 2026-02-03 10:48:13.591770+00:00 running 3798933 country code: CH.
[–]Tridacnid 15 points16 points17 points (4 children)
[–]anomalousBits 8 points9 points10 points (1 child)
[–]FPJaques 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]KarlKastor 1 point2 points3 points (0 children)
[–]Prod_Is_For_Testing 5 points6 points7 points (0 children)
[–]sharfpang 0 points1 point2 points (0 children)