subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
q1a2z3x4s5w6
hbci7j3
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Someone must have had a bad breakup with a programmer and is only making these to piss programmers off. I see no other explanation.<|eor|><|sor|>[deleted]<|eor|><|sor|>With plenty of red underl...
37
programminghorror
Fajiggle
hbbncgg
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Most of r/ProgrammerHumor are memes made by and for people that are just barely able to recognize something as code. Im happy it exists because it was really accessible for me when I was first ...
29
programminghorror
Shockz0rz
hbbb2aq
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>The boolean values! if (boolean == true). Just don't. Please. if (boolean) And no closing bracket. It's a good thing that's a onesie. That vomitous mass of code needs to be barfed on and...
29
programminghorror
WibblyWobblyWabbit
hbbwuid
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Most of r/ProgrammerHumor are memes made by and for people that are just barely able to recognize something as code. Im happy it exists because it was really accessible for me when I was first ...
24
programminghorror
kristianheljas
hbbb5za
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>The boolean values! if (boolean == true). Just don't. Please. if (boolean) And no closing bracket. It's a good thing that's a onesie. That vomitous mass of code needs to be barfed on and...
22
programminghorror
Ingenrollsroyce
hbc1j7u
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Does not compile.<|eor|><|sor|>Even if it would, there is no logic at all<|eor|><|sor|>It is baby logic, duh<|eor|><|eols|><|endoftext|>
16
programminghorror
terablast
hbbfnns
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>The boolean values! if (boolean == true). Just don't. Please. if (boolean) And no closing bracket. It's a good thing that's a onesie. That vomitous mass of code needs to be barfed on and...
15
programminghorror
Creapermann
hbc0kn8
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Does not compile.<|eor|><|sor|>Even if it would, there is no logic at all<|eor|><|eols|><|endoftext|>
13
programminghorror
KenaDra
hbe0l1o
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Apparently baby logic does not compile.<|eor|><|sor|>Thats illegal in Texas<|eor|><|sor|>if (baby.age < std::chrono::weeks(6)) { free(baby); }<|eor|><|eols|><|endoftext|>
11
programminghorror
Nulpart
hbcdfew
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Does not compile.<|eor|><|sor|>Even if it would, there is no logic at all<|eor|><|sor|>the baby would only cry once, then sleep forever!<|eor|><|eols|><|endoftext|>
11
programminghorror
_s_t_e_v_e_
hbbly19
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>The boolean values! if (boolean == true). Just don't. Please. if (boolean) And no closing bracket. It's a good thing that's a onesie. That vomitous mass of code needs to be barfed on and...
11
programminghorror
q1a2z3x4s5w6
hbcicp7
<|sols|><|sot|>Baby code<|eot|><|sol|>https://i.imgur.com/MiIk8V5_d.webp?maxwidth=640&shape=thumb&fidelity=medium<|eol|><|sor|>Most of these 'nerdy code shirts' have bad code and make real programmers cringe.<|eor|><|sor|>R E A L P R O G R A M M E R S<|eor|><|sor|>I'm a real programmer, I mainly code in html and css ...
8
programminghorror
UnwantedTelemarketer
u31c9z
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|eols|><|endoftext|>
727
programminghorror
faiface
i4mop9v
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|eols|><|endoftext|>
228
programminghorror
faiface
i4n30cw
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
111
programminghorror
faiface
i4nl6xw
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
55
programminghorror
Zodimized
i4nl36f
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
54
programminghorror
mastermindxs
i4n12qe
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
52
programminghorror
TitouanT
i4mkgn4
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>The second a < b and it's true branch are dead, rip<|eor|><|eols|><|endoftext|>
37
programminghorror
Ox7C5
i4ml6pf
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Whenever I want people to think I do black magic when programming, I show them a ternary. This ...
37
programminghorror
Reasonable_Feed7939
i4mwao9
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Use parentheses!! Or just not ternaries<|eor|><|eols|><|endoftext|>
30
programminghorror
Western-Trip2270
i4n6uy1
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>A few newlines and indentation would make way less horrific. <|eor|><|eols|><|endoftext|>
19
programminghorror
McGlockenshire
i4mzq8f
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Got this error in php today: Unparenthesized `a ? b : c ? d : e` is deprecated. Didn't kno...
16
programminghorror
ChickenNuggetSmth
i4n2x51
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
12
programminghorror
--var
i4mw5gw
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Got this error in php today: Unparenthesized `a ? b : c ? d : e` is deprecated. Didn't kno...
10
programminghorror
gdmzhlzhiv
i4nb149
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>I get the gist of this one but I can't i...
10
programminghorror
faiface
i4nboas
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>I get the gist of this one but I can't i...
10
programminghorror
UnwantedTelemarketer
i4nmgv8
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
9
programminghorror
ADHDengineer
i4nlll2
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Whenever I want people to think I do black magic when programming, I show them a ternary. This ...
8
programminghorror
warpedspockclone
i4o2t1s
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Whenever I want people to think I do black magic when programming, I show them a ternary. This ...
8
programminghorror
faiface
i4oh5gb
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Just to brag: `a + b + c > 2*max(a, b, c)`.<|eor|><|sor|>You may brag but may you also splain?<|e...
8
programminghorror
gdmzhlzhiv
i4naobz
<|sols|><|sot|>I didn't think about it until i started, then realized a ternary operator is the worst option for what i was doing because it would require this.<|eot|><|sol|>https://i.redd.it/jvumct9w9dt81.png<|eol|><|sor|>Got this error in php today: Unparenthesized `a ? b : c ? d : e` is deprecated. Didn't kno...
7
programminghorror
Old_Mate_Jim
k8yy9m
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
728
programminghorror
Aggravating_Future57
gf13apv
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
272
programminghorror
githux
gf14b3h
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
167
programminghorror
Old_Mate_Jim
gf13e2k
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
166
programminghorror
malsomnus
gf172n6
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
147
programminghorror
Zoom443
gf16ck4
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
124
programminghorror
DogmaSychroniser
gf1ci7e
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
121
programminghorror
DogmaSychroniser
gf1c3c3
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
93
programminghorror
Old_Mate_Jim
gf14kji
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
68
programminghorror
opfu
gf17pe2
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
61
programminghorror
Hobbamok
gf1sc0x
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
47
programminghorror
Zanderax
gf1jctq
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
46
programminghorror
DogmaSychroniser
gf1coms
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
33
programminghorror
bojant987
gf1g811
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
32
programminghorror
lonewarrior156
gf1giah
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
31
programminghorror
DogmaSychroniser
gf1cvsf
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
28
programminghorror
flmhdpsycho
gf161aq
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
27
programminghorror
gnutrino
gf1g7zn
<|soss|><|sot|>Found this gem of a function in a 42,000 line class named DbInteraction in a VB.Net application that I have to 'fix up'. 230 optional string parameters.<|eot|><|sost|>&#x200B; https://preview.redd.it/8y25dncknw361.png?width=1195&format=png&auto=webp&v=enabled&s=ab81ec6e328b44ba1f44a1ff2c93ce3338948abd<|...
27
programminghorror
tarunp_
acla87
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|eols|><|endoftext|>
727
programminghorror
filipoi
ed8wi4r
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|eols|><|endoftext|>
245
programminghorror
TabCompletion
ed91is8
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|>>Could be worse. For example: > >`private final static int FOUR = 3+2-1;` <|eor|><|sor|>>>Could be worse. For example: >> >>`private final static ...
104
programminghorror
sysop073
ed8tiff
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>why tho<|eor|><|sor|>Because they were taught "magic numbers are bad" but not taught why<|eor|><|eols|><|endoftext|>
100
programminghorror
JuanBautistaAlberdi
ed8zjui
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>just in case 4 changes its value in the future<|eor|><|eols|><|endoftext|>
97
programminghorror
Double_A_92
ed922bh
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>When you have to pass the "no magic numbers" test.<|eor|><|eols|><|endoftext|>
76
programminghorror
Thriven
ed8ztxh
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|>>Could be worse. For example: > >`private final static int FOUR = 3+2-1;` <|eor|><|eols|><|endoftext|>
65
programminghorror
1008oh
ed926q0
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|>>Could be worse. For example: > >`private final static int FOUR = 3+2-1;` <|eor|><|sor|>>>Could be worse. For example: >> >>`private final static ...
58
programminghorror
MaximeRnR
ed8yiya
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>why tho<|eor|><|sor|>Because they were taught "magic numbers are bad" but not taught why<|eor|><|sor|>If the name of your constants has no business meaning it is still magic numbers <|eor|><|eols|><|endoftext|>
46
programminghorror
fuishh
ed91vi7
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>To give some context to these posts: [this](https://www.reddit.com/r/programminghorror/comments/acdtcm/written_by_one_of_my_classmates/?st=JQIHTHRA&sh=95ec0698) and the above post are from a computer science class full of high...
44
programminghorror
DrMaxwellEdison
ed971s4
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|> private final static into ONE = 1; private final static into TWO = ONE + ONE; private final static into THREE = TWO + ONE; private ...
38
programminghorror
ElizaBennet08
ed8uh7q
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>You have to kill your classmates. They must be stopped before they start implementing this madness in the real world. <|eor|><|eols|><|endoftext|>
31
programminghorror
ZylonBane
eda8z94
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|> private final static into ONE = 1; private final static into TWO = ONE + ONE; private final static into THREE = TWO + ONE; private ...
31
programminghorror
AgentFransis
ed9d6a8
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>If it were strings, it would make _some_ sense as it would avoid extraneous string allocations since this is Java. But worrying about something like that doesn't matter for the vast majority of codebases out there.<|eor|><|sor|...
30
programminghorror
Wank-puffin
ed8tbd6
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>why tho<|eor|><|eols|><|endoftext|>
27
programminghorror
csgoose
ed8yf3i
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>why tho<|eor|><|sor|>Because they were taught "magic numbers are bad" but not taught why<|eor|><|sor|>If anything, this makes the numbers more magical in a way.<|eor|><|eols|><|endoftext|>
27
programminghorror
Megaknyte
ed93dxj
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|>>Could be worse. For example: > >`private final static int FOUR = 3+2-1;` <|eor|><|sor|>>>Could be worse. For example: >> >>`private final static ...
23
programminghorror
bj_christianson
ed9cwws
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>why tho<|eor|><|sor|>Because they were taught "magic numbers are bad" but not taught why<|eor|><|sor|>If the name of your constants has no business meaning it is still magic numbers <|eor|><|sor|>Which they would know if they k...
17
programminghorror
RFC793
ed9ux47
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>When you have to pass the "no magic numbers" test.<|eor|><|sor|>And the names are so meaningful. The names directly reflect the values! /s<|eor|><|eols|><|endoftext|>
14
programminghorror
Nulagrithom
ed95jbv
<|sols|><|sot|>Classmates pt2 <|eot|><|sol|>https://i.redd.it/fv6k24ktdg821.jpg<|eol|><|sor|>Could be worse. For example: `private final static int FOUR = 3;`<|eor|><|sor|>>Could be worse. For example: > >`private final static int FOUR = 3+2-1;` <|eor|><|sor|>>>Could be worse. For example: >> >>`private final static ...
14
programminghorror
nikosLT
bzb69k
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|eols|><|endoftext|>
727
programminghorror
6890
eqrfq5m
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>This looks like someone's first attempt at programming... do we want to start kicking babies too? Because if we're looking to punch down (way down) I think we can find a lot of targets<|eor|><|eols|><|endoftext|>
416
programminghorror
6890
eqrgcor
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>This looks like someone's first attempt at programming... do we want to start kicking babies too? Because if we're looking to punch down (way down) I think we can find a lot of targets<|eor|><|sor|>[deleted]<|eor|><...
99
programminghorror
nikosLT
eqr7qgb
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>What the... who wrote that? A professor?<|eor|><|soopr|>I hope that it was a student... But i can see some of our professors do that<|eoopr|><|eols|><|endoftext|>
96
programminghorror
NumbersWithFriends
eqra5hd
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Ignoring the pointers it is not a bad idea to separate business logic from main function<|eor|><|sor|>In general sure, but there are way bigger issues here: * Why does a get reassigned inside the if block? Just r...
71
programminghorror
DrifterInKorea
eqrpryr
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>No seriously, as soon as you look at it, you see it's a first attempt at coding from someone. Posting this kind of thing is like laughing at someone doing an `hello world` wrong.<|eor|><|eols|><|endoftext|>
65
programminghorror
tangerinelion
eqrcjk1
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Ignoring the pointers it is not a bad idea to separate business logic from main function<|eor|><|sor|>In general sure, but there are way bigger issues here: * Why does a get reassigned inside the if block? Just r...
58
programminghorror
schawde96
eqr95sj
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Point me to somewhere beautiful<|eor|><|eols|><|endoftext|>
50
programminghorror
6890
eqribia
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>This looks like someone's first attempt at programming... do we want to start kicking babies too? Because if we're looking to punch down (way down) I think we can find a lot of targets<|eor|><|sor|>[deleted]<|eor|><...
46
programminghorror
Famous_Profile
eqr8lqk
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Ignoring the pointers it is not a bad idea to separate business logic from main function<|eor|><|eols|><|endoftext|>
41
programminghorror
schawde96
eqrpze2
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Point me to somewhere beautiful<|eor|><|sor|>r/eyebleach<|eor|><|sor|>0xE7EB1EAC4<|eor|><|eols|><|endoftext|>
33
programminghorror
John_Fx
eqrwuic
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>This looks like someone's first attempt at programming... do we want to start kicking babies too? Because if we're looking to punch down (way down) I think we can find a lot of targets<|eor|><|sor|>https://i.imgur.c...
28
programminghorror
Mr_Redstoner
eqr8itr
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>I like how the file is slapped on Desktop as well, rather than trying to maintain any sort of structure. And the account username is just `User`<|eor|><|eols|><|endoftext|>
24
programminghorror
igotitforfree
eqskqj5
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>What the... who wrote that? A professor?<|eor|><|sor|>The comment at the top makes me think that there's a chance this is an assignment and the students are supposed to use a debugger to understand what's happening ...
22
programminghorror
uzimonkey
eqs7z8h
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Oh come on, this is obviously written by someone new to programming.<|eor|><|eols|><|endoftext|>
15
programminghorror
UnarmedRobonaut
eqrbeln
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>Ignoring the pointers it is not a bad idea to separate business logic from main function<|eor|><|sor|>In general sure, but there are way bigger issues here: * Why does a get reassigned inside the if block? Just r...
14
programminghorror
natu181
eqr9i2c
<|sols|><|sot|>Found this at my university<|eot|><|sol|>https://i.redd.it/c3sf91qbop331.jpg<|eol|><|sor|>If I get it, it should return the address of `a` every time, right?<|eor|><|sor|>It compares a and b. If a is bigger, it just returns a. If b is bigger, it makes a equal to b and then returns a, all of that instea...
14
programminghorror
Freymi
g35jgv
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|eols|><|endoftext|>
719
programminghorror
arcterex
fnpggro
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>It seems that most of the impression that people have of hackers as uber high end coders just isn't true... a lot of it is social engineering and basic stuff. Not that there *isn't...
270
programminghorror
Direwolf202
fnpiaxk
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>It seems that most of the impression that people have of hackers as uber high end coders just isn't true... a lot of it is social engineering and basic stuff. Not that there *isn't...
128
programminghorror
CamiloDFM
fnpg0gd
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Can someone explain whats wrong?<|eor|><|sor|>He opens a file, reads it to count the number of lines, then opens it again and uses the number of lines to know when to stop reading.<...
89
programminghorror
Epii2
fnpb5gq
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Y-kollektiv I see.... tbh the rooms there were soo relateable, i have the same keyboard as the first two guys who were interviewed. the nanoleafs on the wall. god we're generic<|e...
80
programminghorror
30secondstocali
fnpftlw
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Can someone explain whats wrong?<|eor|><|sor|>Given that it counts the number of lines containing the character @ in a (presumably) text file, while doing so many unnecessary operat...
65
programminghorror
Tangential_Diversion
fnq02xj
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>It seems that most of the impression that people have of hackers as uber high end coders just isn't true... a lot of it is social engineering and basic stuff. Not that there *isn't...
59
programminghorror
gnutrino
fnpp1v0
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>It seems that most of the impression that people have of hackers as uber high end coders just isn't true... a lot of it is social engineering and basic stuff. Not that there *isn't...
58
programminghorror
the2baddavid
fnpebe3
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Seems more like something for r/itsaunixsystem<|eor|><|eols|><|endoftext|>
43
programminghorror
5pun_
fnpc0w9
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Ahh yes, I saw that documentary yesterday https://youtu.be/fiCtEg7atxs<|eor|><|eols|><|endoftext|>
41
programminghorror
fuckingaccount69
fnpe3oc
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Can someone explain whats wrong?<|eor|><|eols|><|endoftext|>
33
programminghorror
OKara061
fnpguv8
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>Ahh yes, I saw that documentary yesterday https://youtu.be/fiCtEg7atxs<|eor|><|sor|>was 100% expecting a rickroll here<|eor|><|sor|>No, you have to memorize the link to the rock rol...
32
programminghorror
30secondstocali
fnpoxrm
<|sols|><|sot|>Written by a "Blackhat Hacker" in a Documentary about Hackers<|eot|><|sol|>https://i.redd.it/bjtow9y6pet41.jpg<|eol|><|sor|>if you want to write quick and dirty C# code, then please use freaking var too xD<|eor|><|sor|>What part of System.Collections.Generic.Dictionary<System.Collections.List<Syste...
30