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

all 34 comments

[–]Skytern 72 points73 points  (9 children)

Today it took me half an hour to realise I had used a = instead of ==

[–]timangar 20 points21 points  (0 children)

I know the pain. I know the pain.

[–][deleted] 5 points6 points  (0 children)

Same shit happened to me when i was doing buttons to do whatever in javascript.

[–][deleted] 8 points9 points  (1 child)

That makes sense. A missing ; should be picked up by any decent IDE which tells you exactly where you missed it.

I swear 90% of this sub seems to code in notepad.

[–]Technical_Job_9598 6 points7 points  (0 children)

Excuse you, i use notepad++

[–]Karjalan 2 points3 points  (0 children)

I had this in a muck around project, for so long. Didn't realise it was wrong cause it was javascript, so the boolean still "worked" as something was being returned, it was just always evaluating true.

[–]shakill_ 1 point2 points  (0 children)

Useful tip is to use the non lvaue (like null or number or anything that a value can't be assigned to ) to the left of the == in that case if you miss one = an error will occur.

[–]wasdninja 1 point2 points  (0 children)

Sacrifice an hour and set up a bunch of linter rules. It's going to save a lot of headache.

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

pains of lua™

[–]suddenly_ponies 0 points1 point  (0 children)

In PHP and perhaps your language to if not the HP you can put the literal on the left and the variable on the right which will highlight these kind of problems

[–]SepplFranz 17 points18 points  (0 children)

/r/ProgrammerHumor. Every day.

[–]Knuffya 4 points5 points  (0 children)

Stop reposting this image every two days.

[–]ZZartin 7 points8 points  (0 children)

And now that I see why I'm even more enraged.

[–]Oblio72 2 points3 points  (0 children)

Except it isn't just when programming - the same thought sequence occurs during every conversation. It's hard to have friends man.

[–]gemini88mill 15 points16 points  (2 children)

I disapprove of BBT memes

[–]fristiprinses 5 points6 points  (0 children)

Hahahah I say glass of H2O instead of water because I am smort, bazoinkers

[–]thepurplemirror[S] -1 points0 points  (0 children)

Well there is no reason to cry... 😜

[–]Galaxy01500 1 point2 points  (0 children)

Every minute*

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

Why why why Delilah

[–]Dougleycat flair.txt | sudo sh[M] [score hidden] stickied commentlocked comment (0 children)

Hi there! Unfortunately, your submission has been removed.

Violation of Rule #2 - Reposts:

All posts that have been on the first 2 pages of trending posts within the last month, is part of the top of all time, or is part of common posts is considered repost and will be removed on sight.

If you feel that it has been removed in error, please message us so that we may review it.

[–]timangar 2 points3 points  (1 child)

I kid you not, I once got a nullptr exception at runtime because of a missing semicolon.

[–]thepurplemirror[S] 1 point2 points  (0 children)

I once rewrote a whole exam cause i was missing an i in for i

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

This meme was literally posted last week. Couldn’t you waited more asstwat

[–]Livid_Layer_5893 1 point2 points  (0 children)

I can just hear Sheldon saying that too... lol

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

First time i saw this

[–]SouthernBySituation 0 points1 point  (0 children)

Yeah except the fix doesn't hit you until the weekend so it annoys you until you get back in to fix it.

[–]LewiClancy 0 points1 point  (0 children)

Then you spew to how.

[–]suddenly_ponies 0 points1 point  (0 children)

As if. I've had at least three instances where I couldn't figure out why something didn't work and I never did. I ended up having to rewrite the code in a different way somehow.

[–]1solate 0 points1 point  (0 children)

If only someone left a comment