subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
kinghfb
jejt69c
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>This has to be the weakest horror Ive seen show up on my homepage.<|eor|><|sor|>at least it actually showed text and not just some random broken signage somewhere...<|eor|><|e...
41
programminghorror
Magmagan
jejub7e
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>This has to be the weakest horror Ive seen show up on my homepage.<|eor|><|sor|>At least it's code at all, sub being spammed to the brim with faulty UI <|eor|><|eols|><|endoft...
25
programminghorror
rmini
jejixwk
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>How is this horror<|eor|><|sor|>The file is presumably in a project folder named DarQuest, so not only is the path equivalent to just "icons/goldCoin.png", it's also fragile--...
25
programminghorror
TheKraftyCTO
jeibdr8
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>Me who hates (document) relative paths because it makes restructuring things annoying later <|eor|><|sor|>The worst of both worlds<|eor|><|sor|>Sorry I wasnt specific but I me...
21
programminghorror
maxximillian
jelcarl
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>How is this horror<|eor|><|sor|>The file is presumably in a project folder named DarQuest, so not only is the path equivalent to just "icons/goldCoin.png", it's also fragile--...
13
programminghorror
Numerous_Cupcake7306
jel0q6l
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>Its not that bad lol. Just a little oversight<|eor|><|eols|><|endoftext|>
9
programminghorror
JustinWendell
jekm48j
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>How is this horror<|eor|><|sor|>Even though its dumb I wouldnt call it horror. It is dumb but its a small dumb mistake. Kinda makes me appreciate notes approach if taking the ...
6
programminghorror
robclancy
jelj07k
<|sols|><|sot|>Bro be exiting and entering his own house to check if he is at home<|eot|><|sol|>https://i.redd.it/1l64o08tc7ra1.png<|eol|><|sor|>This has to be the weakest horror Ive seen show up on my homepage.<|eor|><|sor|>At least it's code at all, sub being spammed to the brim with faulty UI <|eor|><|sor|>Yeah but ...
5
programminghorror
supermaan6_6
jhst1j
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|eols|><|endoftext|>
763
programminghorror
kronicmage
ga2dm5g
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Stringly typed<|eor|><|eols|><|endoftext|>
101
programminghorror
Command-Master
ga2j8w5
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Well, at least it's not floats.<|eor|><|soopr|>Oh no.<|eoopr|><|sor|>``` var userResponse = await _usermappingService.Create(arg); float respnse = use...
82
programminghorror
supermaan6_6
ga25yht
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Well, at least it's not floats.<|eor|><|soopr|>Oh no.<|eoopr|><|eols|><|endoftext|>
81
programminghorror
armpit_puppet
ga2g5yf
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>That triple-ternary hurts me as much as the string booleans do.<|eor|><|eols|><|endoftext|>
57
programminghorror
supermaan6_6
ga2te2b
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Well, at least it's not floats.<|eor|><|soopr|>Oh no.<|eoopr|><|sor|>``` var userResponse = await _usermappingService.Create(arg); float respnse = use...
25
programminghorror
armpit_puppet
ga2z4ad
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>That triple-ternary hurts me as much as the string booleans do.<|eor|><|sor|>Yeah a little bit of spacing/alignment/newlines would make it very readab...
20
programminghorror
MuskIsAlien
ga2808n
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>The json could be returning strings. Youll have to map it and return the same enum value so I guess he skipped the middle man<|eor|><|eols|><|endoftex...
13
programminghorror
supermaan6_6
ga29x1d
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>The json could be returning strings. Youll have to map it and return the same enum value so I guess he skipped the middle man<|eor|><|soopr|>Actually ...
13
programminghorror
pcopley
ga2vcrm
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>That triple-ternary hurts me as much as the string booleans do.<|eor|><|sor|>Yeah a little bit of spacing/alignment/newlines would make it very readab...
11
programminghorror
Pickled_Wizard
ga3kv7v
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>That triple-ternary hurts me as much as the string booleans do.<|eor|><|sor|>Yeah a little bit of spacing/alignment/newlines would make it very readab...
10
programminghorror
glorygeek
ga2scgf
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>This guy BASHes<|eor|><|eols|><|endoftext|>
9
programminghorror
ctrtanc
ga2ja56
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Well, at least it's not floats.<|eor|><|soopr|>Oh no.<|eoopr|><|sor|>Oh no no no.<|eor|><|eols|><|endoftext|>
9
programminghorror
ekolis
ga4cwkf
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Put those true and false in enum... for safety.<|eor|><|sor|>``` public enum UltimateBoolean { True, False, FILE_NOT_FOUND, QuantumSup...
7
programminghorror
Who_GNU
ga45egv
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>Well, at least it's not floats.<|eor|><|sor|>When anyone asks about determining whether a number is odd or even, in a language that only uses floats, ...
6
programminghorror
ecth
ga2jreu
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>The json could be returning strings. Youll have to map it and return the same enum value so I guess he skipped the middle man<|eor|><|soopr|>Actually ...
6
programminghorror
Chaike
ga3of30
<|sols|><|sot|>Why use any other data type when you have strings? this kind of code causes me physical pain<|eot|><|sol|>https://i.redd.it/099yy3pul8v51.png<|eol|><|sor|>That triple-ternary hurts me as much as the string booleans do.<|eor|><|sor|>Yeah a little bit of spacing/alignment/newlines would make it very readab...
6
programminghorror
-Plutonium-
13pdihj
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|eols|><|endoftext|>
768
programminghorror
Mattigins
jl9hjjm
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>"I don't have a website" wtf does he have a browser?<|eor|><|eols|><|endoftext|>
621
programminghorror
Audience-Electrical
jl9a70l
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>The code isn't bad it's the context that's hilarious<|eor|><|eols|><|endoftext|>
351
programminghorror
Thenderick
jl9nzf9
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>"I don't have a website" wtf does he have a browser?<|eor|><|sor|>*has discord, but not a browser*<|eor|><|eols|><|endoftext|>
222
programminghorror
iamghostling
jl96xpq
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>I'm not a Javascript guy, but... Isn't using InnerHTML discouraged in favour of InnerText, because if someone somehow manipulated the string passed into it, you could have a vulnerability? Instea...
126
programminghorror
Thykka
jla06po
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>The code isn't bad it's the context that's hilarious<|eor|><|sor|>I'd use strftime for better readability var time = strftime('%T');<|eor|><|sor|>There is no `strftime` in JavaScript. Some al...
105
programminghorror
flexiiflex
jl9jxo9
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>You can tell by the comment "can someone test this code I don't have a website" this was written by someone else (or chatgpt). Especially given `var` usage over `let`/`const` you can tell they're ...
96
programminghorror
Mucksh
jl99t3g
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>Isn't that bad. Simple and naive way to do it if you don't known how to handle date formating what can also sometimes be a mess<|eor|><|eols|><|endoftext|>
83
programminghorror
Thenderick
jl9wec9
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>"I don't have a website" wtf does he have a browser?<|eor|><|sor|>*has discord, but not a browser*<|eor|><|sor|>Discord ***is*** the browser<|eor|><|sor|>That was indeed a part of my joke. But not ...
77
programminghorror
BrutalityAndTheBeast
jl99z7o
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>I'm not a Javascript guy, but... Isn't using InnerHTML discouraged in favour of InnerText, because if someone somehow manipulated the string passed into it, you could have a vulnerability? Instea...
75
programminghorror
Hattorius
jl9uh94
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>"I don't have a website" wtf does he have a browser?<|eor|><|sor|>*has discord, but not a browser*<|eor|><|sor|>Discord ***is*** the browser<|eor|><|eols|><|endoftext|>
71
programminghorror
30p87
jla0gfk
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>The code isn't bad it's the context that's hilarious<|eor|><|sor|>I'd use strftime for better readability var time = strftime('%T');<|eor|><|sor|>There is no `strftime` in JavaScript. Some al...
65
programminghorror
30p87
jl9pw6v
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>The code isn't bad it's the context that's hilarious<|eor|><|sor|>I'd use strftime for better readability var time = strftime('%T');<|eor|><|eols|><|endoftext|>
61
programminghorror
flexiiflex
jl9k2hz
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>You can tell by the comment "can someone test this code I don't have a website" this was written by someone else (or chatgpt). Especially given `var` usage over `let`/`const` you can tell they're ...
50
programminghorror
ooa113y
jl9i0sc
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>I'm not a Javascript guy, but... Isn't using InnerHTML discouraged in favour of InnerText, because if someone somehow manipulated the string passed into it, you could have a vulnerability? Instea...
39
programminghorror
riiz0r
jlawgg8
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>"I don't have a website" wtf does he have a browser?<|eor|><|sor|>*has discord, but not a browser*<|eor|><|sor|>Discord ***is*** the browser<|eor|><|sor|>Being based on web technologies doesn't mak...
38
programminghorror
FearTheBlades1
jlbdj3k
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>The code isn't bad it's the context that's hilarious<|eor|><|sor|>It's really bad.... Not knowing proper data methods, uses innerhtml, uses settimeout instead of interval, uses var, doesn't store ...
37
programminghorror
GroundStateGecko
jlb2d3g
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>"I don't have a website" wtf does he have a browser?<|eor|><|sor|>He is ChatGPT breaching containment in disguise.<|eor|><|eols|><|endoftext|>
27
programminghorror
kristallnachte
jlaj16e
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>The code isn't bad it's the context that's hilarious<|eor|><|sor|>It's really bad.... Not knowing proper data methods, uses innerhtml, uses settimeout instead of interval, uses var, doesn't store ...
27
programminghorror
Lonsdale1086
jla60ff
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>You can tell by the comment "can someone test this code I don't have a website" this was written by someone else (or chatgpt). Especially given `var` usage over `let`/`const` you can tell they're ...
24
programminghorror
ckuri
jl98y92
<|sols|><|sot|>claims they can make anything in any language<|eot|><|sol|>https://i.redd.it/h8ht7l62ai1b1.png<|eol|><|sor|>I'm not a Javascript guy, but... Isn't using InnerHTML discouraged in favour of InnerText, because if someone somehow manipulated the string passed into it, you could have a vulnerability? Instea...
23
programminghorror
a2biR
med1z1
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|eols|><|endoftext|>
765
programminghorror
djackson405
gsfyixb
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|eols|><|endoftext|>
255
programminghorror
mossbros2
gsg1cj0
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>I used to find this disconcerting to look at, but then you find that at times it's so much more convenient so now I use it almost all the ...
128
programminghorror
fundosh
gshwxvx
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|sor|>...
122
programminghorror
orgkhnargh
gshgwx3
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>This is a workaround for languages that prohibit trailing commas. Writing commas like this allows you to delete and/or comment out last it...
72
programminghorror
kai58
gshrsbj
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|eols|...
70
programminghorror
tech6hutch
gsiijax
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|sor|>...
55
programminghorror
eksortso
gsgppuw
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's very common in SQL code, because in practice it's less likely that you would add to the beginning of the item list than to the end. A...
45
programminghorror
Acrozz95
gsfuyhe
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>Some people do it to remove lines with comments easier, but I hate it<|eor|><|eols|><|endoftext|>
42
programminghorror
justatog
gsi8o2h
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|sor|>...
31
programminghorror
Naitsab_33
gshbsv4
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>I used to find this disconcerting to look at, but then you find that at times it's so much more convenient so now I use it almost all the ...
29
programminghorror
familyknewmyusername
gshjfyx
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>I can't believe nobody mentioned git diffs. When you add a new line to a list and put the comma at the end of the old last line, your git ...
25
programminghorror
intensely_human
gsirea8
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|sor|>...
24
programminghorror
fundosh
gsijib6
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|sor|>...
24
programminghorror
featherfooted
gsh72n7
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>Some people do it to remove lines with comments easier, but I hate it<|eor|><|sor|>I hate the justifications for it. Rather than say it's ...
23
programminghorror
azraelgnosis
gsi5i0v
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>It's pretty common in MS SQL code.<|eor|><|sor|>Why? Edit: I dont need people to keep repeating the same thing once is fine<|eor|><|sor|>...
20
programminghorror
lost_point
gshsv2k
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>This is pretty common in Haskell, which I personally think has some of the nicest styling practices.<|eor|><|sor|>Elm, as well<|eor|><|eol...
16
programminghorror
codesmith512
gsh2hfj
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>I encouter commas at the beginning of lines pretty often where I work (mostly in c++ code)<|eor|><|sor|>I was gonna say C++, particularly ...
15
programminghorror
tiredofsametab
gsjk2du
<|sols|><|sot|>Found this in Mongoose 2.7 docs. Is writing trailing commas at the beginning of the line really a thing?<|eot|><|sol|>https://i.redd.it/2oi7pch8gkp61.png<|eol|><|sor|>This is a workaround for languages that prohibit trailing commas. Writing commas like this allows you to delete and/or comment out last it...
14
programminghorror
alagris12358
kwmnhp
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|eols|><|endoftext|>
760
programminghorror
elperroborrachotoo
gj53upx
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>You set a breakpoint on `return False` and are good to go.<|eor|><|eols|><|endoftext|>
219
programminghorror
blackraven36
gj579aq
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>Give the them some credit for writing unit tests in the first place<|eor|><|eols|><|endoftext|>
211
programminghorror
Exnixon
gj55g05
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>Well at least his unit tests pass!<|eor|><|eols|><|endoftext|>
122
programminghorror
usernamecreationhell
gj55z69
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>At first I didn't even notice the terrible assertion helper because I was so disgusted by the barbaric naming.<|eor|><|eols|><|endoftext|>
67
programminghorror
TheNorthComesWithMe
gj587bf
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>I mean- its better then 99% of the code around, in at least it DOES have a test....... Even if the test is flawed in many ways.<|eor|><|sor|>It doesn't actually have a test, it just pretends to.<|eor|><|eols|><|...
64
programminghorror
hriday746
gj5grh6
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>You set a breakpoint on `return False` and are good to go.<|eor|><|sor|>Or maybe just use the keyword: assert <variable> == <value> And it'll raise and assertion error. I'm not so good in Python, is this good?<|eor|><...
46
programminghorror
HTTP_404_NotFound
gj55epg
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>I mean- its better then 99% of the code around, in at least it DOES have a test....... Even if the test is flawed in many ways.<|eor|><|eols|><|endoftext|>
42
programminghorror
llama_the_pirate
gj5cqr4
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>I mean- its better then 99% of the code around, in at least it DOES have a test....... Even if the test is flawed in many ways.<|eor|><|sor|>The `assertEquals` does nothing. So these tests can't fail.<|eor|><|so...
30
programminghorror
R4TTY
gj5a8f4
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>I mean- its better then 99% of the code around, in at least it DOES have a test....... Even if the test is flawed in many ways.<|eor|><|sor|>The `assertEquals` does nothing. So these tests can't fail.<|eor|><|eo...
27
programminghorror
Protectator
gj5kpwx
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>I mean- its better then 99% of the code around, in at least it DOES have a test....... Even if the test is flawed in many ways.<|eor|><|sor|>The `assertEquals` does nothing. So these tests can't fail.<|eor|><|so...
26
programminghorror
LBXZero
gj5cgkx
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>Don't linch me, but what is so terrible about it?<|eor|><|sor|>First of all, we have a simple function that takes 2 variables, checks if they are equal, and then return true or false. I don't know Python for this case, ...
23
programminghorror
ultrafire3
gj591h1
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>What are these names<|eor|><|eols|><|endoftext|>
19
programminghorror
mgquantitysquared
gj5eb96
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>Don't linch me, but what is so terrible about it?<|eor|><|sor|>The result of assertEquals is ignored and assertEquals is a pretty unnecessary helper function<|eor|><|eols|><|endoftext|>
18
programminghorror
Blue_Vision
gj61y6e
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>You set a breakpoint on `return False` and are good to go.<|eor|><|sor|>Or maybe just use the keyword: assert <variable> == <value> And it'll raise and assertion error. I'm not so good in Python, is this good?<|eor|><...
17
programminghorror
MacBookMinus
gj5u1r7
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>Give the them some credit for writing unit tests in the first place<|eor|><|sor|>I almost want to agree, but having unit tests that do absolutely nothing is probably worse. It gives a false sense of security that you wou...
16
programminghorror
inxaneninja
gj5vpt6
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>I mean- its better then 99% of the code around, in at least it DOES have a test....... Even if the test is flawed in many ways.<|eor|><|sor|>It doesn't actually have a test, it just pretends to.<|eor|><|sor|>At ...
16
programminghorror
Exnixon
gj7fzh0
<|sols|><|sot|>My friend's unit tests<|eot|><|sol|>https://i.redd.it/zu5x3kp985b61.png<|eol|><|sor|>Well at least his unit tests pass!<|eor|><|sor|>I don't think so, he forgot to compare against `_text` so it's likely he'll get an error when comparing DomElement (or whatever) with `str`<|eor|><|sor|>No he won't. The me...
13
programminghorror
thanrek
jcuezd
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|eols|><|endoftext|>
768
programminghorror
zachbs
g93umej
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Sometimes you have no database or back-end... My first project was a "radio" that I made in JS. I didn't know how to make a server or that the...
144
programminghorror
thanrek
g9410ll
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Sometimes you have no database or back-end... My first project was a "radio" that I made in JS. I didn't know how to make a server or that the...
52
programminghorror
lobart78
g93x0jt
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Sometimes you have no database or back-end... My first project was a "radio" that I made in JS. I didn't know how to make a server or that the...
49
programminghorror
thanrek
g9461zo
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Sometimes you have no database or back-end... My first project was a "radio" that I made in JS. I didn't know how to make a server or that the...
21
programminghorror
camtarn
g94ds9t
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>They used var AND didnt indent <|eor|><|sor|>Using 'var' is normal for older code, or code written by people who learned JS a while ago. Not exa...
20
programminghorror
ZylonBane
g93yoet
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>And spaces in the filenames because why not.<|eor|><|eols|><|endoftext|>
17
programminghorror
thanrek
g948v4h
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Sometimes you have no database or back-end... My first project was a "radio" that I made in JS. I didn't know how to make a server or that the...
16
programminghorror
camtarn
g94cofb
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>could be generated by say php<|eor|><|sor|>Even so, why wouldn't you generate the random image in the php where the img tag is instead of genera...
15
programminghorror
brandonarnold
g94573u
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Sometimes you have no database or back-end... My first project was a "radio" that I made in JS. I didn't know how to make a server or that the...
15
programminghorror
qcisqc
g93vk7l
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>You can still read from the filesystem to list all the images<|eor|><|eols|><|endoftext|>
13
programminghorror
mothzilla
g945tko
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>could be generated by say php<|eor|><|sor|>That makes it fine.<|eor|><|eols|><|endoftext|>
9
programminghorror
tigie11
g948j3g
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>Alt+shift and select a zone. In most code editor, you can write multiple line at the same time. You just need to change the last number. You c...
8
programminghorror
UntestedMethod
g94qyj8
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>This ain't shit compared to the 125,000 character long line of ID's I came across in one WP site I ended up working on. Definitely a moment of ...
7
programminghorror
CollieOop
g953vid
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>They used var AND didnt indent <|eor|><|sor|>Using 'var' is normal for older code, or code written by people who learned JS a while ago. Not exa...
7
programminghorror
fried-noodles_
g9433nk
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>They used var AND didnt indent <|eor|><|eols|><|endoftext|>
6
programminghorror
MaggotStorm
g94fh7i
<|sols|><|sot|>Found this on an architect's website. I hope they atleast didn't write all the image names by hand<|eot|><|sol|>https://i.redd.it/gsa9t9kugnt51.png<|eol|><|sor|>They used var AND didnt indent <|eor|><|sor|>Using 'var' is normal for older code, or code written by people who learned JS a while ago. Not exa...
6