subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
migueeel
g98kdbj
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>[deleted]<|eor|><|sor|>lines, programmers are paid by the lines else our iterators would be "iterator" not "i"<|eor|><|eols|><|endoftext|>
141
programminghorror
Virv12
g98fe5a
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>I saw it in decompiled code.<|eor|><|eols|><|endoftext|>
102
programminghorror
racrisnapra666
g98fjiz
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>That's a nice variable right there. Ele. Slips off your tongue, doesn't it?<|eor|><|eols|><|endoftext|>
62
programminghorror
TimGreller
g98w8c7
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>I saw it in decompiled code.<|eor|><|soopr|>oh this isn't decompiled this is 16yo me being an idiot lol<|eoopr|><|sor|>oh you mean you were !(age < 16 || age > 16) when you wrote this?<|eor|><|eols|><|endoftext|>
52
programminghorror
GVmG
g98pswa
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>I saw it in decompiled code.<|eor|><|soopr|>oh this isn't decompiled this is 16yo me being an idiot lol<|eoopr|><|sor|>What were you teying to do<|eor|><|soopr|>i don't remember cause it was forever years ago, but it was probably el...
50
programminghorror
PotentBeverage
g98ner6
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>[deleted]<|eor|><|sor|>lines, programmers are paid by the lines else our iterators would be "iterator" not "i"<|eor|><|sor|>Else we'd all be using cobol<|eor|><|eols|><|endoftext|>
49
programminghorror
turboPocky
g98ic9w
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>That's a nice variable right there. Ele. Slips off your tongue, doesn't it?<|eor|><|sor|>extinction level event<|eor|><|eols|><|endoftext|>
47
programminghorror
GiveMeHighFive
g98fd9p
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>Refactoring casualty? Or maybe the 7 key didn't just work on the keyboard :D<|eor|><|sor|>Why would you need 7?<|eor|><|sor|>< 17, instead of <= 16<|eor|><|sor|>Why not <= 16? All the needed symbols are already there<|eor|><|eols|><...
40
programminghorror
PhoenixPaladin
g98w73j
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>if (ele == 1 || ele == 2 || ele == 3 || ele == 4 || ele == 5 || ele == 6 || ele == 7 || ele == 8 || ele == 9 || ele == 10 || ele == 11 || ele == 12 || ele == 13 || ele == 14 || ele == 15 || ele == 16) { ele.getValue(e...
39
programminghorror
braxistExtremist
g99o35s
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>They forgot && !(ele >16)<|eor|><|sor|>if (ele == 16 || ele != 16)<|eor|><|eols|><|endoftext|>
38
programminghorror
YourMJK
g995lz0
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>I saw it in decompiled code.<|eor|><|soopr|>oh this isn't decompiled this is 16yo me being an idiot lol<|eoopr|><|sor|>What were you teying to do<|eor|><|soopr|>i don't remember cause it was forever years ago, but it was probably el...
38
programminghorror
general_sirhc
g99ypvt
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>They forgot && !(ele >16)<|eor|><|sor|>if (ele == 16 || ele != 16)<|eor|><|sor|>Hellllllloo Javascript var ele = "16";<|eor|><|eols|><|endoftext|>
27
programminghorror
Zymoox
g98q6xz
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>[deleted]<|eor|><|sor|>lines, programmers are paid by the lines else our iterators would be "iterator" not "i"<|eor|><|sor|>That moment when you start saying else instead of otherwise, you know you are a programmer.<|eor|><|eols|><...
27
programminghorror
ZylonBane
g9981vg
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>Newbie: "Hey how do I do this comparison?" Guru: "Use less than or equal to!" Newbie: *does exactly that*<|eor|><|eols|><|endoftext|>
25
programminghorror
19Riften99
g98pcga
<|sols|><|sot|>why though<|eot|><|sol|>https://i.redd.it/y879qupclvt51.png<|eol|><|sor|>I saw it in decompiled code.<|eor|><|soopr|>oh this isn't decompiled this is 16yo me being an idiot lol<|eoopr|><|sor|>What were you teying to do<|eor|><|eols|><|endoftext|>
25
programminghorror
tomc128
jjptv4
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|eols|><|endoftext|>
2,177
programminghorror
TomNa
gae2aqo
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|eols|><|endoftext|>
571
programminghorror
TomNa
gae5d15
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|soopr|>Sorry! I tried to find the rules but couldn't find them. How are you sup...
244
programminghorror
LucasTheNeko
gae3eyg
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Jesus Christ. And there is me thinking how to best secure it and even encrypting it on the client so the server never sees the unencrypted password becau...
153
programminghorror
tomc128
gae4wsb
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|soopr|>Sorry! I tried to find the rules but couldn't find them. How are you sup...
100
programminghorror
AyrA_ch
gae8pwy
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Jesus Christ. And there is me thinking how to best secure it and even encrypting it on the client so the server never sees the unencrypted password becau...
87
programminghorror
tomc128
gae5xke
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|soopr|>Sorry! I tried to find the rules but couldn't find them. How are you sup...
49
programminghorror
zandzpider
gae7sms
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Your default password? That's just as bad as the picture you posted<|eor|><|eols|><|endoftext|>
44
programminghorror
Rangsk
gaecvjd
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Jesus Christ. And there is me thinking how to best secure it and even encrypting it on the client so the server never sees the unencrypted password becau...
39
programminghorror
nomealeatorioreddit
gae8lew
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>For verification reasons, please also include credit card number, expiry date and cvv<|eor|><|eols|><|endoftext|>
34
programminghorror
Mr_Redstoner
gaeap8n
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Im scared to learn they are actually keeping the passwords as plain text. Oh god i hope not<|eor|><|sor|>That pretty much doesn't matter at this point. S...
34
programminghorror
redwall_hp
gaeni1p
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|soopr|>Sorry! I tried to find the rules but couldn't find them. How are you sup...
34
programminghorror
TomNa
gaea2dy
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|soopr|>Sorry! I tried to find the rules but couldn't find them. How are you sup...
31
programminghorror
OKara061
gae8ijr
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Im scared to learn they are actually keeping the passwords as plain text. Oh god i hope not<|eor|><|eols|><|endoftext|>
26
programminghorror
m1ch4ll0
gaekgwo
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Jesus Christ. And there is me thinking how to best secure it and even encrypting it on the client so the server never sees the unencrypted password becau...
25
programminghorror
tomc128
gaea2ek
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>Your default password? That's just as bad as the picture you posted<|eor|><|soopr|>Yeah I suppose it is... sent via. email to me. At least the email was ...
24
programminghorror
allegroconspirito
gaf5n4q
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|sor|>With you on that one. Breaks Rule 1.<|eor|><|sor|>A robot may not injure a...
24
programminghorror
blipman17
gaex3x7
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|soopr|>Sorry! I tried to find the rules but couldn't find them. How are you sup...
23
programminghorror
wOlfLisK
gag6vk3
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>This isn't programming horror. This is lack of programming horror<|eor|><|sor|>With you on that one. Breaks Rule 1.<|eor|><|sor|>A robot may not injure a...
20
programminghorror
mothzilla
gaeb586
<|sols|><|sot|>Just signed up for an online class. Needless to say, I'll be keeping my default password.<|eot|><|sol|>https://i.redd.it/q7bo69oxsuv51.png<|eol|><|sor|>>Sorry that password is taken.<|eor|><|eols|><|endoftext|>
19
programminghorror
Toxic-Sky
km2536
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|eols|><|endoftext|>
2,177
programminghorror
throwaway8u3sH0
ghczytn
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|eols|><|endoftext|>
524
programminghorror
krisnarocks
ghd0czv
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|eols|><|endoftext|>
273
programminghorror
3Domse3
ghd38wj
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>I get this soooo f\*cking often. Also restriction on which characters are allowed... The best/worst is including just a small number specifically chosen of symbols...<|eor|><|eols|><|endoftext|>
167
programminghorror
Return_Of_The_Fly
ghd9qmb
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|sor|>[deleted]<|eor|><|sor|>...
151
programminghorror
TechnoAha
ghd2fyw
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|eols|><|endoftext|>
146
programminghorror
krisnarocks
ghd2od7
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|sor|>Ah, yes. Cost savings. ...
93
programminghorror
DrMaxwellEdison
ghczx0v
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Makes sense to limit the length. I'd be fine with more, but 20 characters doesn't seem unreasonable to me.<|eor|><|sor|>The hashed value should be a known length, regardless of the plaintext password's le...
83
programminghorror
LordDagwood
ghdidfs
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>I couldn't sign in on Xbox 360 games on my Xbox One; I got a generic error. Turned out, it was because Xbox 360 has a cap of 16 characters for the password and the Xbox One wasn't programmed to relay that ...
67
programminghorror
-__-_--__--_
ghdqbno
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|sor|>[deleted]<|eor|><|sor|>...
61
programminghorror
TechnoAha
ghd3qcn
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|sor|>Ah, yes. Cost savings. ...
58
programminghorror
krisnarocks
ghd43th
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|sor|>Ah, yes. Cost savings. ...
52
programminghorror
doubleone44
ghdqr6d
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>My college limits us to 6, no caps, no symbols, letters and numbers only.<|eor|><|sor|>time to brute force the administrator password?<|eor|><|eols|><|endoftext|>
51
programminghorror
DrStalker
ghde2dh
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>I get this soooo f\*cking often. Also restriction on which characters are allowed... The best/worst is including just a small number specifically chosen of symbols...<|eor|><|sor|>"For security purposes ...
50
programminghorror
Jade3375
ghdp1ax
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>My college limits us to 6, no caps, no symbols, letters and numbers only.<|eor|><|eols|><|endoftext|>
47
programminghorror
datGryphon
ghcu4ne
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Makes sense to limit the length. I'd be fine with more, but 20 characters doesn't seem unreasonable to me.<|eor|><|sor|>[deleted]<|eor|><|sor|>You gotta salt and hash those bad boys before you go writing ...
45
programminghorror
duffkiligan
ghdey57
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>Ive seen banks that limit it to 12... <|eor|><|sor|>My bank does that. Maybe they're paying bandwidth by the bytes /s<|eor|><|sor|>Database password field length limit<|eor|><|sor|>Ah, yes. Cost savings. ...
43
programminghorror
cheerycheshire
ghduer0
<|sols|><|sot|>Nintendo going all out on security...<|eot|><|sol|>https://i.redd.it/om7w4z4cm0861.jpg<|eol|><|sor|>My college limits us to 6, no caps, no symbols, letters and numbers only.<|eor|><|sor|>time to brute force the administrator password?<|eor|><|sor|>Sadly can't unless I can get it within 3 tries they lock...
40
programminghorror
cosmicroamingoctopus
oum5sx
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|eols|><|endoftext|>
2,178
programminghorror
ZylonBane
h73j28l
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Gettin' paid by the KLOC.<|eor|><|eols|><|endoftext|>
428
programminghorror
Studnicky
h73cttr
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>And they're probably heralded as some type of prodigy by the CEO whose...
304
programminghorror
pc_asocial_guy
h73s3o2
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>nice 11000 lines of code in the one file<|eor|><|eols|><|endoftext|>
249
programminghorror
mikaleowiii
h73y555
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Good luck with this one, transcribers<|eor|><|eols|><|endoftext|>
225
programminghorror
lor_louis
h73f77i
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>And they're probably heralded as some type of prodigy by the CEO whose...
190
programminghorror
Studnicky
h73x80w
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Real talk: Did this actually happen? I'm dumbfounded<|eor|><|sor|>I be...
173
programminghorror
--B_L_A_N_K--
h75wzsk
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Good luck with this one, transcribers<|eor|><|sor|>*Video Transcriptio...
160
programminghorror
Studnicky
h747p6x
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Real talk: Did this actually happen? I'm dumbfounded<|eor|><|sor|>I be...
108
programminghorror
Tall_computer
h73wh5y
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Real talk: Did this actually happen? I'm dumbfounded<|eor|><|eols|><|e...
98
programminghorror
Lithl
h748gah
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>nice 11000 lines of code in the one file<|eor|><|sor|>Exactly!, I was ...
89
programminghorror
ZylonBane
h73xlui
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Real talk: Did this actually happen? I'm dumbfounded<|eor|><|sor|>I be...
87
programminghorror
ShotgunPayDay
h73xe7q
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>I hate people who brute force solutions like this. If there is an edg...
83
programminghorror
wikipedia_answer_bot
h762n64
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Gettin' paid by the KLOC.<|eor|><|sor|>What is KLOC? I've heard of SLO...
78
programminghorror
--B_L_A_N_K--
h75x2nw
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Good luck with this one, transcribers<|eor|><|sor|>*Video Transcriptio...
76
programminghorror
LaLiLuLeLo_0
h74crxl
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Good luck with this one, transcribers<|eor|><|sor|> from configpars...
75
programminghorror
iceman012
h768rd2
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Gettin' paid by the KLOC.<|eor|><|sor|>What is KLOC? I've heard of SLO...
66
programminghorror
hsantefort12
h7414hf
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>I paid for the cpu and ram, dammit I'm gonna use all of it!<|eor|><|eo...
65
programminghorror
TheDownvotesFarmer
h73z5oj
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>nice 11000 lines of code in the one file<|eor|><|sor|>Exactly!, I was ...
65
programminghorror
Doppelbockk
h73xla3
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Real talk: Did this actually happen? I'm dumbfounded<|eor|><|sor|>I be...
57
programminghorror
Zanderax
h75wivy
<|sols|><|sot|>Some utter madman at my office wrote a function to read in user options from a 40-line text file that reads in the entire file 20 different times and is over 11,000 lines long.<|eot|><|sol|>https://v.redd.it/6o00icp46de71<|eol|><|sor|>Gettin' paid by the KLOC.<|eor|><|sor|>crazy. how common is this in th...
53
programminghorror
toroznik
mpzdz9
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|eols|><|endoftext|>
2,156
programminghorror
killchain
gucvsk9
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Some people really want to reinvent the square wheel.<|eor|><|eols|><|endoftext|>
470
programminghorror
kdyz
gucytj0
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>I never thought Id ever hear the notation O(random) but here we are<|eor|><|eols|><|endoftext|>
204
programminghorror
CollieOxenfree
gucxrme
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Text transcription: from random import randint def is_even(num): if num in [1,3,5,7,9]: return False if num == 2: return True while...
190
programminghorror
bee-sting
guct51b
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Seems legit, 1, 3, 5, 7 and 9 are definitely odd numbers<|eor|><|eols|><|endoftext|>
139
programminghorror
lengau
gud8r62
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Text transcription: from random import randint def is_even(num): if num in [1,3,5,7,9]: return False if num == 2: return True while...
102
programminghorror
hugotx
gucu6q4
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>quantum algorithms 101?<|eor|><|eols|><|endoftext|>
74
programminghorror
killchain
gucwo81
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>A much shorter (but no less stupid) version would be def is_even(num): return str(num)[-1] in ['0', '2', '4', '6', '8']<|eor|><|sor|>The moment you see number to st...
71
programminghorror
Racist_Potato
gud9u8h
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Text transcription: from random import randint def is_even(num): if num in [1,3,5,7,9]: return False if num == 2: return True while...
67
programminghorror
staletic
gud90rr
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Text transcription: from random import randint def is_even(num): if num in [1,3,5,7,9]: return False if num == 2: return True while...
62
programminghorror
killchain
gud59dw
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Some people really want to reinvent the square wheel.<|eor|><|sor|>[deleted]<|eor|><|sor|>- searches for "square wheel" - first result is of a round rim with the brand "Square" on ...
57
programminghorror
khanzarate
gudilfs
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>Text transcription: from random import randint def is_even(num): if num in [1,3,5,7,9]: return False if num == 2: return True while...
57
programminghorror
Return_Of_The_Fly
gud4mk2
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>It does not work. If you put a prime number you will never finding a pair (a,b) with a>1 and b>1. So it will never terminate.<|eor|><|sor|>Simple, just catch the stack overflow exc...
54
programminghorror
kdyz
gud64do
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>I never thought Id ever hear the notation O(random) but here we are<|eor|><|sor|>Random/statistical algorithms are nothing new. Typically you'd give an expected execution time<|eor...
49
programminghorror
ChickenNuggetSmth
gud5ute
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>I never thought Id ever hear the notation O(random) but here we are<|eor|><|sor|>Random/statistical algorithms are nothing new. Typically you'd give an expected execution time<|eor...
47
programminghorror
mgquantitysquared
guezfeb
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>I never thought Id ever hear the notation O(random) but here we are<|eor|><|sor|>Worse. O(never) for primes above 7 Edit: I'm wrong. Forgot primes are still divisible by 1.<|eor|>...
40
programminghorror
-BurnFire-
gud20y8
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>It does not work. If you put a prime number you will never finding a pair (a,b) with a>1 and b>1. So it will never terminate.<|eor|><|eols|><|endoftext|>
37
programminghorror
coder65535
gudfegm
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>I never thought Id ever hear the notation O(random) but here we are<|eor|><|sor|>Technically this would be some factorial function, since bogosort is O((n-1)!)<|eor|><|sor|>Shouldn...
33
programminghorror
LordDagwood
guee16t
<|sols|><|sot|>New way of checking if number is even in python 3 in O(random)<|eot|><|sol|>https://i.redd.it/t3m57gba2xs61.png<|eol|><|sor|>I never thought Id ever hear the notation O(random) but here we are<|eor|><|sor|>Worse. O(never) for primes above 7 Edit: I'm wrong. Forgot primes are still divisible by 1.<|eor|>...
32
programminghorror
oofpoof3372
om2tfg
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|eols|><|endoftext|>
2,155
programminghorror
ironmagician
h5ibb9k
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|eols|><|endoftext|>
913
programminghorror
Cephell
h5igiac
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>`000\.000\.000\.000|000\.000\.000\.001|000\.000\.000\.002` and so on.<|eor|><|eols|><|endoftext|>
379
programminghorror
reinis-mazeiks
h5ide2o
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>The regex is self-aware.<|eor|><|eols|><|endoftext|>
353
programminghorror
michaelloda9
h5ifbzh
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>if (one of every possible address) return true<|eor|><|eols|><|endoftext|>
261
programminghorror
TinTinMaster
h5ihdn0
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>The thing is, an Ipv4 adress is way more than this definiton see https://blog.dave.tf/post/ip-addr-parsing/<|eor|><|eols|><|endoftext|>
224
programminghorror
Thaddaeus-Tentakel
h5iigy9
<|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>The thing is, an Ipv4 adress is way more than this definiton see https://blog.dave.tf/post/ip-addr-parsing/<|eor|><|sor|>99.9% of the time it doesn't matter ...
152