subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
owzap
fuqb8kb
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>Can somebody ELI5? Love this sub but I'm a brainlet.<|eor|><|eols|><|endoftext|>
21
programminghorror
CJSZ01
fuq6955
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>pdo's for losers /s<|eor|><|eols|><|endoftext|>
16
programminghorror
tonsofmiso
fus58g0
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>That's less than optimal.<|eor|><|soopr|>I'm a little rusty with PHP, but how about this for some useless efficiency/refactoring? define("ARBITRARY_LIMIT",...
11
programminghorror
CityYogi
furhdq5
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>That's less than optimal.<|eor|><|soopr|>I'm a little rusty with PHP, but how about this for some useless efficiency/refactoring? define("ARBITRARY_LIMIT",...
11
programminghorror
StuckAtWork124
fusesj5
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>Execute query 66<|eor|><|sor|> $sql66 = "DELETE FROM `people` WHERE `people_class` LIKE 'jedi'";<|eor|><|eols|><|endoftext|>
10
programminghorror
2JulioHD
fuqudjm
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>That's less than optimal.<|eor|><|soopr|>I'm a little rusty with PHP, but how about this for some useless efficiency/refactoring? define("ARBITRARY_LIMIT",...
10
programminghorror
hodor_seuss_geisel
fur4a00
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>That's less than optimal.<|eor|><|soopr|>I'm a little rusty with PHP, but how about this for some useless efficiency/refactoring? define("ARBITRARY_LIMIT",...
9
programminghorror
guareber
fur1pb6
<|sols|><|sot|>I hope "Complete SQL Bootcamp 2020" isn't churning out students who code like this<|eot|><|sol|>https://i.redd.it/o2wzzyovvp451.png<|eol|><|sor|>That's less than optimal.<|eor|><|soopr|>I'm a little rusty with PHP, but how about this for some useless efficiency/refactoring? define("ARBITRARY_LIMIT",...
8
programminghorror
Successful-Pay-4575
lhh5ii
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|eols|><|endoftext|>
1,196
programminghorror
feldrim
gmxc8z1
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>It's hard to escape.<|eor|><|eols|><|endoftext|>
140
programminghorror
Spadanttu
gmxc32j
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The world is my favorite region of the world.<|eor|><|eols|><|endoftext|>
134
programminghorror
D3LB0Y
gmxajff
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The outrage<|eor|><|eols|><|endoftext|>
72
programminghorror
Killed_Mufasa
gmxece5
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>If anything, this shows they escape stuff securely. But yeah, they screwed up on the rendering.<|eor|><|eols|><|endoftext|>
52
programminghorror
gohanhadpotential
gmxhp7n
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>A student here, what exaclty did they mess up and how did it impact the page? Edit: holy shit it's my cake day! I just realised it<|eor|><|sor|>They meant to write & as in "The World & Its Religions." I...
32
programminghorror
Vakieh
gmxhfj4
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>https://xkcd.com/932/<|eor|><|eols|><|endoftext|>
31
programminghorror
gonzofish
gmxd8pb
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The outrage<|eor|><|sor|>Ive never seen such horror. From this day on I will never forget the travesty that has befallen mine eyes<|eor|><|eols|><|endoftext|>
26
programminghorror
x0wl
gmxht76
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The world is my favorite region of the world.<|eor|><|sor|>Well they have world-level stats in it, like how many people are in the whole world.<|eor|><|eols|><|endoftext|>
19
programminghorror
The_god_of_ara-ara
gmxe7us
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>A student here, what exaclty did they mess up and how did it impact the page? Edit: holy shit it's my cake day! I just realised it<|eor|><|eols|><|endoftext|>
18
programminghorror
JackDaxter
gmybjju
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The world is my favorite region of the world.<|eor|><|sor|>That's why it says the World **and** its Regions :D<|eor|><|sor|>You mean \&amp; <|eor|><|eols|><|endoftext|>
18
programminghorror
retrodaredevil
gmz42uz
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>If anything, this shows they escape stuff securely. But yeah, they screwed up on the rendering.<|eor|><|sor|>Yeah, I'd definitely rather see stuff over escaped rather than under escaped.<|eor|><|eols|><|...
14
programminghorror
joemckie
gmxvw0j
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>https://xkcd.com/932/<|eor|><|sor|>!(https://imgs.xkcd.com/comics/cia.png) Edit: reddit doesnt have ~~good~~ __complete__ markdown<|eor|><|sor|>Why deeplink in the first place?<|eor|><|sor|>Just out of ...
14
programminghorror
kuaiyidian
gmxeesz
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>A student here, what exaclty did they mess up and how did it impact the page? Edit: holy shit it's my cake day! I just realised it<|eor|><|sor|>The World &amp;<|eor|><|eols|><|endoftext|>
13
programminghorror
Digital_001
gmy9vgv
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The world is my favorite region of the world.<|eor|><|sor|>That's why it says the World **and** its Regions :D<|eor|><|eols|><|endoftext|>
11
programminghorror
D3LB0Y
gmxk37m
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>The outrage<|eor|><|sor|>Ive never seen such horror. From this day on I will never forget the travesty that has befallen mine eyes<|eor|><|sor|>Please lord wont someone think of the children<|eor|><|eols...
10
programminghorror
AndrewIsntCool
gmyfo21
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>https://xkcd.com/932/<|eor|><|sor|>!(https://imgs.xkcd.com/comics/cia.png) Edit: reddit doesnt have ~~good~~ __complete__ markdown<|eor|><|sor|>Why deeplink in the first place?<|eor|><|sor|>Just out of ...
8
programminghorror
ZylonBane
gmyjzk6
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>!(https://imgs.xkcd.com/comics/cia.png) Edit: reddit doesnt have ~~good~~ __complete__ markdown<|eor|><|sor|>Why deeplink in the first place?<|eor|><|sor|>Just out of curiosity. I wanted to see if reddi...
8
programminghorror
Vakieh
gmxpl36
<|sols|><|sot|>The CIA screwed up their HTML escaping.<|eot|><|sol|>https://i.redd.it/9zf8deothtg61.png<|eol|><|sor|>https://xkcd.com/932/<|eor|><|sor|>!(https://imgs.xkcd.com/comics/cia.png) Edit: reddit doesnt have ~~good~~ __complete__ markdown<|eor|><|sor|>Why deeplink in the first place?<|eor|><|eols|><|endoftext...
7
programminghorror
ChrisM-1988
101gwcg
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|eols|><|endoftext|>
1,190
programminghorror
nekokattt
j2ntvlo
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|eols|><|endoftext|>
304
programminghorror
Magmasliver
j2o0sb0
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Wow, such terrible code!! Just do `let [zero, one, two, three, four, five, six, seven, eight, nine] = numbers;` next time! /s<|eor|><|eols|><|endoftext|>
163
programminghorror
Massive-You5434
j2oodza
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>It has a TODO to make it work for floating Point numbe...
128
programminghorror
PumaofDuma
j2ogoad
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>I imagine there was a program to write this program<|e...
108
programminghorror
Bliep_2015
j2nka0f
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Dear god Why would he use let here?<|eor|><|eols|><|endoftext|>
89
programminghorror
pittybrave
j2o508b
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Dear god Why would he use let here?<|eor|><|sor|>Why not?<|eor|><|sor|>using let implies youre going to change the value at some point which is horrifying to think that at some point ...
88
programminghorror
Sability
j2oqkki
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>>\# TODO: Make it work for all floating point numbers ...
82
programminghorror
Rainb0_0
j2njoji
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Programmer from ohio<|eor|><|eols|><|endoftext|>
60
programminghorror
Rainb0_0
j2o0l39
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>The real programmer<|eor|><|eols|><|endoftext|>
46
programminghorror
rawSingularity
j2or3u4
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>I imagine there was a program to write this program<|e...
46
programminghorror
hotcarlsjr
j2p2fen
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Wow, such terrible code!! Just do `let [zero, one, two, three, four, five, six, seven, eight, nine] = numbers;` next time! /s<|eor|><|sor|>Const!<|eor|><|eols|><|endoftext|>
42
programminghorror
nekokattt
j2opund
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>It has a TODO to make it work for floating Point numbe...
38
programminghorror
Magmasliver
j2p6sns
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Wow, such terrible code!! Just do `let [zero, one, two, three, four, five, six, seven, eight, nine] = numbers;` next time! /s<|eor|><|sor|>Const!<|eor|><|sor|>Nah I think this calcul...
31
programminghorror
bigsauce456
j2pei2w
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>"Yeah I have a project with 20k+ lines of code" The pr...
27
programminghorror
povlov0987
j2ognne
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>Copilot is so awesome /s<|eor|><|eols|><|endoftext|>
21
programminghorror
joshuakb2
j2npuog
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Dear god Why would he use let here?<|eor|><|sor|>Why not?<|eor|><|eols|><|endoftext|>
20
programminghorror
_Screw_The_Rules_
j2qk932
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Don't forget that a calculator app is often one of the first projects one makes when he/she's just starting programming. So I think those kind of mistakes and inefficiencies are to be...
19
programminghorror
joshuakb2
j2o5by0
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Dear god Why would he use let here?<|eor|><|sor|>Why not?<|eor|><|sor|>using let implies youre going to change the value at some point which is horrifying to think that at some point ...
19
programminghorror
pittybrave
j2o87li
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>Dear god Why would he use let here?<|eor|><|sor|>Why not?<|eor|><|sor|>using let implies youre going to change the value at some point which is horrifying to think that at some point ...
19
programminghorror
Legendary-69420
j2pinhz
<|sols|><|sot|>Found this while randomly browsing someone's calculator app<|eot|><|sol|>https://i.redd.it/r7f93poyqn9a1.png<|eol|><|sor|>At least they didn't do this: https://github.com/AceLewis/my_first_calculator.py/blob/master/my_first_calculator.py<|eor|><|sor|>Man was smart enough to think of python 2 compatibilit...
16
programminghorror
thedoctorx121
qf3abc
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|eols|><|endoftext|>
1,197
programminghorror
KaranasToll
hhx6sa5
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|eols|><|endoftext|>
431
programminghorror
thedoctorx121
hhx70mz
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
197
programminghorror
Who_GNU
hhx9jfs
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
139
programminghorror
thedoctorx121
hhxaj0e
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
129
programminghorror
thedoctorx121
hhxadep
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|soopr|>Genero 4gl. It's basically pseudo code, it's really awful<|eoopr|><|eols|><|endoftext|>
111
programminghorror
SlimesWithBowties
hhxaasr
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|eols|><|endoftext|>
83
programminghorror
SunshineOneDay
hhxxd8v
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>If I had to take a guess it was code that got upgraded *before* .trim() was implemented. Even .NET Framework didn't have .Trim() in 1.0, it came in 1.1. If this is an older language, it's *very* possible someone...
63
programminghorror
iamghostling
hhybhqj
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
58
programminghorror
vicda
hhxkk1r
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
47
programminghorror
Verbose_Code
hhx9l67
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Id be lying if I didnt do this once because I kept typing rstrip(foo) instead of foo.rstrip() I *did* eventually go back and fix it though<|eor|><|eols|><|endoftext|>
46
programminghorror
twoturtlesinatank
hhxe6fg
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
35
programminghorror
kindall
hhy3fsh
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|soopr|>Genero 4gl. It's basically pseudo code, it's really awful<|eoopr|><|sor|>> Genero 4gl Looking at the online docs for it just gave me major anxiety<|eor|><|soopr|>Yeah, it's t...
35
programminghorror
thedoctorx121
hhxe95g
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
34
programminghorror
dullboy_jackie
hhxm4tp
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|soopr|>Genero 4gl. It's basically pseudo code, it's really awful<|eoopr|><|sor|>My first job a few years ago was maintaining a massive codebase of business logic in Pick Basic. Fucki...
30
programminghorror
fii0
hhyahgd
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|soopr|>Genero 4gl. It's basically pseudo code, it's really awful<|eoopr|><|sor|>> Genero 4gl Looking at the online docs for it just gave me major anxiety<|eor|><|soopr|>Yeah, it's t...
27
programminghorror
theg721
hhxce3j
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>To be fair, 'trim(v_str)' *is* shorter than 'v_str.trim()'. Think of all the bytes he'll be saving in your source code! All the keystrokes he's saving you and your other colleagues!<|eor|><|eols|><|endoftext|>
26
programminghorror
Callec254
hhxdb0a
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>My guess would be they were used to a different language where "trim(string)" was valid syntax, and tried to make this language work like that language as much as possible.<|eor|><|eols|><|endoftext|>
25
programminghorror
Cerres
hhzee1z
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>Someone was was probably annoyed with remembering if it is string.trim() or trim(string) and said "screw it, prefix everything".<|eor|><|soopr|>Maybe. We do have a huge amount of legacy code, written over 30 year...
19
programminghorror
flooronthefour
hhxwsbr
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|soopr|>Genero 4gl. It's basically pseudo code, it's really awful<|eoopr|><|sor|>> Genero 4gl Looking at the online docs for it just gave me major anxiety<|eor|><|eols|><|endoftext|>
14
programminghorror
UnkleRinkus
hhxr0ek
<|sols|><|sot|>An actual function at my work...why?<|eot|><|sol|>https://imgur.com/lxwWXYK.jpg<|eol|><|sor|>what language is this<|eor|><|soopr|>Genero 4gl. It's basically pseudo code, it's really awful<|eoopr|><|sor|>My first job a few years ago was maintaining a massive codebase of business logic in Pick Basic. Fucki...
13
programminghorror
watrudoingonmahswamp
hd7shg
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|eols|><|endoftext|>
1,191
programminghorror
sproingie
fvjhv8u
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>More likely missing Polish translations for those message keys.<|eor|><|eols|><|endoftext|>
337
programminghorror
lethargy86
fvjnw5l
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>More likely missing Polish translations for those message keys.<|eor|><|sor|>Or someone misconfigured the language code to be po instead of pl or something<|eor|><|eols|><|endofte...
85
programminghorror
silentxxkilla
fvjvmq8
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>More likely missing Polish translations for those message keys.<|eor|><|sor|>I was thinking the same. This looks like raw resource keys. They probably forgot to call GetResource o...
65
programminghorror
glizdamen
fvjxrq4
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Kurwa<|eor|><|eols|><|endoftext|>
44
programminghorror
joost00719
fvjs5tc
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Probably not toString but ToString. Those ordering terminals run windows, so it is probably a c# application.<|eor|><|eols|><|endoftext|>
13
programminghorror
_slacki
fvk0qt9
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|eols|><|endoftext|>
12
programminghorror
alkatraz445
fvk2qi5
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|eols|><|endoftext|>
11
programminghorror
Jesuschrist2011
fvkoiu3
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Probably not toString but ToString. Those ordering terminals run windows, so it is probably a c# application.<|eor|><|sor|>100% C#. During the update period every night there is a...
9
programminghorror
Jesuschrist2011
fvkoa3h
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Is it just me or does it feel that MacDonald hired the worst possible contractors for their softwares? I'm from Canada and their software was awful.<|eor|><|sor|>Software is devel...
8
programminghorror
Jesuschrist2011
fvkinz8
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>NGK stands for Next Generation Kiosk<|eor|><|eols|><|endoftext|>
7
programminghorror
Wiwwil
fvksfzg
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>More likely missing Polish translations for those message keys.<|eor|><|sor|>It's just a missing translation. I wouldn't go as far as programming horror yet<|eor|><|eols|><|endoft...
6
programminghorror
currentlyatwork1234
fvm1m1z
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>More likely missing Polish translations for those message keys.<|eor|><|sor|>That's a bad implementation though. The core rule is that you never expose the keys, you return eith...
6
programminghorror
Jesuschrist2011
fvkxm3g
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Is it just me or does it feel that MacDonald hired the worst possible contractors for their softwares? I'm from Canada and their software was awful.<|eor|><|sor|>Software is devel...
6
programminghorror
mlecz
fvkapc5
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>[deleted]<|eor|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>kurwa<|eor|><|eols|><|endoftext|>
6
programminghorror
kbs8707
fvkjsn3
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Is it just me or does it feel that MacDonald hired the worst possible contractors for their softwares? I'm from Canada and their software was awful.<|eor|><|eols|><|endoftext|>
5
programminghorror
Krzysiek127
fvk94vc
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>[deleted]<|eor|><|sor|>Kurwa<|eor|><|eols|><|endoftext|>
5
programminghorror
aaaaaaaaaaaaa89
fvk9b77
<|sols|><|sot|>Today at McDonald's. Looks like someone didn't implement toString()<|eot|><|sol|>https://i.imgur.com/ERxtCfm.jpg<|eol|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|sor|>[deleted]<|eor|><|sor|>Kurwa<|eor|><|sor|>Kurwa<|eor|><|eols|><|endoftext|>
5
programminghorror
OmnicBread
x4v1ku
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|eols|><|endoftext|>
1,186
programminghorror
kristallnachte
imxe69c
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>They gotta learn how to just invert the ifs with early returns to avoid having 20 depth blocks. Theres even a switch with only one case...<|eor|><|eols|><|endoftext|>
339
programminghorror
inurwindo
imy2riq
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>I like that poor lone break at the bottom. Isolated, scared, fearful of the programmer that coded thiswhere does it belong? You must count the brackets to discover its secrets<|eor|><|eols|><|endoftext|>
142
programminghorror
CandidPiglet9061
imxip8d
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>This shit drives me insane. I see it a lot at work and it just screams I did this in a single pass and plan on never looking at it again. Writers edit. Composers edit. Artists and craftsmen and tradesmen all know that creation is a...
97
programminghorror
Shepard_Overflow
imxt1c4
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>They gotta learn how to just invert the ifs with early returns to avoid having 20 depth blocks. Theres even a switch with only one case...<|eor|><|sor|>Yup, guard clause is the way<|eor|><|eols|><|endoftext|>
97
programminghorror
No-Witness2349
imy4xko
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>Transcription: import { isPlatformBrowser } from '@angular/common'; import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; import { NavigationStart, Router } from '@angular/router'; @Injectable e...
59
programminghorror
Some_Derpy_Pineapple
imywogj
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>Im new to programming. So, whats the right way?<|eor|><|sor|>[guard clauses](https://pbs.twimg.com/media/EsBDLp8XcAIWugP?format=png&name=orig) \- instead of checking if something is correct before proceeding further into the if/els...
30
programminghorror
EndR60
imykhjh
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>Transcription: import { isPlatformBrowser } from '@angular/common'; import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; import { NavigationStart, Router } from '@angular/router'; @Injectable e...
29
programminghorror
TheVenlo
imyzhqe
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>They gotta learn how to just invert the ifs with early returns to avoid having 20 depth blocks. Theres even a switch with only one case...<|eor|><|sor|>The switch broke me up<|eor|><|eols|><|endoftext|>
27
programminghorror
entimaniac91
in0um59
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>They gotta learn how to just invert the ifs with early returns to avoid having 20 depth blocks. Theres even a switch with only one case...<|eor|><|sor|>Yup, guard clause is the way<|eor|><|sor|>Thanks for sharing this term. I was ...
26
programminghorror
kristallnachte
imxe4by
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>Okay listen it's not that bad...right?<|eor|><|sor|>no its really bad<|eor|><|eols|><|endoftext|>
25
programminghorror
No-Witness2349
imz5m1t
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>They gotta learn how to just invert the ifs with early returns to avoid having 20 depth blocks. Theres even a switch with only one case...<|eor|><|sor|>>Theres even a switch with only one case... Oh no that's definitely a thing y...
25
programminghorror
JonnyBoy522
imz2duo
<|sols|><|sot|>arrow code.<|eot|><|sol|>https://i.redd.it/r880jbybgnl91.jpg<|eol|><|sor|>I like that poor lone break at the bottom. Isolated, scared, fearful of the programmer that coded thiswhere does it belong? You must count the brackets to discover its secrets<|eor|><|sor|>I have discovered it's secret... What it ...
23