subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
kortemy
fyfgis
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|eols|><|endoftext|>
840
programminghorror
Kolibreeze
fmzpw0r
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Use always this.<|eor|><|eols|><|endoftext|>
238
programminghorror
TheMetalFleece
fmzq3hs
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Try/catch because you never know!<|eor|><|eols|><|endoftext|>
161
programminghorror
Famous_Profile
fmzr8sz
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Yes I get the horror of this logic but WHAT OUTRIGHT TRIGGERS ME IS USING LOWERCASE FOR IDENTIFIERS!! HOW FUCKING HARD IS IT TO FUCKING WRITE `app.helpers.isSet` ? IS IT SO HARD TO HOLD DOWN SHIFT KEY WHILE WRITING A NEW WORD WITHOUT SPAC...
110
programminghorror
neanderthalensis
fn04mb2
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Use always this.<|eor|><|sor|>[deleted]<|eor|><|sor|>Im getting European PHP developer vibes from this<|eor|><|eols|><|endoftext|>
92
programminghorror
yard2010
fmzzuh2
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>NotFalse? He missed the opportunity to use Falsn't<|eor|><|eols|><|endoftext|>
88
programminghorror
FallenWarrior2k
fmzqxyc
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Try/catch because you never know!<|eor|><|sor|>Gotta protect yourself from runtime-internal errors somehow bubbling up into your code.<|eor|><|eols|><|endoftext|>
87
programminghorror
arth4
fmzmy9s
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>It's guaranteed!<|eor|><|eols|><|endoftext|>
71
programminghorror
homoscedasticData
fmzsl0j
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Yes I get the horror of this logic but WHAT OUTRIGHT TRIGGERS ME IS USING LOWERCASE FOR IDENTIFIERS!! HOW FUCKING HARD IS IT TO FUCKING WRITE `app.helpers.isSet` ? IS IT SO HARD TO HOLD DOWN SHIFT KEY WHILE WRITING A NEW WORD WITHOUT SPAC...
54
programminghorror
kortemy
fn0juwa
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Use always this.<|eor|><|sor|>[deleted]<|eor|><|sor|>Im getting European PHP developer vibes from this<|eor|><|soopr|>Bingo.<|eoopr|><|eols|><|endoftext|>
53
programminghorror
truh
fmzw83o
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Yes I get the horror of this logic but WHAT OUTRIGHT TRIGGERS ME IS USING LOWERCASE FOR IDENTIFIERS!! HOW FUCKING HARD IS IT TO FUCKING WRITE `app.helpers.isSet` ? IS IT SO HARD TO HOLD DOWN SHIFT KEY WHILE WRITING A NEW WORD WITHOUT SPAC...
43
programminghorror
rguzgu
fn1aiux
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Bonus points for the useless comment helpfully documenting the args without types or a description.<|eor|><|sor|>What? I totally know what v is just by looking at it! /s<|eor|><|eols|><|endoftext|>
35
programminghorror
Phrygue
fn0zzna
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Try/catch because you never know!<|eor|><|sor|>"Better safe than sorry!" (I've had arguments with people about this where we have something like 3 nested try/catches)<|eor|><|sor|>I think the only legitimate level of try-catch I've done ha...
29
programminghorror
mothzilla
fn0a1rh
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Try/catch because you never know!<|eor|><|sor|>"Better safe than sorry!" (I've had arguments with people about this where we have something like 3 nested try/catches)<|eor|><|eols|><|endoftext|>
28
programminghorror
mothzilla
fn09unr
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Any time I see something called *helpers*, I can almost always guarantee it isn't helping.<|eor|><|eols|><|endoftext|>
22
programminghorror
mcandre
fmzpn4x
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>not sure whether to laugh or cry<|eor|><|eols|><|endoftext|>
22
programminghorror
Famous_Profile
fmzwhk8
<|sols|><|sot|>T_T<|eot|><|sol|>https://i.redd.it/hqer3vdxnzr41.png<|eol|><|sor|>Yes I get the horror of this logic but WHAT OUTRIGHT TRIGGERS ME IS USING LOWERCASE FOR IDENTIFIERS!! HOW FUCKING HARD IS IT TO FUCKING WRITE `app.helpers.isSet` ? IS IT SO HARD TO HOLD DOWN SHIFT KEY WHILE WRITING A NEW WORD WITHOUT SPAC...
21
programminghorror
sleurk
ehixfj
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|eols|><|endoftext|>
841
programminghorror
farsightxr20
fcjnoxu
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>He unrolls so the compiler doesn't have to.<|eor|><|eols|><|endoftext|>
295
programminghorror
sleurk
fcjlh2e
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
231
programminghorror
dirtyhappythoughts
fcjm7en
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
197
programminghorror
ZeroByter
fcjl1ls
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|eols|><|endoftext|>
141
programminghorror
sleurk
fcjmcdv
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
121
programminghorror
excentio
fcjz40g
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>He unrolls so the compiler doesn't have to.<|eor|><|sor|>Roses are red, Violets are blue, Unroll code for compiler, So it thanks you<|eor|><|eols|>...
101
programminghorror
Yoshalina
fcjro7w
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This reminds me of the time I made a hangman game before learning about arrays. There were 20 char variables c1-c20 for the letters of the word, an...
63
programminghorror
Langernama
fcjnjqg
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
43
programminghorror
sleurk
fcjlfo2
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>Ok so the idea is that we instantiate the 24 pieces? How is this better than an array?<|eor|><|soopr|>Oh, it's not better. He just decided not to (...
42
programminghorror
__lm__
fcjvof7
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
25
programminghorror
TheChuchNorris
fcjlcf6
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>Ok so the idea is that we instantiate the 24 pieces? How is this better than an array?<|eor|><|eols|><|endoftext|>
20
programminghorror
Parable4
fck48z5
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
20
programminghorror
wobuxihuanbaichi
fck8v77
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
20
programminghorror
sleurk
fcjnte8
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
15
programminghorror
IncarnationHero
fcjlll9
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
14
programminghorror
Quarxnox
fcjrm97
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
12
programminghorror
wobuxihuanbaichi
fckagag
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|soopr|>Fun fact, he got a 100/100 on this project, because it did technically work as expected. :)<|eoopr|><|sor|>That's some horrible grading stand...
12
programminghorror
1230james
fckn8qo
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>Oh my god. I just had to do a partner project for my final in my CS class this last semester. Basically we had to make a JavaFX application with t...
11
programminghorror
sleurk
fcjovsx
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
11
programminghorror
ddacunha
fcjqiew
<|sols|><|sot|>Friend sent me his final project for his Java class, where he made checkers without any arrays.<|eot|><|sol|>https://i.redd.it/1d7r64463q741.png<|eol|><|sor|>This is why I, as a self-taught programmer, hate school programming classes.<|eor|><|soopr|>Fun fact, he got a 100/100 on this project, because it ...
10
programminghorror
TatieKaori
xv8lyo
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|eols|><|endoftext|>
838
programminghorror
Familiar_Ad_8919
iqzsf9z
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>this format is getting boring. one 10 billion lines iseven is being posted every day<|eor|><|eols|><|endoftext|>
262
programminghorror
JonnyBoy522
ir01e51
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>I can't believe this... He should have used a switch statement<|eor|><|eols|><|endoftext|>
238
programminghorror
gost2424
iqzonc5
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Even though it looks funny , his sheer determination to keep this up till 2000 deserves respect.<|eor|><|eols|><|endoftext|>
84
programminghorror
Duydoraemon
ir0lf6w
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>this format is getting boring. one 10 billion lines iseven is being posted every day<|eor|><|sor|>Im betting there is no friend involv...
76
programminghorror
Sollder1_
iqzp76x
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Plottwist: Actually he wrote code that writes this code.<|eor|><|eols|><|endoftext|>
71
programminghorror
JonnyBoy522
ir1z9xi
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>I can't believe this... He should have used a switch statement<|eor|><|sor|>It's Python though <|eor|><|sor|>Actually, Python 3.10 has...
43
programminghorror
coco33920
ir00fi3
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Plottwist: Actually he wrote code that writes this code.<|eor|><|soopr|>How do you know it?<|eoopr|><|sor|>Because doing this until 20...
43
programminghorror
loomynartylenny
ir1yepa
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>I can't believe this... He should have used a switch statement<|eor|><|sor|>It's Python though <|eor|><|eols|><|endoftext|>
34
programminghorror
siddharth904
ir198rm
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|> return "im" * (x & 1) + "pair"<|eor|><|sor|>Wait you have to *think* to be a programmer ? Unacceptable.<|eor|><|eols|><|endoftext|...
32
programminghorror
Minojin
ir12wuk
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>this format is getting boring. one 10 billion lines iseven is being posted every day<|eor|><|sor|>Im betting there is no friend involv...
31
programminghorror
FelixLeander
ir16rq2
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|> return "im" * (x & 1) + "pair"<|eor|><|sor|>I... I have no words. Please leave<|eor|><|eols|><|endoftext|>
30
programminghorror
bw_mutley
ir130g9
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>I can't believe this... He should have used a switch statement<|eor|><|sor|>I was more concerned about the use of the word 'impair'.<|...
28
programminghorror
Sharlinator
ir09zps
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Even though it looks funny , his sheer determination to keep this up till 2000 deserves respect.<|eor|><|sor|>We need lazier people.<|...
26
programminghorror
kristallnachte
ir07wc7
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Even though it looks funny , his sheer determination to keep this up till 2000 deserves respect.<|eor|><|sor|>We need lazier people.<|...
25
programminghorror
loomynartylenny
ir1zkjn
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>I can't believe this... He should have used a switch statement<|eor|><|sor|>It's Python though <|eor|><|sor|>Actually, Python 3.10 has...
21
programminghorror
hidoomer
ir0drvm
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>this format is getting boring. one 10 billion lines iseven is being posted every day<|eor|><|sor|>Was just thinking how over this joke...
19
programminghorror
Bloody_Insane
ir0o31r
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Plottwist: Actually he wrote code that writes this code.<|eor|><|soopr|>How do you know it?<|eoopr|><|sor|>Because doing this until 20...
19
programminghorror
yule-never-know
iqzuv1a
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>``` if x % 2: return('impair') else: return('pair') ```<|eor|><|eols|><|endoftext|>
18
programminghorror
TatieKaori
iqzpazd
<|sols|><|sot|>My friend did this code for saying if a number is even or odd, look how amazing it is (he do this till 2000)<|eot|><|sol|>https://i.redd.it/7oekfbimsqr91.jpg<|eol|><|sor|>Plottwist: Actually he wrote code that writes this code.<|eor|><|soopr|>How do you know it?<|eoopr|><|eols|><|endoftext|>
18
programminghorror
Artutin06
rugxi7
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|eols|><|endoftext|>
843
programminghorror
GreatBarrier86
hqzadhc
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
303
programminghorror
Artutin06
hqzictw
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
166
programminghorror
ZombieFleshEaters
hqyymks
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|eols|><|endoftext|>
148
programminghorror
AyrA_ch
hqz8ak1
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|sor|>> Regex would be...
132
programminghorror
GreatBarrier86
hqzjhr1
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
105
programminghorror
GreatBarrier86
hqznrad
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|sor|>> Regex would be...
50
programminghorror
TimeToBecomeEgg
hqzmht9
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
43
programminghorror
GreatBarrier86
hqzmvr6
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
38
programminghorror
MindSwipe
hqzl7b0
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Just use `System.Uri` and `System.Web.HttpUtility` like [this](https://dotnetfiddle.net/0HeLSP)<|eor|><|eols|><|endoftext|>
27
programminghorror
AyrA_ch
hr01lgp
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|sor|>> Regex would be...
25
programminghorror
GreatBarrier86
hqzn5qr
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
24
programminghorror
TimeToBecomeEgg
hqzn39h
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
19
programminghorror
fsareshwala
hqzktx5
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Could this be how efficient than doing an regex? I don't think this is important at all, but makes me wonder<|eor|><|sor|>This is far less efficient than using regex. With rege...
12
programminghorror
AyrA_ch
hr0y10t
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|sor|>> Regex would be...
12
programminghorror
AyrA_ch
hr03419
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|sor|>> Regex would be...
10
programminghorror
Wazzaps
hqztdes
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
9
programminghorror
GreatBarrier86
hqzz3b9
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I feel like this is one of those cases where the developer should have thought gee, there must be an easier way to do this. But nah, fuck the URI class. Were going old school...
9
programminghorror
WikiSummarizerBot
hr0y2py
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex would be horror, there is a utility to get parameters safely: https://stackoverflow.com/questions/15713542/elegant-way-parsing-url#15713558<|eor|><|sor|>> Regex would be...
9
programminghorror
WhoseTheNerd
hr1uvee
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>Regex is wrong use-case for that. Some kind of URI parsing would be better.<|eor|><|eols|><|endoftext|>
8
programminghorror
Ambitious_Limit44
hr1g1rh
<|sols|><|sot|>When you can't be bothered using regex ( it doesn't even work btw)<|eot|><|sol|>https://i.redd.it/ysfbv5twqb981.png<|eol|><|sor|>I can help you my fren, here are the patterns: ``` [ /youtu\.be\/([^#&?]{11})/, /\?v=([^#&?]{11})/, /&v=([^#&?]{11})/, /embed\/([^#&?]{11})/, /\/v...
7
programminghorror
Roflkopt3r
q3674i
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|eols|><|endoftext|>
837
programminghorror
kinfi
hfpvch2
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>My guess is the method parameter was changed recently but the body left unchanged.<|eor|><|eols|><|endoftext|>
203
programminghorror
Roflkopt3r
hfpwmf9
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>My guess is the method parameter was changed recently but the body left unchanged.<|eor|><|soopr|>Yep we found out what's going on and that's pretty much it. It used to take an object array, but then was tra...
66
programminghorror
Roflkopt3r
hfpoxan
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|soopr|>In short, the input is an IEnumerable<bool>... whose contents may not be bools. And that's far from the only horror here. Edit: [A cleaned up version.](https://i.imgur.com/KhcDmJd.png) After way too long ...
55
programminghorror
n0tKamui
hfq4z4o
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>~~mankind~~ C# devs knew they cannot change society, so instead of reflecting on themselves, they blamed the ~~beasts~~ Java<|eor|><|eols|><|endoftext|>
51
programminghorror
mohragk
hfpxd04
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|soopr|>In short, the input is an IEnumerable<bool>... whose contents may not be bools. And that's far from the only horror here. Edit: [A cleaned up version.](https://i.imgur.com/KhcDmJd.png) After way too long ...
30
programminghorror
karisigurd4444
hfrt360
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>My guess is the method parameter was changed recently but the body left unchanged.<|eor|><|soopr|>Yep we found out what's going on and that's pretty much it. It used to take an object array, but then was tra...
18
programminghorror
Roflkopt3r
hfpy6gt
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|soopr|>In short, the input is an IEnumerable<bool>... whose contents may not be bools. And that's far from the only horror here. Edit: [A cleaned up version.](https://i.imgur.com/KhcDmJd.png) After way too long ...
16
programminghorror
michaelDav1s
hfpuv11
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>oh wow thats disgusting<|eor|><|eols|><|endoftext|>
13
programminghorror
Pilchard123
hfrhw1r
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|soopr|>In short, the input is an IEnumerable<bool>... whose contents may not be bools. And that's far from the only horror here. Edit: [A cleaned up version.](https://i.imgur.com/KhcDmJd.png) After way too long ...
13
programminghorror
veritron
hfq8dbh
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>I don't think it's really fair to post wpf code on this sub, that's too easy.<|eor|><|eols|><|endoftext|>
11
programminghorror
Roflkopt3r
hfq9q4g
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|soopr|>In short, the input is an IEnumerable<bool>... whose contents may not be bools. And that's far from the only horror here. Edit: [A cleaned up version.](https://i.imgur.com/KhcDmJd.png) After way too long ...
10
programminghorror
Nivekk_
hfqljwp
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>"For each value, if a copy of that value is Visibility, then take the Visibility value from a constant and FORCE it to become Visibility (just in case the constant has amnesia), and then store it in a generi...
9
programminghorror
caboosetp
hfqqhm5
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>~~mankind~~ C# devs knew they cannot change society, so instead of reflecting on themselves, they blamed the ~~beasts~~ Java<|eor|><|sor|>"Father, you did this to me!"<|eor|><|eols|><|endoftext|>
8
programminghorror
mohragk
hfq7mc7
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|soopr|>In short, the input is an IEnumerable<bool>... whose contents may not be bools. And that's far from the only horror here. Edit: [A cleaned up version.](https://i.imgur.com/KhcDmJd.png) After way too long ...
8
programminghorror
DeadlockAsync
hfqloaj
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>Maybe I am missing why this has to be a function at all? Lets take a few use cases: `Convert(values, 'or')` becomes `values.Any()` `Convert(values, 'or not')` becomes `!values.Any()` `Convert(values, 'no...
6
programminghorror
Terence_McKenna
hfqitq6
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>Dear god<|eor|><|sor|>The code alone is proof that there isn't one. :/<|eor|><|eols|><|endoftext|>
6
programminghorror
Spare-Blacksmith1376
hfr6e3o
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>~~mankind~~ C# devs knew they cannot change society, so instead of reflecting on themselves, they blamed the ~~beasts~~ Java<|eor|><|sor|>"Father, you did this to me!"<|eor|><|sor|>This looks like something ...
6
programminghorror
Roflkopt3r
hfs0z9q
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>My guess is the method parameter was changed recently but the body left unchanged.<|eor|><|soopr|>Yep we found out what's going on and that's pretty much it. It used to take an object array, but then was tra...
6
programminghorror
lopolo28
hfq10uq
<|sols|><|sot|>What in God's name am I looking at?<|eot|><|sol|>https://i.redd.it/3t7s35l6a0s71.jpg<|eol|><|sor|>Who leaked my code ?<|eor|><|eols|><|endoftext|>
5
programminghorror
RakeLame
o8r9m9
<|sols|><|sot|>Why use lists when an if statement will do<|eot|><|sol|>https://i.redd.it/e2tpywiv0r771.jpg<|eol|><|eols|><|endoftext|>
836