subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
Skizboy
iyql5dw
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>I mean, without context there's no reason to believe this isn't a totally valid date for this particular program<|eor|><|soopr|>You are right. But I know personally this code, and "date" should be a date type :)<|eoopr|><|eol...
104
programminghorror
r0ft
iyquers
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>I mean, without context there's no reason to believe this isn't a totally valid date for this particular program<|eor|><|soopr|>You are right. But I know personally this code, and "date" should be a date type :)<|eoopr|><|sor...
93
programminghorror
avwie
iyqpt18
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>I mean, without context there's no reason to believe this isn't a totally valid date for this particular program<|eor|><|soopr|>You are right. But I know personally this code, and "date" should be a date type :)<|eoopr|><|sor...
79
programminghorror
KRIPA_YT
iyqn2dr
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Wait you guys get dates?<|eor|><|eols|><|endoftext|>
48
programminghorror
chrisalbo
iyrbn5i
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Every other post here is code that in my (20yrs+ in software dev) opinion could be perfectly fine, depending on context. Also bad code can often be a necessary evil for adjusting to legacy code. And dealing with legacy code...
25
programminghorror
all3f0r1
iyqq0oe
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>It may actually make sense. Amount got me confused at first, but it may actually mean 3x today, as in "3 objects merged into one". Doesn't sound like a good idea to structure it like that, but it's far from a horror.<|eor|><|...
21
programminghorror
coenvanl
iyrpb0w
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Wait you guys get dates?<|eor|><|sor|>3 today apparently<|eor|><|eols|><|endoftext|>
21
programminghorror
DirectionLegitimate2
iyqpq54
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Only 3 "todays"? I can do up to 6 one handed<|eor|><|sor|>Definitely rookie numbers.<|eor|><|eols|><|endoftext|>
17
programminghorror
pansnap
iyr1oie
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>I mean, without context there's no reason to believe this isn't a totally valid date for this particular program<|eor|><|soopr|>You are right. But I know personally this code, and "date" should be a date type :)<|eoopr|><|sor...
13
programminghorror
whoshdw
iyr1j2f
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Only 3 "todays"? I can do up to 6 one handed<|eor|><|sor|>Hello, my name is Inigo Montoya. You killed my father. Prepare to die.<|eor|><|eols|><|endoftext|>
11
programminghorror
axe319
iysw0t4
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Every other post here is code that in my (20yrs+ in software dev) opinion could be perfectly fine, depending on context. Also bad code can often be a necessary evil for adjusting to legacy code. And dealing with legacy code...
5
programminghorror
dscw
iyrw28k
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>Wait you guys get dates?<|eor|><|sor|>Ask your doctor if eating three dates every day is right for you<|eor|><|eols|><|endoftext|>
5
programminghorror
vigbiorn
iyr41lh
<|sols|><|sot|>I saw this today.<|eot|><|sol|>https://i.redd.it/lmgcdc7xfp3a1.jpg<|eol|><|sor|>It may actually make sense. Amount got me confused at first, but it may actually mean 3x today, as in "3 objects merged into one". Doesn't sound like a good idea to structure it like that, but it's far from a horror.<|eor|><|...
5
programminghorror
jaydubtech
nu9iyh
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|eols|><|endoftext|>
1,419
programminghorror
TheRedmanCometh
h0x13dk
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
322
programminghorror
mr_hard_name
h0wedyk
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|eols|><|endoftext|...
252
programminghorror
chethelesser
h0wuvnx
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
109
programminghorror
vancity-
h0xuxx5
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
102
programminghorror
iliekcats-
h0x9m2b
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>"Hey, you should use constructor" "Okay!"<|eor|><|eols|><|endoftext|>
97
programminghorror
hoodedelk
h0z2jq6
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
34
programminghorror
ApplePieCrust2122
h0xsetf
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Which programming language is this?<|eor|><|eols|><|endoftext|>
31
programminghorror
NUTTA_BUSTAH
h0yehjw
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Which programming language is this?<|eor|><|sor|>Typescript (typed javascript)<|eor|><|eols|><|endoftext|>
24
programminghorror
mohragk
h0wch1e
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Yeah thats totally pointless.<|eor|><|eols|><|endoftext|>
19
programminghorror
mr_hard_name
h0x8g4e
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
17
programminghorror
BlazingThunder30
h0x4jks
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
14
programminghorror
DreamingDitto
h0zseso
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
14
programminghorror
krehwell
h0xfaj6
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
13
programminghorror
rankdadank
h0xsqbr
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Which programming language is this?<|eor|><|sor|>yeah I'm wondering that too<|eor|><|eols|><|endoftext|>
11
programminghorror
vancity-
h0zxfqo
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>I SAID WE OOP TODAY<|eor|><|sor|>OOP I did it again I polymorphed your heart, now its attached to your head Oh baby, baby OOP its about inheritance But it don't make no sense The PR was auto-approved<|eor|><|sor|>W...
10
programminghorror
garth_vader90
h0zpkkm
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Which programming language is this?<|eor|><|sor|>yeah I'm wondering that too<|eor|><|sor|>[deleted]<|eor|><|sor|>Wow. I use TS daily and I was confused what language it was. I guess not seeing a class declaration so assu...
9
programminghorror
Akangka
h0z0yro
<|sols|><|sot|>"What is constructor?"<|eot|><|sol|>https://i.redd.it/deq0xaz0rt371.png<|eol|><|sor|>Listen, if you code like this, you can reuse the object without creating many new instances. Great for saving the memory, totally makes your code more readable and totally not potentially buggy<|eor|><|sor|>Why not use s...
9
programminghorror
Nisarg_Jhatakia
tc8yrg
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|eols|><|endoftext|>
1,414
programminghorror
dna_beggar
i0c4syt
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Would be cool to design a font around that handwriting. Then, as a prank, you could set it as the default font in your cow...
437
programminghorror
Sudont-199X
i0c4b2o
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Thats some interesting penmanship there<|eor|><|eols|><|endoftext|>
131
programminghorror
nrith
i0c8epg
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Thats some interesting penmanship there<|eor|><|soopr|>I betcha that you won't believe me when I say that, I have 2 handwri...
112
programminghorror
Nisarg_Jhatakia
i0c4yns
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Would be cool to design a font around that handwriting. Then, as a prank, you could set it as the default font in your cow...
101
programminghorror
VisibleSignificance
i0cne0z
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Honestly, the handwriting seems like an appropriate punishment of those who requested "code on paper".<|eor|><|eols|><|endo...
97
programminghorror
nrith
i0c8bvo
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Ask for your tuition back.<|eor|><|eols|><|endoftext|>
71
programminghorror
Nisarg_Jhatakia
i0c4fj2
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Thats some interesting penmanship there<|eor|><|soopr|>I betcha that you won't believe me when I say that, I have 2 handwri...
71
programminghorror
Nisarg_Jhatakia
i0c4a5s
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|soopr|>Oh crap! I forgot to crop/scan my image. I cant even edit it now<|eoopr|><|eols|><|endoftext|>
56
programminghorror
Nisarg_Jhatakia
i0c8msj
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Thats some interesting penmanship there<|eor|><|soopr|>I betcha that you won't believe me when I say that, I have 2 handwri...
52
programminghorror
SatisfactionFuzzy166
i0c3uvs
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>What school? Can we downvote the school?<|eor|><|eols|><|endoftext|>
50
programminghorror
nrith
i0c8dsu
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Would be cool to design a font around that handwriting. Then, as a prank, you could set it as the default font in your cow...
50
programminghorror
Nisarg_Jhatakia
i0cbri2
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>what drugs did you take before writing this exam? your handwriting is something else.<|eor|><|soopr|>It's cocaine, a lot an...
42
programminghorror
mrkhan2000
i0cbfmf
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>what drugs did you take before writing this exam? your handwriting is something else.<|eor|><|eols|><|endoftext|>
40
programminghorror
Jezoreczek
i0cvqf6
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Would be cool to design a font around that handwriting. Then, as a prank, you could set it as the default font in your cow...
36
programminghorror
Nisarg_Jhatakia
i0cnfz8
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Honestly, the handwriting seems like an appropriate punishment of those who requested "code on paper".<|eor|><|soopr|>Then ...
35
programminghorror
Nisarg_Jhatakia
i0c47k7
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>What school? Can we downvote the school?<|eor|><|soopr|>lol, I study at a university called GLS. The funny story is that it...
31
programminghorror
Nisarg_Jhatakia
i0c8gca
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Ask for your tuition back.<|eor|><|soopr|>Well, I would soon be done with my university after exams so I cant do that.<|eoo...
27
programminghorror
arnitdo
i0d7ot8
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>Indian standard practice<|eor|><|soopr|>I like how I didn't even mention my country name and yet you figured it out.<|eoopr...
27
programminghorror
BasicallyTrash69
i0cct3u
<|sols|><|sot|>We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)<|eot|><|sol|>https://i.redd.it/5ys2edirxvm81.jpg<|eol|><|sor|>I had to write assembly code on paper for my exams <|eor|><|eols|><|endoftext|>
26
programminghorror
SkyIsByteSized
jgwa7k
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|eols|><|endoftext|>
1,407
programminghorror
_Pho_
g9t4ms8
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Case true is code I never thought Id see<|eor|><|eols|><|endoftext|>
432
programminghorror
kypello
g9ulu3h
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>This person chose to use case true: ... default: ... instead of if/else<|eor|><|eols|><|endoftext|>
197
programminghorror
i_am_adult_now
g9t27qc
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>This is how lexical analysers and parser parsers generate state machines. But hand making such a blob is not good for eyes. Edit: Whoever switched on `bool` will end up being splashed dirty street...
99
programminghorror
glasshalf3mpty
g9voas8
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Case true is code I never thought Id see<|eor|><|sor|>Very idiomatic code in Haskell. If/then/else constructs actually desugar into case true etc.<|eor|><|eols|><|endoftext|>
53
programminghorror
SkyIsByteSized
g9t8sqh
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|soopr|>For context, this is from part of an experience in a sports betting app that I have the luxury of handling QA for.<|eoopr|><|eols|><|endoftext|>
47
programminghorror
kopczak1995
g9v7lrf
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Case true is code I never thought Id see<|eor|><|sor|>Didn't saw it :D Wonderfull :D<|eor|><|eols|><|endoftext|>
46
programminghorror
overactor
g9vx5nx
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Case true is code I never thought Id see<|eor|><|sor|>Very idiomatic code in Haskell. If/then/else constructs actually desugar into case true etc.<|eor|><|sor|>That's because boolean is an algebrai...
43
programminghorror
Aspring15
g9unk9v
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>If yandere simulator used switch statements it'd look like this<|eor|><|eols|><|endoftext|>
37
programminghorror
kopczak1995
g9v7o15
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>This person chose to use case true: ... default: ... instead of if/else<|eor|><|sor|>[deleted]<|eor|><|sor|>Or retarded/drunk/dunno? author.<|eor|><|eols|><|endoftext|>
35
programminghorror
SkyIsByteSized
g9w7t8e
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|soopr|>For context, this is from part of an experience in a sports betting app that I have the luxury of handling QA for.<|eoopr|><|sor|>Hopefully this is auto-generated code though? No actual human bei...
35
programminghorror
ForeverSJC
g9sxna5
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>It hurts<|eor|><|eols|><|endoftext|>
29
programminghorror
Shnorkylutyun
g9t8w0b
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Twitch statements<|eor|><|eols|><|endoftext|>
28
programminghorror
Mightyalex200
g9w18ed
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Case true is code I never thought Id see<|eor|><|sor|>Very idiomatic code in Haskell. If/then/else constructs actually desugar into case true etc.<|eor|><|sor|>That's because boolean is an algebrai...
24
programminghorror
diamondjim
g9v8m3o
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Case true is code I never thought Id see<|eor|><|sor|>It used to be a common pattern in ECMAScript languages. I dont know if current idiomatic JavaScript still encourages this style.<|eor|><|eols|>...
22
programminghorror
Shnorkylutyun
g9t8xpt
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>This is how lexical analysers and parser parsers generate state machines. But hand making such a blob is not good for eyes. Edit: Whoever switched on `bool` will end up being splashed dirty street...
14
programminghorror
Noxium51
g9vwuvr
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>This person chose to use case true: ... default: ... instead of if/else<|eor|><|sor|>[deleted]<|eor|><|sor|>Or retarded/drunk/dunno? author.<|eor|><|sor|>[deleted]<|eor|><|sor|>https://xkcd.com/323...
13
programminghorror
kopczak1995
g9vng84
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>This person chose to use case true: ... default: ... instead of if/else<|eor|><|sor|>[deleted]<|eor|><|sor|>Or retarded/drunk/dunno? author.<|eor|><|sor|>[deleted]<|eor|><|sor|>I for once programmm...
13
programminghorror
Drik98
g9uxxqm
<|sols|><|sot|>Yo dawg I heard you like switch statements...<|eot|><|sol|>https://i.redd.it/5h4ayvfpxwu51.jpg<|eol|><|sor|>Tbh you can easily see what the code does. I've seen worse<|eor|><|eols|><|endoftext|>
12
programminghorror
maharshimartian
dtjxqt
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|eols|><|endoftext|>
1,403
programminghorror
GentlemenBehold
f6x1cdf
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|eols|><|endoftext|>
499
programminghorror
allyoucaneatsushi
f6x3tqo
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>[Here's the README](https://github.com/AceLewis/my_first_calculator.py/blob/master/README.md). This is obviously done as a joke.<|eor|><|eols|><|endoftext|>
180
programminghorror
dotpan
f6xawgf
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|eols|><|endoftext|>
103
programminghorror
Solkuss
f6xizwo
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
73
programminghorror
MsPenguinette
f6xqz1o
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
69
programminghorror
disappointer
f6x28p9
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>my\_first\_calculator.py You don't say...<|eor|><|eols|><|endoftext|>
58
programminghorror
dotpan
f6xjsvu
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
40
programminghorror
dilfmagnet
f6xjru1
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>ITS NOT EVEN IF ELSE!<|eor|><|sor|>And this is why commenting your code is important ``` python # No elif's used to be true to the story and also because # Python will throw a recursion error when too many are used ```<|eor|>...
37
programminghorror
ilkikuinthadik
f6x7hsf
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>my\_first\_calculator.py You don't say...<|eor|><|sor|>"python doesn't know maths"<|eor|><|eols|><|endoftext|>
31
programminghorror
zelmarvalarion
f6xelbq
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>ITS NOT EVEN IF ELSE!<|eor|><|sor|>And this is why commenting your code is important ``` python # No elif's used to be true to the story and also because # Python will throw a recursion error when too many are used ```<|eor|>...
30
programminghorror
Lucent_Sable
f6x6ct7
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>you mean day that doesnt finish.<|eor|><|sor|>There is a finite set of floating point numbers, it's still just a massive number to...
26
programminghorror
TheOwningBum
f6x3hrc
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>ITS NOT EVEN IF ELSE!<|eor|><|eols|><|endoftext|>
21
programminghorror
TheDeafCreeper
f6yfnka
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
20
programminghorror
kallebo1337
f6y4fli
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
17
programminghorror
T0mmynat0r666
f6xgvaa
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>Not gonna lie, I'm pretty impressed by how he handles different python versions<|eor|><|eols|><|endoftext|>
15
programminghorror
snowthunder2018
f6xcjba
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>[Here's the README](https://github.com/AceLewis/my_first_calculator.py/blob/master/README.md). This is obviously done as a joke.<|eor|><|sor|>That doesn't change the fact that someone did it seriously xD &#x200B; &#x200B; Fo...
15
programminghorror
kallebo1337
f6yg6bb
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
15
programminghorror
TheDeafCreeper
f6yga13
<|sols|><|sot|>It belongs here<|eot|><|sol|>https://i.redd.it/mi1ib4rx0ix31.jpg<|eol|><|sor|>>TODO: Make it work for all floating point numbers too That's gonna be a long day.<|eor|><|sor|>Write a program that recursively outputs each iteration, copy the output, paste into code.<|eor|><|sor|>The resulting code would n...
11
programminghorror
Potential-Adagio-512
10dgoxm
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|eols|><|endoftext|>
1,400
programminghorror
MkemCZ
j4lblcw
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>I doubt that's the original source code. Looks decompiled to me.<|eor|><|eols|><|endoftext|>
361
programminghorror
theg721
j4lezz5
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>I doubt that's the original source code. Looks decompiled to me.<|eor|><|sor|>Undertale used GameMaker. Depending on what v...
314
programminghorror
PositiveUse
j4mzd3r
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>Well at least they shipped and got rich, right?<|eor|><|eols|><|endoftext|>
306
programminghorror
theg721
j4m9o7h
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>I doubt that's the original source code. Looks decompiled to me.<|eor|><|sor|>Undertale used GameMaker. Depending on what v...
177
programminghorror
Coolhand2120
j4ofj3s
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>Dev here with 25+ years experience in big enterprise companies and small spunky startups in Silicon Valley. Currently a se...
155
programminghorror
51herringsinabar
j4m38rr
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>So even I could meke successful game??? Somewhat inspirational<|eor|><|eols|><|endoftext|>
130
programminghorror
bonkykongcountry
j4m1igz
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>I doubt that's the original source code. Looks decompiled to me.<|eor|><|sor|>Undertale used GameMaker. Depending on what v...
97
programminghorror
MJBrune
j4mv8h6
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>So even I could meke successful game??? Somewhat inspirational<|eor|><|sor|>I've spent 9 years in game development. The eng...
96
programminghorror
TehButtTyrantofDoom
j4nccsd
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>Is Toby Fox the original Papyrus? Maybe he really enjoys Spaghetti.<|eor|><|eols|><|endoftext|>
83
programminghorror
THEzwerver
j4n1ma5
<|sols|><|sot|>TIL that all of undertales dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines<|eot|><|sol|>https://v.redd.it/nef7685gogca1<|eol|><|sor|>So even I could meke successful game??? Somewhat inspirational<|eor|><|sor|>this but unironically, you just need a good ide...
71