subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
Owlstorm
fcqjigk
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>Interesting setup. Why is it necessary to have the option of multiple true countries in one object? Did they want to keep country /cont...
120
programminghorror
erlangguy
fcql4ol
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>So what happens next time theres a new country code? All the clients break simultaneously? Amazing.<|eor|><|eols|><|endoftext|>
102
programminghorror
wibblewafs
fcqo5uv
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>This is necessary when you are in multiple countries at the same time, or even all of them. OP is intentionally ignoring this critical ...
99
programminghorror
thestamp
fcql9sl
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>So what happens next time theres a new country code? All the clients break simultaneously? Amazing.<|eor|><|sor|>Adding fields are not ...
81
programminghorror
Owlstorm
fcr3vd1
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>This is necessary when you are in multiple countries at the same time, or even all of them. OP is intentionally ignoring this critical ...
75
programminghorror
randomly_gay
fcqtmxj
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>t: # S U C C<|eor|><|sor|>#U B U S<|eor|><|eols|><|endoftext|>
71
programminghorror
GiveMeHighFive
fcqjhht
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>This is necessary when you are in multiple countries at the same time, or even all of them. OP is intentionally ignoring this critical ...
60
programminghorror
octalgon
fcqnu4t
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>So what happens next time theres a new country code? All the clients break simultaneously? Amazing.<|eor|><|soopr|>That would /never/ h...
56
programminghorror
LimitedWard
fcr267t
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>Interesting setup. Why is it necessary to have the option of multiple true countries in one object? Did they want to keep country /cont...
45
programminghorror
Larax22
fcr3bqo
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>Things like these makes me think I actually might be successful in the programming field<|eor|><|eols|><|endoftext|>
44
programminghorror
thestamp
fcqkzdf
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>Interesting setup. Why is it necessary to have the option of multiple true countries in one object? Did they want to keep country /cont...
40
programminghorror
ChrisLeeBare
fcqj5s1
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>F<|eor|><|eols|><|endoftext|>
37
programminghorror
octalgon
fcqlcbc
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>So what happens next time theres a new country code? All the clients break simultaneously? Amazing.<|eor|><|soopr|>That would /never/ h...
37
programminghorror
Jbk0
fcqodlp
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>t: # S U C C<|eor|><|sor|>**E S S**<|eor|><|eols|><|endoftext|>
34
programminghorror
Smoother-Bytes
fcqnngd
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>So what happens next time theres a new country code? All the clients break simultaneously? Amazing.<|eor|><|soopr|>That would /never/ h...
33
programminghorror
loutr
fcqlt3c
<|sols|><|sot|>The API I am dealing with has found THE BEST WAY to represent the country field. ONLY 192 VALUES necessary!<|eot|><|sol|>https://i.redd.it/onwmwius86841.png<|eol|><|sor|>This is necessary when you are in multiple countries at the same time, or even all of them. OP is intentionally ignoring this critical ...
31
programminghorror
sendvo
lfchm2
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|eols|><|endoftext|>
1,888
programminghorror
way22
gml7axp
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|eols|><|endoftext|>
227
programminghorror
Crowdcontrolz
gmllvc4
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>If that fucker thinks he can get away with this shit hes got another thing co...
113
programminghorror
nazish_akhtar
gml8p3m
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>You just reminded me of something.... <|eor|><|eols|><|endoftext|>
99
programminghorror
josephblade
gml82li
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>For this reason I usually create a ticket in our ticketing system for jobs to do before going live. Either that ticket gets expanded or it gets child tickets underneath. That way when...
86
programminghorror
Krom2040
gmlcak0
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>The lesson here is that a TODO comment doesnt really mean anything and will likely never get done. You need a task in your task scheduling system, whatever that may be.<|eor|><|eols|><...
70
programminghorror
Chriszilla1123
gmlpxnq
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>Past me was a fucking lazy asshole. Future me though? Great guy, he'll handle...
49
programminghorror
karijuana
gml9pvo
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>For this reason I usually create a ticket in our ticketing system for jobs to do before going live. Either that ticket gets expanded or it gets child tickets underneath. That way when...
36
programminghorror
Mithrandir2k16
gmmhhpm
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>The lesson here is that a TODO comment doesnt really mean anything and will likely never get done. You need a task in your task scheduling system, whatever that may be.<|eor|><|sor|>We...
32
programminghorror
Loewi_CW
gmmu121
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>The lesson here is that a TODO comment doesnt really mean anything and will likely never get done. You need a task in your task scheduling system, whatever that may be.<|eor|><|sor|>We...
31
programminghorror
crrime
gmmh2pm
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>If that fucker thinks he can get away with this shit hes got another thing co...
25
programminghorror
otac0n
gmmu1ee
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>The lesson here is that a TODO comment doesnt really mean anything and will likely never get done. You need a task in your task scheduling system, whatever that may be.<|eor|><|sor|>I ...
22
programminghorror
imzacm123
gml7xg5
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>I made a system last year that luckily is only temporary for one client while we work on a version to handle multiple clients. In a lot of places I've ended up putting configuration i...
21
programminghorror
Polantaris
gmlqzyf
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>I have a code formatting/styling rule that gives an error for TODO's and simi...
20
programminghorror
nosoupforyou
gmllu89
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>I'm finding all kinds of "fix this soon" notes from my predecessor in the pro...
19
programminghorror
Mithrandir2k16
gmmu4mb
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>The lesson here is that a TODO comment doesnt really mean anything and will likely never get done. You need a task in your task scheduling system, whatever that may be.<|eor|><|sor|>We...
16
programminghorror
stefke999
gmlpchk
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>02.05.2013. //todo: temp 02.08.2021. //temp my ass!<|eor|><|eols|><|endoftext|>
15
programminghorror
tech6hutch
gmmxesh
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>If that fucker thinks he can get away with this shit hes got another thing co...
15
programminghorror
egosummiki
gmlw8zb
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Reminded of our ``` //TODO: Put the actual recaptcha token before prod ``` Yep we had recaptcha-free registration for a few days \_()_/<|eor|><|eols|><|endoftext|>
12
programminghorror
karijuana
gmmdvxi
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>For this reason I usually create a ticket in our ticketing system for jobs to do before going live. Either that ticket gets expanded or it gets child tickets underneath. That way when...
12
programminghorror
erikamaker
gmmlz09
<|sols|><|sot|>Found this lovely message from past me in production today<|eot|><|sol|>https://i.redd.it/dpxs29gng9g61.png<|eol|><|sor|>Don't you just have to hate your past-self for lazy stuff like this? I know I do with mine...<|eor|><|sor|>I have a code formatting/styling rule that gives an error for TODO's and simi...
11
programminghorror
_zeraye
wusai4
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|eols|><|endoftext|>
1,875
programminghorror
_zeraye
ilbfi60
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>Wait I am not into Go but tell if i am wrong this code will take any number and give true for 0 If number is negetive then it willl make it postive and subtract 1 from it until it becomes zero and give true And same for a p...
326
programminghorror
Impressiv-golem-59
ilbeq6p
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>Wait I am not into Go but tell if i am wrong this code will take any number and give true for 0 If number is negetive then it willl make it postive and subtract 1 from it until it becomes zero and give true And same for a p...
179
programminghorror
entityadam
ilbi6t1
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>I got mad at line 1 Is it I seven or is even?<|eor|><|eols|><|endoftext|>
140
programminghorror
Impressiv-golem-59
ilbfycz
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>Wait I am not into Go but tell if i am wrong this code will take any number and give true for 0 If number is negetive then it willl make it postive and subtract 1 from it until it becomes zero and give true And same for a p...
121
programminghorror
mikewirkijowski
ilc5vvc
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>Wait I am not into Go but tell if i am wrong this code will take any number and give true for 0 If number is negetive then it willl make it postive and subtract 1 from it until it becomes zero and give true And same for a p...
113
programminghorror
aunva
ilbu9ox
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>You can *double* the speed of this code by returning `IsEven(number - 2)` and adding a special case to return false for `number == 1`.<|eor|><|eols|><|endoftext|>
84
programminghorror
Xirenec_
ilbjpk5
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>I got mad at line 1 Is it I seven or is even?<|eor|><|sor|>This only work if you have intel i7 cpu<|eor|><|eols|><|endoftext|>
80
programminghorror
mfcneri
ilbn5eq
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>I prefer using https://github.com/samuelmarina/is-even<|eor|><|sor|>But what about 375001 ?<|eor|><|eols|><|endoftext|>
66
programminghorror
fosyep
ilbvz8q
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>I prefer using https://github.com/samuelmarina/is-even<|eor|><|sor|>But what about 375001 ?<|eor|><|sor|>Good catch, please create a Pull Request<|eor|><|eols|><|endoftext|>
63
programminghorror
JackFJN
ilc4zl5
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>Wait I am not into Go but tell if i am wrong this code will take any number and give true for 0 If number is negetive then it willl make it postive and subtract 1 from it until it becomes zero and give true And same for a p...
36
programminghorror
HildartheDorf
ilckl6t
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>You can *double* the speed of this code by returning `IsEven(number - 2)` and adding a special case to return false for `number == 1`.<|eor|><|sor|>The compiler should optimize that /s<|eor|><|eols|><|endoftext|>
29
programminghorror
veiva
ilbywqv
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>I prefer using https://github.com/samuelmarina/is-even<|eor|><|sor|>No unit tests? How can I be sure it ACTUALLY works?!<|eor|><|eols|><|endoftext|>
27
programminghorror
lateja
ild2w2m
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>Wait I am not into Go but tell if i am wrong this code will take any number and give true for 0 If number is negetive then it willl make it postive and subtract 1 from it until it becomes zero and give true And same for a p...
26
programminghorror
Brushermans
ilbvqt1
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>It's stunningly beautiful yet wholy unholy. Truly it is a perverted temptation<|eor|><|eols|><|endoftext|>
24
programminghorror
OKara061
ilchjgf
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>You can *double* the speed of this code by returning `IsEven(number - 2)` and adding a special case to return false for `number == 1`.<|eor|><|sor|>why do thing easy way?<|eor|><|eols|><|endoftext|>
24
programminghorror
_zeraye
ilba3mc
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|soopr|>Want to check whether number is even? Best way to do this is using https://github.com/zeraye/is-even<|eoopr|><|eols|><|endoftext|>
23
programminghorror
TheGoodOldCoder
ilbowmd
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>We need a rule for this subreddit that bans `isEven` posts<|eor|><|sor|>I wouldn't mind if they banned any code that was intentionally written badly.<|eor|><|eols|><|endoftext|>
23
programminghorror
Krohnos
ilbnwp3
<|sols|><|sot|>unholy IsEven in go<|eot|><|sol|>https://i.redd.it/9jswts71d9j91.png<|eol|><|sor|>We need a rule for this subreddit that bans `isEven` posts<|eor|><|eols|><|endoftext|>
22
programminghorror
WrongdoerSufficient
p1lfse
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|eols|><|endoftext|>
1,883
programminghorror
mohragk
h8e2gza
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Oof. On the other hand I 99% would always start at what the API spits out. Dont trust any API.<|eor|><|eols|><|endoftext|>
475
programminghorror
Cephell
h8e9ydd
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>> stupid_response I felt that<|eor|><|eols|><|endoftext|>
217
programminghorror
upboatsallaround
h8eoss8
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Oof. On the other hand I 99% would always start at what the API spits out. Dont trust any API.<|eor|><|sor|>This response literally says Franchise Test Pretty sure its still under dev...
118
programminghorror
WrongdoerSufficient
h8ea39p
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>> stupid_response I felt that<|eor|><|soopr|>there are 3 different variable naming in the response as well. snake_case, lowercase and CamelCase<|eoopr|><|eols|><|endoftext|>
92
programminghorror
Silencer306
h8evcz3
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Oof. On the other hand I 99% would always start at what the API spits out. Dont trust any API.<|eor|><|sor|>I dont trust the APIs I wrote, any error, Im first checking the API response...
88
programminghorror
nolitos
h8eqy0c
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Oof. On the other hand I 99% would always start at what the API spits out. Dont trust any API.<|eor|><|sor|>This response literally says Franchise Test Pretty sure its still under dev...
46
programminghorror
Eccentricc
h8eegjj
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Took me a minute to see what the issue was. I was like was was wrong setting something to null I do it all the time<|eor|><|eols|><|endoftext|>
44
programminghorror
wanderbout
h8e24ij
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>When "" or even " " isn't good enough, but ya gotta take care of them NPE's....<|eor|><|eols|><|endoftext|>
37
programminghorror
LevelSevenLaserLotus
h8ersv5
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>> stupid_response I felt that<|eor|><|soopr|>there are 3 different variable naming in the response as well. snake_case, lowercase and CamelCase<|eoopr|><|sor|>You should compromise and ...
35
programminghorror
NF-MIP
h8egkyf
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Uses Indonesian words for the response yet still has "deliverytime" in English.<|eor|><|eols|><|endoftext|>
34
programminghorror
znat
h8eqocr
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Reminds me of the api I've been working with recently. Everything was returned as a string. We took to calling booleans strooleans and numbers "strumbers." Guess that would make these "s...
31
programminghorror
Eccentricc
h8eg9yo
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Took me a minute to see what the issue was. I was like was was wrong setting something to null I do it all the time<|eor|><|sor|>[deleted]<|eor|><|sor|>I don't know what you mean but yes...
18
programminghorror
Owlstorm
h8efw2a
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>It's nice to see it surrounded by non-string nulls for variety.<|eor|><|eols|><|endoftext|>
17
programminghorror
WrongdoerSufficient
h8eqznf
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>> stupid_response I felt that<|eor|><|soopr|>there are 3 different variable naming in the response as well. snake_case, lowercase and CamelCase<|eoopr|><|sor|>[deleted]<|eor|><|soopr|>P...
16
programminghorror
LevelSevenLaserLotus
h8ery9p
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Took me a minute to see what the issue was. I was like was was wrong setting something to null I do it all the time<|eor|><|sor|>[deleted]<|eor|><|sor|>I don't know what you mean but yes...
16
programminghorror
allmhuran
h8f3a33
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Took me a minute to see what the issue was. I was like was was wrong setting something to null I do it all the time<|eor|><|sor|>[deleted]<|eor|><|sor|>I don't know what you mean but yes...
15
programminghorror
nolitos
h8fwd30
<|sols|><|sot|>This API response cost me 20 minute to debug. ( NaN Km )<|eot|><|sol|>https://i.redd.it/3etoorhgwhg71.png<|eol|><|sor|>Oof. On the other hand I 99% would always start at what the API spits out. Dont trust any API.<|eor|><|sor|>This response literally says Franchise Test Pretty sure its still under dev...
15
programminghorror
NimdaHAT
m0jmun
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|eols|><|endoftext|>
1,881
programminghorror
NimdaHAT
gq87p4c
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|eols|><|endoftext|>
299
programminghorror
lucas-codes
gq8ci80
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|eols|><|endoftext|...
171
programminghorror
Technologenesis
gq8h623
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|sor|>In practice, ...
105
programminghorror
temp722
gq93b5c
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|sor|>Why z... it hurts...<|eor|><|sor|>'i' was taken...
99
programminghorror
abc_wtf
gq8g8ry
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|soopr|>Only if the...
82
programminghorror
Nordrian
gq8pyuq
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|sor|>Why z... it hurts...<|eor|><|eols|><|endoftext|...
78
programminghorror
NimdaHAT
gq8dcrc
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|soopr|>Only if the...
64
programminghorror
schlupa
gq8k2i1
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|>Undefined behaviour. The variables are not necessarily consecutive.<|eor|><|eols|><|endoftext|>
63
programminghorror
Sophira
gq8x8cx
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|sor|>In practice, ...
36
programminghorror
schlupa
gq8khl0
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|soopr|>Only if the...
36
programminghorror
slugonamission
gq8yv9d
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|sor|>In practice, ...
35
programminghorror
MrD3a7h
gqa7cqw
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|sor|>Why z... it hurts...<|eor|><|sor|>'i' was taken...
25
programminghorror
Ceros007
gqa278u
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|sor|>Gonna have a bad time on systems where int isnt...
22
programminghorror
sixstringartist
gq9ma21
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|sor|>Gonna have a bad time on systems where int isnt...
21
programminghorror
lead999x
gq8tckl
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|>Undefined behaviour. The variables are not necessarily consecutive.<|eor|><|sor|>And there could be padding even if they are.<|eor|><|eols|><|endoftext|>
21
programminghorror
curtmack
gq8ytq2
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|> actually... as a demo of memory layout, that is kinda interesting. Will variables declared one after another like that always be in a contiguous block of memory?<|eor|><|soopr|>Only if the...
19
programminghorror
TheBrainStone
gqahpk0
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|soopr|>I actually found a way to make it look even worse instead of \`z <= 8\` you can do \`z <= (&i - &a)\` to decrease readability<|eoopr|><|sor|>Gonna have a bad time on systems where int isnt...
16
programminghorror
JackoKomm
gq8ifpt
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|>As far as i remember, that is undefined behavior. Yeah, most v compilers would work like this, but they could so something else<|eor|><|eols|><|endoftext|>
15
programminghorror
T-Rexpendable
gq8mvsp
<|sols|><|sot|>Pro tip when you forgot how to declare an array in C<|eot|><|sol|>https://i.redd.it/w9hw865v0ul61.png<|eol|><|sor|>Besides the 'no guarantee of memory layout' everybody is already mentioning, don't you also run the risk of UB or possible segfaults since z is an int compared to the uint32_t (meaning your ...
13
programminghorror
YolanonReddit
nzi44d
<|sols|><|sot|>Thanks, I hate it<|eot|><|sol|>https://i.redd.it/vg4and0kz6571.png<|eol|><|eols|><|endoftext|>
1,868
programminghorror
PersistentExponent
h1poemh
<|sols|><|sot|>Thanks, I hate it<|eot|><|sol|>https://i.redd.it/vg4and0kz6571.png<|eol|><|sor|>Disregarding the hideous logic, Wouldn't this fail at every case except if the input was 1 ?<|eor|><|eols|><|endoftext|>
747
programminghorror
TheSunSide
h1popks
<|sols|><|sot|>Thanks, I hate it<|eot|><|sol|>https://i.redd.it/vg4and0kz6571.png<|eol|><|sor|>Disregarding the hideous logic, Wouldn't this fail at every case except if the input was 1 ?<|eor|><|sor|>Since I dont know the language I cant confirm but string = false is weird<|eor|><|eols|><|endoftext|>
165
programminghorror
DeedleFake
h1qdo75
<|sols|><|sot|>Thanks, I hate it<|eot|><|sol|>https://i.redd.it/vg4and0kz6571.png<|eol|><|sor|>Disregarding the hideous logic, Wouldn't this fail at every case except if the input was 1 ?<|eor|><|sor|>This won't even compile. The function has two returns in the signature but only has a single value in each return. It ...
157
programminghorror
YolanonReddit
h1pnszn
<|sols|><|sot|>Thanks, I hate it<|eot|><|sol|>https://i.redd.it/vg4and0kz6571.png<|eol|><|sor|>What's the correct way to do this? (Myguess is to use something along the lines of "Initialise a hashtable and replace all if else statements with if(map.find(str)) exists then do something else do something else "<|eor|><|s...
138
programminghorror
flapje1
h1pvu5w
<|sols|><|sot|>Thanks, I hate it<|eot|><|sol|>https://i.redd.it/vg4and0kz6571.png<|eol|><|sor|>why does it jump from 9 to 27, then to 48 and then to 59 tho<|eor|><|sor|>Those where the only test cases. And if the tests pas it must be perfect<|eor|><|eols|><|endoftext|>
129