subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
Beta98
gp73cpc
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|eols|><|endoftext|>
102
programminghorror
Beta98
gp7vk93
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
98
programminghorror
Beta98
gp74gm3
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
69
programminghorror
ImmortalDawn666
gp73wdp
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
66
programminghorror
Shinkowski
gp7so5t
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>Does this imply they send code as a string to you and then let it compile on your phone? If so, this would be a security risk, right?<|eor|><|sor|>No, I think the bug is on the server, so it's sending data...
51
programminghorror
Beta98
gp7bg4v
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>Completely unrelated but is this Galaxy S21?<|eor|><|soopr|>S10+ but still get updates so same ui<|eoopr|><|eols|><|endoftext|>
36
programminghorror
JosseCo
gp82mue
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
30
programminghorror
Nixargh
gp7va8z
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
29
programminghorror
vinvinnocent
gp7qpn9
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>Does this imply they send code as a string to you and then let it compile on your phone? If so, this would be a security risk, right?<|eor|><|eols|><|endoftext|>
27
programminghorror
Beta98
gp84ifk
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
16
programminghorror
SaintC0bain
gp7avbd
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>What phone do you have? I like the look of this OS<|eor|><|sor|>I believe it's Samsung's one UI, this version seems like 3.0<|eor|><|eols|><|endoftext|>
14
programminghorror
Official_SkyH1gh
gp7b5ex
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>Hrr duru, allmnna villkor gller.<|eor|><|eols|><|endoftext|>
12
programminghorror
kallakukku2
gp79ytr
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>What phone do you have? I like the look of this OS<|eor|><|eols|><|endoftext|>
11
programminghorror
Beta98
gp7dtgh
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Sooo underrated<|eor|><|soopr|>Yes love him man<|eoopr|><|eols|><|endoftext|>
11
programminghorror
Beta98
gp7bqpo
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>Hrr duru, allmnna villkor gller.<|eor|><|soopr|>Och drfr sitter jag hemma och vill ha en bestllning hit istllet fr att g ut<|eoopr|><|eols|><|endoftext|>
8
programminghorror
Kebabrulle4869
gp8bd5c
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>is this swedish?<|eor|><|soopr|>Yes. Im swedish so<|eoopr|><|sor|>didn't know you had uber eats I've been learning swedish for 2 weeks now and I'm glad I recognized the language :D don't understand much t...
8
programminghorror
r0lski
gp7b9to
<|sols|><|sot|>Seems like uber eats missed something<|eot|><|sol|>https://i.redd.it/fj0xnbt4s8k61.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Sooo underrated<|eor|><|eols|><|endoftext|>
7
programminghorror
synthels
hu7e08
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|eols|><|endoftext|>
1,768
programminghorror
this_is_martin
fylkes5
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Never seen a function call as a string either. I believe in older versions of python you could omit the brackets,...
143
programminghorror
Praetorjones
fylepls
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>Oh oh I used to do this when I was 7 and programmed the Pronto remote control, it's done like this so it looks cool and like it's loading something big and smart. He couldve made it so that it stuck on 99% f...
135
programminghorror
Praetorjones
fylsaj7
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>Oh oh I used to do this when I was 7 and programmed the Pronto remote control, it's done like this so it looks cool and like it's loading something big and smart. He couldve made it so that it stuck on 99% f...
69
programminghorror
TheUnSub99
fylsf2w
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Never seen a function call as a string either. I believe in older versions of python you could omit the brackets,...
65
programminghorror
Al2Me6
fylr4jr
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Two possibilities: 1. Its not Python 2 2. Its some ill-devised idea for commenting out the line. Strings are imp...
57
programminghorror
ghostwilliz
fylt5go
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>Oh oh I used to do this when I was 7 and programmed the Pronto remote control, it's done like this so it looks cool and like it's loading something big and smart. He couldve made it so that it stuck on 99% f...
44
programminghorror
28f272fe556a1363cc31
fyllyho
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>See, well written code doesn't need comments.<|eor|><|eols|><|endoftext|>
43
programminghorror
LameOne
fylxi5z
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>Oh oh I used to do this when I was 7 and programmed the Pronto remote control, it's done like this so it looks cool and like it's loading something big and smart. He couldve made it so that it stuck on 99% f...
42
programminghorror
TinBryn
fym60gl
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Two possibilities: 1. Its not Python 2 2. Its some ill-devised idea for commenting out the line. Strings are imp...
32
programminghorror
this_is_martin
fymqodm
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Never seen a function call as a string either. I believe in older versions of python you could omit the brackets,...
26
programminghorror
AND_MY_HAX
fymagq1
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>I can't remember the joke from the 90s. A dev would add a delay of like 5000ms to specific actions. And when their crap boss wants the program to be faster, the Dev would change it to like 4000 ms and their ...
25
programminghorror
FuriousFurryFisting
fyn5hop
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Never seen a function call as a string either. I believe in older versions of python you could omit the brackets,...
25
programminghorror
robrobk
fylumm3
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>> random-ass project > random ass-project https://xkcd.com/37/<|eor|><|eols|><|endoftext|>
23
programminghorror
CrepuscularSoul
fyly8qw
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>Oh oh I used to do this when I was 7 and programmed the Pronto remote control, it's done like this so it looks cool and like it's loading something big and smart. He couldve made it so that it stuck on 99% f...
22
programminghorror
TimGreller
fylxyb5
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>Oh oh I used to do this when I was 7 and programmed the Pronto remote control, it's done like this so it looks cool and like it's loading something big and smart. He couldve made it so that it stuck on 99% f...
21
programminghorror
RajjSinghh
fylwpvm
<|sols|><|sot|>From a random ass project on github<|eot|><|sol|>https://i.redd.it/o81lj9mnhvb51.jpg<|eol|><|sor|>why is print a string? is this a valid way of doing \`print("blah")\` in python?<|eor|><|sor|>Never seen a function call as a string either. I believe in older versions of python you could omit the brackets,...
21
programminghorror
DandelionGaming
ipb65y
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|eols|><|endoftext|>
1,753
programminghorror
GoldenShackles
g4jc8l6
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>Typically I'm going to say that learning a specific programming language doesn't matter. Here, I'm goin...
519
programminghorror
hhaslam11
g4ixx0b
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I remember my teacher teaching us Pascal... In 2016...<|eor|><|eols|><|endoftext|>
293
programminghorror
mohragk
g4iz86e
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
172
programminghorror
i_am_adult_now
g4iycb2
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
168
programminghorror
Pradfanne
g4jddbx
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>Typically I'm going to say that learning a specific programming language doesn't matter. Here, I'm goin...
145
programminghorror
Daealis
g4j1dfn
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I remember my teacher teaching us Pascal... In 2016...<|eor|><|sor|>That's not too bad. Delphi is still ...
136
programminghorror
emelrad12
g4jmlh9
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>Typically I'm going to say that learning a specific programming language doesn't matter. Here, I'm goin...
108
programminghorror
Daealis
g4j1gxy
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I'm sure those will still give you some tools for the future. I was taught mobile development to Symbia...
97
programminghorror
DandelionGaming
g4izezp
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
82
programminghorror
mohragk
g4j4poo
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
70
programminghorror
emelrad12
g4jmyhp
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>Typically I'm going to say that learning a specific programming language doesn't matter. Here, I'm goin...
63
programminghorror
DandelionGaming
g4iym5h
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
60
programminghorror
Ramipro
g4jdgs9
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I remember my teacher teaching us Pascal... In 2016...<|eor|><|sor|>I don't know exactly why, but Pascal...
58
programminghorror
Pradfanne
g4jmppm
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>Typically I'm going to say that learning a specific programming language doesn't matter. Here, I'm goin...
57
programminghorror
jabeith
g4jctu5
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I'm sure those will still give you some tools for the future. I was taught mobile development to Symbia...
46
programminghorror
Ftyross
g4ka82h
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I remember my teacher teaching us Pascal... In 2016...<|eor|><|sor|>That's not too bad. Delphi is still ...
41
programminghorror
asdkevinasd
g4jh6g1
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>I remember my teacher teaching us Pascal... In 2016...<|eor|><|sor|>I don't know exactly why, but Pascal...
31
programminghorror
Pradfanne
g4jd8sa
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
31
programminghorror
BornOnFeb2nd
g4jjydw
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
30
programminghorror
DandelionGaming
g4j4ux0
<|sols|><|sot|>Idk if this fits the sub, but Im learning Flash CS5 and ActionScript this school year cause my teacher didnt want to move on to JavaScript<|eot|><|sol|>https://i.redd.it/uqp7ggcam2m51.jpg<|eol|><|sor|>As bad as it is, I think you should learn Flash. It will teach you why we were desperate to replace it w...
29
programminghorror
RouNNdeL
eorvz7
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|eols|><|endoftext|>
1,748
programminghorror
kbielefe
feet6nm
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My favorite part is using the long. That shows some real foresight to make it future proof for billions of accounts.<|eor|><|eols|><|endoftext|>
650
programminghorror
Nightmoon26
feeuyko
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My favorite part is using the long. That shows some real foresight to make it future proof for billions of accounts.<|eor|><|sor|>I'm not sure that actually does anything... If that's Java, the return typ...
241
programminghorror
FezFernando
fef0h68
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>I looked for every Account in our system and cant find any of them<|eor|><|eols|><|endoftext|>
156
programminghorror
RouNNdeL
feew35e
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My favorite part is using the long. That shows some real foresight to make it future proof for billions of accounts.<|eor|><|sor|>I'm not sure that actually does anything... If that's Java, the return typ...
118
programminghorror
smalls3486
feezkzt
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>They must have really really wanted to use that for loop thing that all the cool kids have been talking about.<|eor|><|eols|><|endoftext|>
114
programminghorror
AltSk0P
feeymx2
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>Apart from the dumb loop ... why is he using `accounts.get(i)` BEFORE he checks if `number == i`? You could just use if(number == i) { return accounts.get(i); } And then, funfact, you ca...
67
programminghorror
TheOwningBum
fef4r44
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My favorite part is using the long. That shows some real foresight to make it future proof for billions of accounts.<|eor|><|sor|>Except for the fact that the iterator is an int...<|eor|><|eols|><|endofte...
52
programminghorror
MrReds1324
fefv1gc
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>At least there's an early return. I've seen similar code, that keeps on looping even after the condition have been met.<|eor|><|sor|>Got to make sure that we get the latest version of the account in case ...
51
programminghorror
selplacei
feeoejd
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>I like how this has a proper punchline<|eor|><|eols|><|endoftext|>
47
programminghorror
mmajass
feg5jez
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>I looked for every Account in our system and cant find any of them<|eor|><|sor|>I looked AT every Account in our system and cant find any of them<|eor|><|eols|><|endoftext|>
42
programminghorror
americk0
feexxtp
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My favorite part is using the long. That shows some real foresight to make it future proof for billions of accounts.<|eor|><|sor|>I'm not sure that actually does anything... If that's Java, the return typ...
42
programminghorror
daerogami
fefqke8
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>So we have a 0-1 liner and still they managed to put a loop in it? Op has the perfect caption tho.<|eor|><|sor|>>0-1 liner I wish I could write code with 0-liners that satisfies requirements. I'd use all...
40
programminghorror
LittleKingsguard
fefw58y
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>So we have a 0-1 liner and still they managed to put a loop in it? Op has the perfect caption tho.<|eor|><|sor|>>0-1 liner I wish I could write code with 0-liners that satisfies requirements. I'd use all...
40
programminghorror
MyNameIsRichardCS54
feexwz6
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My pill of sleep is starting to kick in and I just clicked on this waiting for the nightly OS update. I'm not sure if it really gets worse the longer you stare in horror, or if I'm genuinely tripping righ...
30
programminghorror
Last_Snowbender
feeyrtn
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>Apart from the dumb loop ... why is he using `accounts.get(i)` BEFORE he checks if `number == i`? You could just use if(number == i) { return accounts.get(i); } And then, funfact, you ca...
26
programminghorror
lengau
fegwt23
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>At least there's an early return. I've seen similar code, that keeps on looping even after the condition have been met.<|eor|><|sor|>It's called a speed up loop. What you saw was the initial condition. Th...
25
programminghorror
FelbrHostu
fef8tjz
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>My favorite part is using the long. That shows some real foresight to make it future proof for billions of accounts.<|eor|><|sor|>Agreed, but I have to dock points for the early return.<|eor|><|sor|>_(Yes...
25
programminghorror
Sejiko
fef87pp
<|sols|><|sot|>You couldn't make this up if you tried<|eot|><|sol|>https://i.redd.it/9oafiilfbta41.png<|eol|><|sor|>So we have a 0-1 liner and still they managed to put a loop in it? Op has the perfect caption tho.<|eor|><|eols|><|endoftext|>
21
programminghorror
Phidget02
hvbze9
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|eols|><|endoftext|>
1,744
programminghorror
bonafidebob
fyt32b3
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
163
programminghorror
j_curic_5
fyt36m6
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
97
programminghorror
phoenix_bright
fytlzsl
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
82
programminghorror
k20shores
fytgrz9
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
57
programminghorror
MCWizardYT
fyuguku
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>This isnt programming horror. The code was created to be short. Its called obfuscation<|eor|><|eols|><|endoftext|>
52
programminghorror
bonafidebob
fyt6hrq
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
48
programminghorror
dsfsdhfsdfvcvxc
fysbr2d
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Mmm, 3D donuuuuut<|eor|><|eols|><|endoftext|>
37
programminghorror
IAmAnIssue
fysv5yk
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Some people are just really bored.<|eor|><|sor|>Boredom is the mother of great ideas<|eor|><|eols|><|endoftext|>
29
programminghorror
ghsatpute
fyuhhy0
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>I think this is not a programming horror. You may want to look for "International Obfuscated C Code Contest". It's more for fun and purposefully code is written like that. So unless it...
28
programminghorror
Themis3000
fytkccu
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Usually I look at this subreddit to feel better about my self and assure myself I've got a future in programming... But holy shit this is big big brain<|eor|><|eols|><|endoftext|>
27
programminghorror
bonafidebob
fytkv4f
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
27
programminghorror
ACBorgia
fyt5wav
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
26
programminghorror
brogrammableben
fysc63e
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Some people are just really bored.<|eor|><|eols|><|endoftext|>
17
programminghorror
k20shores
fytxtcx
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>[Donut math: how donut.c works](https://www.a1k0n.net/2011/07/20/donut-math.html) Here's the actual code if you want to try prettyprinting. Note use of comments at the end for paddin...
16
programminghorror
a74xhx
fytdfp0
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Sure I remember seeing this code in 2005. Don't think it was new then.<|eor|><|eols|><|endoftext|>
14
programminghorror
plopperzzz
fytknb5
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Sure I remember seeing this code in 2005. Don't think it was new then.<|eor|><|sor|>Pretty sure this was an IOCCC submission<|eor|><|eols|><|endoftext|>
14
programminghorror
thelights0123
fyto00w
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>Sure I remember seeing this code in 2005. Don't think it was new then.<|eor|><|sor|>Pretty sure this code was done prior to 99 because the first variable \`k;\` was only valid in older...
13
programminghorror
plopperzzz
fyv4inf
<|sols|><|sot|>Not my code but good lord does that look like pain to make<|eot|><|sol|>https://i.redd.it/oftjk93m68c51.gif<|eol|><|sor|>I think this is not a programming horror. You may want to look for "International Obfuscated C Code Contest". It's more for fun and purposefully code is written like that. So unless it...
5
programminghorror
sevelboen
mcy86y
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|eols|><|endoftext|>
1,746
programminghorror
PhdKingkong
gs6nuoa
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|sor|>This will always be true. You are checking !![]. And arrays are truthy. [x] is true and so is []<|eor|><|eols|><|endoftext|>
374
programminghorror
xroalx
gs67rc5
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|sor|>u/walking_beard is right though, use `Array.includes` or `Array.some`. Even `find` or `findIndex` to check if an array contains an item, if you want to be special.<|eor|><|eols|><|endoftext|>
164
programminghorror
mrpickleeees
gs76n41
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|sor|>This will always be true. You are checking !![]. And arrays are truthy. [x] is true and so is []<|eor|><|sor|>This and more can be learned by reading wtfjs https://github.com/denysdovhan/wtfjs<|eor|><|eols|...
132
programminghorror
StenSoft
gs7h3rx
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|sor|>This will always be true. You are checking !![]. And arrays are truthy. [x] is true and so is []<|eor|><|sor|>`[]` is false. But `![]` is also false.<|eor|><|sor|>At least in my browser if ([]) { conso...
68
programminghorror
sevelboen
gs6bhtl
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|sor|>u/walking_beard is right though, use `Array.includes` or `Array.some`. Even `find` or `findIndex` to check if an array contains an item, if you want to be special.<|eor|><|soopr|>Yeah, ended up using some, ...
63
programminghorror
xroalx
gs698ff
<|sols|><|sot|>Debugging led me to this little shit<|eot|><|sol|>https://i.redd.it/l1xbl38ne6p61.png<|eol|><|sor|>u/walking_beard is right though, use `Array.includes` or `Array.some`. Even `find` or `findIndex` to check if an array contains an item, if you want to be special.<|eor|><|soopr|>Yeah, ended up using some, ...
55