subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
hed82
g55bcdk
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>``` Seven seven = new Seven(7); ```<|eor|><|sor|> SevenFactory sevenFactory = new SevenFactory(); Seven seven = sevenFactory.createSeven(7);<|eor|><...
428
programminghorror
the_hair_of_aenarion
g55ofio
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>Oh dear. Its not your fault but you may have had more luck it you used something like mathematical constants or days_of_the_week. Something that has a reason t...
269
programminghorror
pqpm
g568cs1
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>I just hope that's the first time they do python... Programming can be confusing the first time...<|eor|><|sor|>I remember being confused with variables and as...
240
programminghorror
pqowie313
g55jxkk
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>``` Seven seven = new Seven(7); ```<|eor|><|sor|> SevenFactory sevenFactory = new SevenFactory(); Seven seven = sevenFactory.createSeven(7);<|eor|><...
197
programminghorror
fppt1
g55igjx
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>Ah yes, no whitespace and semicolon on python<|eor|><|eols|><|endoftext|>
196
programminghorror
SnappGamez
g55hjx0
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>``` Seven seven = new Seven(7); ```<|eor|><|sor|> SevenFactory sevenFactory = new SevenFactory(); Seven seven = sevenFactory.createSeven(7);<|eor|><...
160
programminghorror
hosford42
g56dig0
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>I just hope that's the first time they do python... Programming can be confusing the first time...<|eor|><|sor|>I remember being confused with variables and as...
145
programminghorror
YM_Industries
g56m3om
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>I just hope that's the first time they do python... Programming can be confusing the first time...<|eor|><|sor|>I remember being confused with variables and as...
125
programminghorror
BaBaBaBass
g55qq1u
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>Your student should try JavaScript. It wouldnt surprise me if assigning a different value to 7 would work there.<|eor|><|eols|><|endoftext|>
108
programminghorror
Migeil
g561hij
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>Ah yes, no whitespace and semicolon on python<|eor|><|sor|>Cause that's the biggest problem with that code.. <|eor|><|eols|><|endoftext|>
98
programminghorror
TheJP_
g566l84
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>hey OP quick question: what the fuck<|eor|><|eols|><|endoftext|>
87
programminghorror
CamiloDFM
g574e8e
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>Oh dear. Its not your fault but you may have had more luck it you used something like mathematical constants or days_of_the_week. Something that has a reason t...
82
programminghorror
Somebodyunimportant7
g5601cc
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>I just hope that's the first time they do python... Programming can be confusing the first time...<|eor|><|sor|>I just hope that's also the last...<|eor|><|sor...
58
programminghorror
tangerinelion
g561a8p
<|sols|><|sot|>The question was to assign 7 to a variable named seven. I have failed as a teacher.<|eot|><|sol|>https://i.redd.it/xq7cynoydym51.png<|eol|><|sor|>I just hope that's the first time they do python... Programming can be confusing the first time...<|eor|><|sor|>I just hope that's also the last...<|eor|><|sor...
56
programminghorror
arbenowskee
f6axrs
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|eols|><|endoftext|>
4,727
programminghorror
lxpnh98_2
fi3mie7
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|eols|><|endoftext|>
411
programminghorror
rguzgu
fi3qfpb
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|sor|>Hmm I wonder if there was a **function** in programming languages tha...
350
programminghorror
henrebotha
fi3qfgi
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>The worst code I every worked on was a 500 line recursive function that calculated something financial. You'll be fine, just get in there.<|eor|><|sor|>> a 500 line recursive function could be w...
291
programminghorror
Vallvaka
fi42qpy
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>Looks like a state machine that got out of hand. Something similar exists in the game VVVVVV, which went open source a little while ago. [Behold, a ~3200 line switch statement](https://github.co...
221
programminghorror
CallingOutYourBS
fi3xodw
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|sor|>Hmm I wonder if there was a **function** in programming languages tha...
213
programminghorror
BOTzzz
fi3kq4p
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>I want to know.. NOW<|eor|><|eols|><|endoftext|>
163
programminghorror
Hohenheim_of_Shadow
fi3kz4r
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>All things considered, it could be much worse. With 2 64 bit floats for X,Y position of the mouse state, there are 2^128 possible states. Thats 10^38 possible states or ~1...
134
programminghorror
LovesGettingRandomPm
fi3qw0d
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|sor|>Hmm I wonder if there was a **function** in programming languages tha...
122
programminghorror
inxaneninja
fi3m6ep
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>What do you mean it looks fi- oh my god.<|eor|><|eols|><|endoftext|>
75
programminghorror
Igoory
fi3v94z
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>Me: >What is wrong? It seems just a switch of mouse states. >Wait... A switch of mouse states..? That can't be... >\* Sees the next line number * >Oh shit lol<|eor|><|eols|><|endoftext|>
70
programminghorror
SybariticLegerity
fi3q297
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>All things considered, it could be much worse. With 2 64 bit floats for X,Y position of the mouse state, there are 2^128 possible states. Thats 10^38 possible states or ~1...
61
programminghorror
Atsch
fi3s4xo
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>All things considered, it could be much worse. With 2 64 bit floats for X,Y position of the mouse state, there are 2^128 possible states. Thats 10^38 possible states or ~1...
61
programminghorror
PizzaRollExpert
fi3w706
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|sor|>Hmm I wonder if there was a **function** in programming languages tha...
61
programminghorror
teckcypher
fi4671v
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>Looks like a state machine that got out of hand. Something similar exists in the game VVVVVV, which went open source a little while ago. [Behold, a ~3200 line switch statement](https://github.co...
59
programminghorror
goedegeit
fi444o8
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|sor|>Hmm I wonder if there was a **function** in programming languages tha...
51
programminghorror
Xadnem
fi3lnel
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>I want to know.. NOW<|eor|><|sor|>Please show us more of this monstrosity OP.<|eor|><|eols|><|endoftext|>
50
programminghorror
h4xrk1m
fi4xkgk
<|sols|><|sot|>I am scared to expand this switch statement....<|eot|><|sol|>https://i.redd.it/bb9fos5bzvh41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh, don't worry, most of that is basically the same code copy-pasted over and over again.<|eor|><|sor|>Hmm I wonder if there was a **function** in programming languages tha...
42
programminghorror
viru023
iimu0i
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|eols|><|endoftext|>
4,605
programminghorror
ThatSwedishBastard
g37rh71
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>It's such a shame that there are no other software that you can use to write code. Like an editor with macros, a visual editor - perhaps even improved!<|eor|><|e...
806
programminghorror
waffle299
g37ray1
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Microsoft Code is free, also downloadable from Microsoft, and AUTO BALANCES CLOSING BRACES. Sorry, I don't mean to shout. But as a thirty year veteran of C/C++,...
311
programminghorror
Anino0
g37shfk
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>It's such a shame that there are no other software that you can use to write code. Like an editor with macros, a visual editor - perhaps even improved!<|eor|><|s...
264
programminghorror
s3_gunzel
g37rqp7
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Word 2007 no less!<|eor|><|eols|><|endoftext|>
203
programminghorror
mpinnegar
g37tccc
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Microsoft Code is free, also downloadable from Microsoft, and AUTO BALANCES CLOSING BRACES. Sorry, I don't mean to shout. But as a thirty year veteran of C/C++,...
173
programminghorror
Little-Helper
g382asx
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>It's such a shame that there are no other software that you can use to write code. Like an editor with macros, a visual editor - perhaps even improved!<|eor|><|s...
120
programminghorror
evestraw
g3816ni
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>```At least use a mono spaced font you monster```<|eor|><|eols|><|endoftext|>
116
programminghorror
YM_Industries
g37ss62
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Word 2007 no less!<|eor|><|sor|>On Windows 7, which is EOL.<|eor|><|eols|><|endoftext|>
103
programminghorror
YM_Industries
g37sqvx
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Microsoft Code is free, also downloadable from Microsoft, and AUTO BALANCES CLOSING BRACES. Sorry, I don't mean to shout. But as a thirty year veteran of C/C++,...
102
programminghorror
Avineofficial
g37yu06
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>It's such a shame that there are no other software that you can use to write code. Like an editor with macros, a visual editor - perhaps even improved!<|eor|><|s...
101
programminghorror
oshunman
g37r8e5
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Capitalization is unimportant in c++, right?<|eor|><|eols|><|endoftext|>
75
programminghorror
s3_gunzel
g37t25e
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Word 2007 no less!<|eor|><|sor|>On Windows 7, which is EOL.<|eor|><|sor|>Theyre both EOL. But dont let that get in the way of teaching someone C++!<|eor|><|eols|...
73
programminghorror
oshunman
g37sfyt
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Capitalization is unimportant in c++, right?<|eor|><|sor|>no, correct caps are extremely important<|eor|><|sor|>Oh gee really? That explains why Word won't compi...
71
programminghorror
shinx32
g37snm3
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>The state of education is a joke here. And people wonder why they can't find a job after getting degrees !<|eor|><|eols|><|endoftext|>
63
programminghorror
harryisahorcrux
g37xoet
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>The real horror here is the clrscr(); I could deal with Word for presentation purposes, but that's part of old Borland DOS compilers. There's no excuse for that,...
63
programminghorror
rMeMeMeMe
g37vn6b
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Microsoft Code is free, also downloadable from Microsoft, and AUTO BALANCES CLOSING BRACES. Sorry, I don't mean to shout. But as a thirty year veteran of C/C++,...
63
programminghorror
viru023
g37xctb
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Im just curious, why are you taking a programming lecture on a mobile phone? Where do you write down your notes then? Or is the whole class that bad, that this d...
49
programminghorror
shinx32
g37vpwp
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Word 2007 no less!<|eor|><|sor|>On Windows 7, which is EOL.<|eor|><|sor|>They still teach C/C++ in India with TurboC, a 40 year old IDE. EOL is something that's ...
47
programminghorror
CocoKittyRedditor
g37sb7z
<|sols|><|sot|>Happens only in India. My professor teaching me cpp programming on Microsoft word<|eot|><|sol|>https://i.redd.it/w8cs58fekvj51.jpg<|eol|><|sor|>Capitalization is unimportant in c++, right?<|eor|><|sor|>no, correct caps are extremely important<|eor|><|eols|><|endoftext|>
46
programminghorror
IsraelMason2
ylvoyf
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|eols|><|endoftext|>
4,604
programminghorror
doterobcn
iv0flu6
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|eols|><|endoftext|>
1,610
programminghorror
Dinkypig
iv0l89n
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>Let me tell you a story that's about 10 years old. Company hires guy. Guy is bad at things. Guy make...
1,063
programminghorror
das_Keks
iv0f8te
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>Wait, it's not only completely unnecessary, it's even wrong.<|eor|><|eols|><|endoftext|>
637
programminghorror
IvanBeefkoff
iv0nh6s
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>Let me tell you a story that's about 10 years old. Company hires guy. Guy is bad at things. Guy make...
414
programminghorror
Padgriffin
iv0xzs3
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>Let me tell you a story that's about 10 years old. Company hires guy. Guy is bad at things. Guy make...
236
programminghorror
oliver_a
iv0kcsc
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>Please check if commit date was April 1st. I hope it was.<|eor|><|eols|><|endoftext|>
214
programminghorror
LaPlimbare
iv1o2zr
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>Wait, it's not only completely unnecessary, it's even wrong.<|eor|><|sor|>Some junior went home feeling good and thinking "today I was productive because I used a lot of abstraction and I wrote a lot of code, today a ...
190
programminghorror
Deadlock542
iv0gqha
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>I am no longer surprised by my fellow humans when it comes to acts of sheer stupidity.<|eor|><|eols|><|e...
100
programminghorror
da_hooman_husky
iv19ve7
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>When I worked at Amazon this kind of BS was how people got promotions and avoided write ups... Tech industry is dying as this crap is what they consider "raising the bar"<|eor|><|eols|><|endofte...
100
programminghorror
abd53
iv0h5tw
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>You don't need "a drink", you need a whole factory of drink. Also, me too<|eor|><|eols|><|endoftext|>
95
programminghorror
DumbAceDragon
iv0xe9n
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>Hope this was wrapped in a nice `public class BoolComparator`<|eor|><|eols|><|endoftext|>
93
programminghorror
kakamiokatsu
iv0i2wd
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>return val1 == val2;<|eor|><|sor|>Wrong, it's actually `return val1 != val2;`<|eor|><|eols|><|endoftext|>
70
programminghorror
Familiar_Ad_8919
iv0ib7i
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>return val1 == val2;<|eor|><|sor|>Wrong, it's actually `return val1 != val2;`<|eor|><|sor|>return !(val1==val2); edit: return !!!(!val1!=!!val2);<|eor|><|eols|><|endoftext|>
67
programminghorror
R3D3-1
iv1d1e6
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>Let me tell you a story that's about 10 years old. Company hires guy. Guy is bad at things. Guy make...
67
programminghorror
Bogdan_X
iv0h32v
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>At least they used guard clause.<|eor|><|eols|><|endoftext|>
64
programminghorror
Dinkypig
iv0noqj
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>Let me tell you a story that's about 10 years old. Company hires guy. Guy is bad at things. Guy make...
62
programminghorror
danjr
iv1k0w9
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>This can't be true. I refuse to believe somebody defined two functions to produce the wrong result.<|eor|><|sor|>Let me tell you a story that's about 10 years old. Company hires guy. Guy is bad at things. Guy make...
62
programminghorror
DreamingDitto
iv0oqfa
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>At least they used guard clause.<|eor|><|sor|>If youre gonna write bad code, you might as well write clean bad code<|eor|><|eols|><|endoftext|>
53
programminghorror
Garegin16
iv2jjo1
<|sols|><|sot|>I'm also coming with you.<|eot|><|sol|>https://i.redd.it/1dmje2sn0xx91.jpg<|eol|><|sor|>Wait, it's not only completely unnecessary, it's even wrong.<|eor|><|sor|>Some junior went home feeling good and thinking "today I was productive because I used a lot of abstraction and I wrote a lot of code, today a ...
53
programminghorror
JayCroghan
i4pl1i
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|eols|><|endoftext|>
4,566
programminghorror
AngelOfLight
g0jugli
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I used to work with a guy who would literally regard a successful build as the goal of every task he was assigned. Never ran anything to check if, you know, it actually worked. It was frustrating as all hell. I say 'used to w...
289
programminghorror
SirChasm
g0k6y6c
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>No one's bringing up the "dear" part in that convo? That's a fucking weird thing to say to a coworker.<|eor|><|eols|><|endoftext|>
186
programminghorror
nighthawk648
g0jqt1r
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Or more like dear honey honey honey what a dilema we have here. See my boo, no not you dear baby, my other boo, no not johnny from accounting with the sick pivot table, my OTHER boo, has an emergency pe...
166
programminghorror
sirreldar
g0kih8l
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>No one's bringing up the "dear" part in that convo? That's a fucking weird thing to say to a coworker.<|eor|><|sor|>My initial impression is that english is not their first language. Nearly every other message has a grammatica...
134
programminghorror
JayCroghan
g0kbqe0
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>No one's bringing up the "dear" part in that convo? That's a fucking weird thing to say to a coworker.<|eor|><|soopr|>This particular girl I have a feeling tries to be over-friendly/flirty to compensate for being useless. Toda...
116
programminghorror
JayCroghan
g0kcks3
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>Happened to me once during game jam. I wasnt reviewing code, but my team mate send me code without running and testing it, claiming that it just going to work. As its easy to guess - no, it wasnt working and I needed to quick...
111
programminghorror
Szevin
g0ju60d
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Or more like dear honey honey honey what a dilema we have here. See my boo, no not you dear baby, my other boo, no not johnny from accounting with the sick pivot table, my OTHER boo, has an emergency pe...
72
programminghorror
AngelOfLight
g0k8ou1
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I used to work with a guy who would literally regard a successful build as the goal of every task he was assigned. Never ran anything to check if, you know, it actually worked. It was frustrating as all hell. I say 'used to w...
72
programminghorror
currentlyatwork1234
g0k4h74
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I used to work with a guy who would literally regard a successful build as the goal of every task he was assigned. Never ran anything to check if, you know, it actually worked. It was frustrating as all hell. I say 'used to w...
59
programminghorror
gnutrino
g0jr8f8
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I'm currently learning programming and I will soon be posting some of my projects and contributing but I heard this happens often when people make pull requests. I know it happens but does it really happen often?<|eor|><|sor|>...
58
programminghorror
bricked_machine
g0k2vzz
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>Ugh. I had a coworker until recently (now gone from the company) that was the laziest developer I've encountered. In addition to his sheer lack of willingness to solve the simplest problems on his own, there was more than on...
54
programminghorror
Digitally_Depressed
g0jqvak
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I'm currently learning programming and I will soon be posting some of my projects and contributing but I heard this happens often when people make pull requests. I know it happens but does it really happen often?<|eor|><|eols|...
41
programminghorror
rbt321
g0kdjzt
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I used to work with a guy who would literally regard a successful build as the goal of every task he was assigned. Never ran anything to check if, you know, it actually worked. It was frustrating as all hell. I say 'used to w...
41
programminghorror
kikinace
g0jyr2q
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>What? How is this not instinctual? How are you not just naturally curious if when you push that green button the code does/ doesn't do what you thought? How has he gotten anywhere :/ meanwhile I can't even get an internship.....
39
programminghorror
figuresys
g0jswio
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>I'm currently learning programming and I will soon be posting some of my projects and contributing but I heard this happens often when people make pull requests. I know it happens but does it really happen often?<|eor|><|sor|>...
39
programminghorror
LeJoker
g0k281e
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>Just fire him/her. Worthless.<|eor|><|sor|>Someone should make a bot to detect comments with "him/her" or "he/she" or "(s)he", and recommend them using "them" or "they".<|eor|><|sor|>No, please. Reddit has enough shitty bots.<...
37
programminghorror
IceSentry
g0liym8
<|sols|><|sot|>Whats a code review?<|eot|><|sol|>https://i.imgur.com/QIBrMm4.jpg<|eol|><|sor|>Happened to me once during game jam. I wasnt reviewing code, but my team mate send me code without running and testing it, claiming that it just going to work. As its easy to guess - no, it wasnt working and I needed to quick...
36
programminghorror
Will_FS
igd9m6
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|eols|><|endoftext|>
4,544
programminghorror
ratmfreak
g2sxz0c
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>There are cases where a break in a for-loop is justified this is not one of them.<|eor|><|eols|><|endoftext|>
1,403
programminghorror
AyrA_ch
g2t61gj
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>There are cases where a break in a for-loop is justified this is not one of them.<|eor|><|sor|>Was going to say the same. Sometimes you only know the upper bound and not the actual value when the loop star...
355
programminghorror
Giocri
g2t5of1
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>That's a lot of work to increment a variable by one.<|eor|><|eols|><|endoftext|>
353
programminghorror
moomoomoo309
g2t67so
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>There are cases where a break in a for-loop is justified this is not one of them.<|eor|><|sor|>Was going to say the same. Sometimes you only know the upper bound and not the actual value when the loop star...
181
programminghorror
wabbadabbagabgab
g2sx7vx
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>Oof, I don't think the break is the only problem.<|eor|><|eols|><|endoftext|>
172
programminghorror
eatmorepies23
g2thbf6
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>That's a lot of work to increment a variable by one.<|eor|><|sor|>x = (x \* 1) + 1 - 0;<|eor|><|eols|><|endoftext|>
132
programminghorror
emelrad12
g2tb9gr
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>There are cases where a break in a for-loop is justified this is not one of them.<|eor|><|sor|>Was going to say the same. Sometimes you only know the upper bound and not the actual value when the loop star...
128
programminghorror
rMeMeMeMe
g2t7wsg
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>Programming has gone straight south since GOTO 10 Ah, those where the days.<|eor|><|eols|><|endoftext|>
87
programminghorror
Giocri
g2thqd6
<|sols|><|sot|>People on r/dankmemes trying to code<|eot|><|sol|>https://i.redd.it/a1ilkooms5j51.jpg<|eol|><|sor|>That's a lot of work to increment a variable by one.<|eor|><|sor|>x = (x \* 1) + 1 - 0;<|eor|><|sor|>Still more efficient because jumps are heavy operations.<|eor|><|eols|><|endoftext|>
87