subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
mszegedy
emu425o
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|eols|><|endoftext|>
448
programminghorror
timmyotc
emu1j07
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|eols|><|endoftext|>
319
programminghorror
Sire_Renart
emu1x0g
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|soopr|>What can I say, I just love taking screenshots of 480p indian tutorials on youtube :D<|eoopr|><|eols|><|endoftext...
123
programminghorror
eplaut_
emuhe8b
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|sor|>Need more jpeg<|eor|><|eols|><|endoftext|>
99
programminghorror
mpinnegar
emu2lrz
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|soopr|>What can I say, I just love taking screenshots of 480p indian tutorials on youtube :D<|eoopr|><|sor|>Ah indian tu...
86
programminghorror
mpinnegar
emu9qdg
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|soopr|>What can I say, I just love taking screenshots of 480p indian tutorials on youtube :D<|eoopr|><|sor|>Ah indian tu...
79
programminghorror
RobotTimeTraveller
emu42xi
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>I was about to comment how this wasn't the most egregious display of code I've ever seen, thinking it was just similar case statements with slightly modified parameters....and then I...
76
programminghorror
sim642
emu73q7
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>The other disturbing thing is that `search.class` means `search` is a class that has a lowercase name and so is `profile`.<|eor|><|eols|><|endoftext|>
48
programminghorror
jeff303
emv9pg1
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, [if you insist](http://needsmorejpeg.com/i/QXZR2).<|eor|><|eols|><|endoftext|>
37
programminghorror
linuxlib
emu85pf
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>The worst part of this (that I've seen so far) is using multiple switch statements because he was "fixing" his omission of break statements.<|eor|><|eols|><|endoftext|>
34
programminghorror
konstantinua00
emvjrce
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, [if you insist](http://needsmorejpeg.com/i/QXZR2).<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, if you insist...
32
programminghorror
Sire_Renart
emu642z
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|soopr|>What can I say, I just love taking screenshots of 480p indian tutorials on youtube :D<|eoopr|><|sor|>Ah indian tu...
30
programminghorror
mpinnegar
emu3su6
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|soopr|>What can I say, I just love taking screenshots of 480p indian tutorials on youtube :D<|eoopr|><|sor|>Ah indian tu...
27
programminghorror
TheSchemm
emvmna0
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, [if you insist](http://needsmorejpeg.com/i/QXZR2).<|eor|><|sor|>DEHANCE<|eor|><|eols|><|endoftext|>
26
programminghorror
x1rom
emvm0r3
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, [if you insist](http://needsmorejpeg.com/i/QXZR2).<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, if you insist...
22
programminghorror
jeff303
emvb9t0
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Rewritten for readability. And yes, the spacing really is that inconsistent. @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()...
20
programminghorror
DefNotaZombie
emuj7iz
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>I was about to comment how this wasn't the most egregious display of code I've ever seen, thinking it was just similar case statements with slightly modified parameters....and then I...
19
programminghorror
MChampz07
emw4l2p
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>"See" is a strong word.<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, [if you insist](http://needsmorejpeg.com/i/QXZR2).<|eor|><|sor|>Need more jpeg<|eor|><|sor|>Well, if you insist...
14
programminghorror
JB-from-ATL
emuj8f7
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>The worst part of this (that I've seen so far) is using multiple switch statements because he was "fixing" his omission of break statements.<|eor|><|sor|>Forgetting breaks is bad! Be...
12
programminghorror
drunckoder
emu5ubl
<|sols|><|sot|>Perhaps the best use of switch case you'll see in your life.<|eot|><|sol|>https://i.redd.it/7x4snk4z20x21.png<|eol|><|sor|>Brought to you by the same camera that caught bigfoot<|eor|><|soopr|>What can I say, I just love taking screenshots of 480p indian tutorials on youtube :D<|eoopr|><|sor|>Ah indian tu...
10
programminghorror
tonitch
rzr3n5
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|eols|><|endoftext|>
824
programminghorror
monkeyinmysoup
hry5t88
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>> TODO: make it work for all floating point numbers too Brilliant.<|eor|><|eols|><|endoftext|>
294
programminghorror
Coolhand2120
hryb14u
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Legit. All calculations are occuring in constant time. Cuts big compute out of the chain. I love it. Have we load tested it against a baseline calculator? Can we somehow add blockchain? Some kind of crypto? Web...
149
programminghorror
DJWalnut
hrye63x
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Oh hey it's yanderedev's github<|eor|><|eols|><|endoftext|>
100
programminghorror
CherimoyaChump
hryafi3
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>> TODO: make it work for all floating point numbers too Brilliant.<|eor|><|sor|>They've already got it working for all integers, so floating point should be an easy feature.<|eor|><|eols|><|endoftext|>
92
programminghorror
a_bucket_full_of_goo
hrye347
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>If this written by hand, which I doubt, I would like to find whoever wrote this, kiss him on the forehead and tell him to find another line of work<|eor|><|eols|><|endoftext|>
70
programminghorror
Man-in-The-Void
hryc72m
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>> TODO: make it work for all floating point numbers too Brilliant.<|eor|><|sor|>They've already got it working for all integers, so floating point should be an easy feature.<|eor|><|sor|>How many FPs could there be b...
57
programminghorror
InsanityAI
hrx3blg
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>I guess we should at some level honor the immense commitment and time it would take to program what is literally infinite possibilities one line at a time<|eor|><|sor|>Except that code was generated by a python script...
49
programminghorror
a_bucket_full_of_goo
hryebgu
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Legit. All calculations are occuring in constant time. Cuts big compute out of the chain. I love it. Have we load tested it against a baseline calculator? Can we somehow add blockchain? Some kind of crypto? Web...
47
programminghorror
Lich_Hegemon
hryktku
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>> TODO: make it work for all floating point numbers too Brilliant.<|eor|><|sor|>They've already got it working for all integers, so floating point should be an easy feature.<|eor|><|sor|>How many FPs could there be b...
45
programminghorror
ChrisLeeBare
hryezot
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>4 contributers? One for +, one for -, one for?<|eor|><|eols|><|endoftext|>
35
programminghorror
GooberMcNutly
hryhq1n
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Legit. All calculations are occuring in constant time. Cuts big compute out of the chain. I love it. Have we load tested it against a baseline calculator? Can we somehow add blockchain? Some kind of crypto? Web...
24
programminghorror
jonp1
hrx25yu
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>I guess we should at some level honor the immense commitment and time it would take to program what is literally infinite possibilities one line at a time<|eor|><|eols|><|endoftext|>
23
programminghorror
WeeklyAccountant
hry8bwc
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>It's called memoization smh<|eor|><|eols|><|endoftext|>
17
programminghorror
tonitch
hrz2ed9
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Oh hey it's yanderedev's github<|eor|><|soopr|>10/10 comment<|eoopr|><|eols|><|endoftext|>
17
programminghorror
skaterdude7
hrz3q33
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Look at the filename. It is a student figuring out the world. Do you criticize babies too for mispronounced words?<|eor|><|sor|>Can use git but doesn't know how to use arithmetic operators. Makes sense<|eor|><|eols|...
15
programminghorror
ZuriPL
hrypoh7
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>If this written by hand, which I doubt, I would like to find whoever wrote this, kiss him on the forehead and tell him to find another line of work<|eor|><|sor|>It's not<|eor|><|eols|><|endoftext|>
14
programminghorror
PalasSir
hs01gi6
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Program Sponsor: "I want a calculator, also our contract says that I must pay you in lines of code." Programer: "Calculator? LoC? Say no more!"<|eor|><|eols|><|endoftext|>
12
programminghorror
Man-in-The-Void
hryu6jy
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>> TODO: make it work for all floating point numbers too Brilliant.<|eor|><|sor|>They've already got it working for all integers, so floating point should be an easy feature.<|eor|><|sor|>How many FPs could there be b...
12
programminghorror
moliusat
hryl2ma
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>I guess we should at some level honor the immense commitment and time it would take to program what is literally infinite possibilities one line at a time<|eor|><|sor|>Except that code was generated by a python script...
10
programminghorror
elzaidir
hrzhnyg
<|sols|><|sot|>Seen on r/programmerhumor<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Look at the filename. It is a student figuring out the world. Do you criticize babies too for mispronounced words?<|eor|><|sor|>The problem is not that someone coded that, it's the fact that it has 600+ stars and 80...
8
programminghorror
SirAchmed
wih3xa
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|eols|><|endoftext|>
821
programminghorror
AwfulUnicorn
ijbegnb
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|eols|><|endoftext|>
308
programminghorror
TerrorBite
ijdhaxn
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|soopr|>Well thanks for that now I _kinda_ know what it does.<|eoopr|><|sor|>The nested lists translat...
154
programminghorror
theScrapBook
ijblrs4
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|> You're just flattening a list of lists into a single list. But you could just use a generator comprehension so the flattening happens on-demand, and you're not wasti...
110
programminghorror
SirAchmed
ijbfbn1
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|soopr|>Well thanks for that now I _kinda_ know what it does.<|eoopr|><|eols|><|endoftext|>
101
programminghorror
_ohmu_
ijf2ny9
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|soopr|>Well thanks for that now I _kinda_ know what it does.<|eoopr|><|sor|>The nested lists translat...
51
programminghorror
DootDootWootWoot
ijc3qiw
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Anytime you add an additional level of nesting, consider refactoring that inner portion to a function or variable. When you inevitably need to change it, it'll help. ...
42
programminghorror
Logofascinated
ijcii7p
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Not really a horror<|eor|><|sor|>Well, it *is* a horror if the person who wrote it can't understand it a few weeks later.<|eor|><|eols|><|endoftext|>
36
programminghorror
JoyJoy_
ijdk5uj
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|sor|>I prefer the more simplified `itertools.chain(*nested_list)`<|eor|><|eols|><|endoftext|>
31
programminghorror
Natsu194
ijf6mxi
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|soopr|>Well thanks for that now I _kinda_ know what it does.<|eoopr|><|sor|>The nested lists translat...
23
programminghorror
RapidCatLauncher
ijd4tdp
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Dual-layer list comprehensions in python are a horror by themselves. The ordering of the implied loops should be the other way around to make any readable sense.<|eor...
22
programminghorror
TeaCrab131
ijd6njz
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|soopr|>Well thanks for that now I _kinda_ know what it does.<|eoopr|><|sor|>You were bestowed upon wi...
21
programminghorror
the_hair_of_aenarion
ijde5np
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Not really a horror<|eor|><|sor|>Well, it *is* a horror if the person who wrote it can't understand it a few weeks later.<|eor|><|sor|>First time seeing this syntax a...
19
programminghorror
Deep_Zen_Shit
ijcjv27
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Not really a horror<|eor|><|sor|>Well, it *is* a horror if the person who wrote it can't understand it a few weeks later.<|eor|><|sor|>First time seeing this syntax a...
11
programminghorror
O_X_E_Y
ijf2ei7
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|sor|>I prefer the more simplified `itertools.chain(*nested_list)`<|eor|><|sor|>noooo why be readable ...
10
programminghorror
CaitaXD
ije4oqu
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|sor|>Ah so bind on the list monad<|eor|><|eols|><|endoftext|>
7
programminghorror
KennyBassett
ijefhjp
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Dual-layer list comprehensions in python are a horror by themselves. The ordering of the implied loops should be the other way around to make any readable sense.<|eor...
7
programminghorror
AwfulUnicorn
ijf1r5e
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Ah the classic/weird unpack nested lists in one listcomp<|eor|><|sor|>Ah so bind on the list monad<|eor|><|sor|>Whatever functional programming voodoo youre talking a...
6
programminghorror
itsjustawindmill
ijdvt6g
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Not really a horror<|eor|><|sor|>Well, it *is* a horror if the person who wrote it can't understand it a few weeks later.<|eor|><|sor|>First time seeing this syntax a...
6
programminghorror
TerrorBite
ijdhsoh
<|sols|><|sot|>I wrote this a few weeks ago and I have no idea how it works or what it does<|eot|><|sol|>https://i.redd.it/ar0tkhd8yag91.jpg<|eol|><|sor|>Not really a horror<|eor|><|sor|>Well, it *is* a horror if the person who wrote it can't understand it a few weeks later.<|eor|><|sor|>First time seeing this syntax a...
5
programminghorror
matbiz01
11qktsh
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|eols|><|endoftext|>
827
programminghorror
Schievel1
jc42ydq
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Is it still? I thought trigraphs got removed from C++ For good. I mean look at it<|eor|><|eols|><|endoftext|>
214
programminghorror
CodingChris
jc4cuis
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Is it still? I thought trigraphs got removed from C++ For good. I mean look at it<|eor|><|sor|>Yeah. In C++17 they got removed. OP is using C++14 though.<|eor|><|eols|><|endoftext|>
172
programminghorror
ByRussX
jc4vudw
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Some people should get banned from coding<|eor|><|eols|><|endoftext|>
145
programminghorror
matbiz01
jc3pulu
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|soopr|>Read [this](https://en.cppreference.com/w/cpp/language/operator_alternative) if you are wondering how this works<|eoopr|><|eols|><|endoftext|>
90
programminghorror
nekokattt
jc3shr2
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>digraphs, trigraphs, and similar have been about for years.<|eor|><|eols|><|endoftext|>
79
programminghorror
CodingChris
jc5mfh8
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>But why??<|eor|><|sor|>Because back in the old days you might have had to work with encodings or hardware that didn't support the symbols you needed. So ??= Gets mapped to # in case you c...
49
programminghorror
saf_e
jc3uguf
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|soopr|>Read [this](https://en.cppreference.com/w/cpp/language/operator_alternative) if you are wondering how this works<|eoopr|><|sor|>Actually, they are disabled by default in most (all?) Com...
47
programminghorror
matbiz01
jc3r0wu
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>[deleted]<|eor|><|soopr|>It's quite funny, cause I've never seen this on this sub and my mind was blown when I found this on cppref today. I guess reddit algorithm has decided to hide thi...
40
programminghorror
CodingChris
jc5swpe
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Is it still? I thought trigraphs got removed from C++ For good. I mean look at it<|eor|><|sor|>Yeah. In C++17 they got removed. OP is using C++14 though.<|eor|><|sor|>Very interesting. W...
37
programminghorror
helltiger
jc5s44b
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Is it still? I thought trigraphs got removed from C++ For good. I mean look at it<|eor|><|sor|>Yeah. In C++17 they got removed. OP is using C++14 though.<|eor|><|sor|>Very interesting. W...
35
programminghorror
SevereAddictionLover
jc5gwm1
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>But why??<|eor|><|eols|><|endoftext|>
21
programminghorror
bordaa
jc4a9ox
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>God is dead.<|eor|><|eols|><|endoftext|>
20
programminghorror
LeCrushinator
jc4ks26
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>[deleted]<|eor|><|soopr|>It's quite funny, cause I've never seen this on this sub and my mind was blown when I found this on cppref today. I guess reddit algorithm has decided to hide thi...
19
programminghorror
0xcedbeef
jc4d98r
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|soopr|>Read [this](https://en.cppreference.com/w/cpp/language/operator_alternative) if you are wondering how this works<|eoopr|><|sor|>Actually, they are disabled by default in most (all?) Com...
17
programminghorror
zman0900
jc580ca
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|soopr|>Read [this](https://en.cppreference.com/w/cpp/language/operator_alternative) if you are wondering how this works<|eoopr|><|sor|>Well, that led me down the rabbit hole of trying to figur...
15
programminghorror
Banjoman64
jc5mvdm
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Even your code looks confused.<|eor|><|eols|><|endoftext|>
10
programminghorror
OKara061
jc9u3g8
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Some people should get banned from coding<|eor|><|sor|>People are asking if they can do something or not all the time. But noone stops and asks if they should<|eor|><|eols|><|endoftext|>
7
programminghorror
matbiz01
jc6a6ni
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Can someone explain like Im a PHP developer?<|eor|><|soopr|>[This](https://en.cppreference.com/w/cpp/language/operator_alternative) has thorough explanation. To simplify things, c++ allow...
7
programminghorror
CodingChris
jcca1dy
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>But why??<|eor|><|sor|>Because back in the old days you might have had to work with encodings or hardware that didn't support the symbols you needed. So ??= Gets mapped to # in case you c...
6
programminghorror
DoYouEverJustInvert
jc67375
<|sols|><|sot|>This is a valid c++14 code (without the use of define).<|eot|><|sol|>https://i.redd.it/ek4pv40qgkna1.png<|eol|><|sor|>Can someone explain like Im a PHP developer?<|eor|><|eols|><|endoftext|>
5
programminghorror
Mechwarrior234
e2oen8
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|eols|><|endoftext|>
832
programminghorror
RFX01
f8wp9il
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>looks like everything is always cool<|eor|><|eols|><|endoftext|>
355
programminghorror
JTGhawk137
f8x9kut
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Out of all the things that upset me here, the fact that he used the Boolean wrapper instead of the primitive takes the cake.<|eor|><|eols|><|endoftext|>
159
programminghorror
Barbaryan
f8x4nfh
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>looks like everything is always cool<|eor|><|sor|>True<|eor|><|eols|><|endoftext|>
121
programminghorror
PralinesNCream
f8xfcsd
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Out of all the things that upset me here, the fact that he used the Boolean wrapper instead of the primitive takes the cake.<|eor|><|sor|>Could you explain what you mean?<|eor|><|sor|>Boolean with a capi...
74
programminghorror
Mechwarrior234
f8xeyp9
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Someone explain why this is programming horror, (first year uni programmer needing to learn what not to do) Edit: Jesus how did I miss that <|eor|><|soopr|>Posting after your edit, but will answer your q...
52
programminghorror
Lurchwart
f8xq9kb
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Out of all the things that upset me here, the fact that he used the Boolean wrapper instead of the primitive takes the cake.<|eor|><|sor|>Could you explain what you mean?<|eor|><|sor|>Java has wrapper cl...
47
programminghorror
AskMeToTellATale
f8xcg0g
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>How am I supposed to sleep tonight after seeing this!?<|eor|><|eols|><|endoftext|>
38
programminghorror
h4xrk1m
f8y4ifo
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>looks like everything is always cool<|eor|><|sor|>True<|eor|><|sor|>Cool.<|eor|><|eols|><|endoftext|>
36
programminghorror
Alxe
f8xsx6q
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Out of all the things that upset me here, the fact that he used the Boolean wrapper instead of the primitive takes the cake.<|eor|><|sor|>Could you explain what you mean?<|eor|><|sor|>Java has wrapper cl...
31
programminghorror
GrantSolar
f8xzrjx
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>How am I supposed to sleep tonight after seeing this!?<|eor|><|sor|>Just fine. Everything is cool<|eor|><|eols|><|endoftext|>
28
programminghorror
1thief
f8yleyn
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>looks like everything is always cool<|eor|><|sor|>Not if one of the getters throws an exception, except the result still wouldn't be false. So to be perfectly accurate things are never *uncool*.<|eor|><|...
27
programminghorror
ilikecheetos42
f8ytgqv
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>looks like everything is always cool<|eor|><|sor|>True<|eor|><|sor|>Cool.<|eor|><|sor|>Scrub<|eor|><|eols|><|endoftext|>
25
programminghorror
hearwa
f8yhcfj
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Well no shit! All that code can be replaced with a simple return ("TRUE".Trim().ToLower() == "TRUE".Trim().ToLower());<|eor|><|eols|><|endoftext|>
24
programminghorror
PapajG
f8xelqj
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Out of all the things that upset me here, the fact that he used the Boolean wrapper instead of the primitive takes the cake.<|eor|><|sor|>Could you explain what you mean?<|eor|><|eols|><|endoftext|>
22
programminghorror
PapajG
f8xebh0
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>Someone explain why this is programming horror, (first year uni programmer needing to learn what not to do) Edit: Jesus how did I miss that <|eor|><|eols|><|endoftext|>
19
programminghorror
Sv443_
f8xoi24
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>How am I supposed to sleep tonight after seeing this!?<|eor|><|sor|>With great difficulty<|eor|><|eols|><|endoftext|>
14
programminghorror
Mechwarrior234
f8xhs04
<|sols|><|sot|>Always finding these gems in production<|eot|><|sol|>https://i.redd.it/yppds5nr6b141.png<|eol|><|sor|>By 3. Do you mean making everything just Private Boolean scrubVisualInspection = pole.getBrandAvailable() == null || pole.getManufactureYear() == null; ??? Or is that not allowed in java ( only progra...
10