subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | nocticide | hl49x3u | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Real programmers make a separate if statement for every even/odd number<|eor|><|eols|><|endoftext|> | 377 |
programminghorror | HoSlayer | hl5kknq | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo... | 282 |
programminghorror | ZedTT | hl5zhh4 | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo... | 241 |
programminghorror | TGX03 | hl4gdqw | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Ture is what triggers me the most<|eor|><|eols|><|endoftext|> | 189 |
programminghorror | bearly_breathing | hl5sazu | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo... | 187 |
programminghorror | Jasdac | hl7a3br | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|sor|>It's trumped by the duty to make fun of your siblings.<|eor|><|eols|><|endoftext|> | 158 |
programminghorror | dogman_35 | hl4q4na | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Real programmers make a separate if statement for every even/odd number<|eor|><|sor|>Real programmers use a switch statement
Even if there's only two choices<|eor|><|eols|><|endoftext|> | 124 |
programminghorror | SpeedDart1 | hl4wq87 | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Not half bad for a beginner Ive seen production code worse than this lmao.<|eor|><|eols|><|endoftext|> | 92 |
programminghorror | BurnerPornAccount69 | hl4j62o | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>This isn't nearly as bad as some of the shit posted here. At least his logic works, it could just be a bit more efficient by doing 3 % 2 == 0 instead of doing it in a separate function.<|eor|><|eo... | 83 |
programminghorror | Logical_Put_5867 | hl4li46 | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>This isn't nearly as bad as some of the shit posted here. At least his logic works, it could just be a bit more efficient by doing 3 % 2 == 0 instead of doing it in a separate function.<|eor|><|so... | 81 |
programminghorror | Mr_Mango_III | hl4xytk | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo... | 78 |
programminghorror | jjfawkes | hl4o3xz | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>This is fine, especially for a beginner. It helps people to learn how to think like a programmer by explicitly writing out if statements. Later on they will make it more succinct.<|eor|><|eols|><|... | 68 |
programminghorror | arguskay | hl4mpkl | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Ture is what triggers me the most<|eor|><|sor|>If the customer wants it that way...<|eor|><|eols|><|endoftext|> | 63 |
programminghorror | zerik100 | hl76wmd | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo... | 60 |
programminghorror | curtmack | hl7utah | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo... | 59 |
programminghorror | girlav | hl4kcxm | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Ture story<|eor|><|eols|><|endoftext|> | 54 |
programminghorror | CSedu | hl5ffu8 | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>Ture is what triggers me the most<|eor|><|sor|>It's Ture-ing complete<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | mohragk | hl4ksbc | <|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>When first starting out with these logical conditions, it's pretty good to write it out as to learn how to think like that. Later on, you can concatinate as you'll grow tired of over typing.
Bonu... | 46 |
programminghorror | mvn9ql | mx83jl | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|eols|><|endoftext|> | 1,466 |
programminghorror | WangHotmanFire | gvmnbmh | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Thanks for this! Ive been struggling to get my head around neural nets for a while now but this has really cleared things up for me<|eor|><|eols|><|endoftext|> | 674 |
programminghorror | hcbylmz | gvmwvbp | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Maybe client paid per line of code.<|eor|><|eols|><|endoftext|> | 401 |
programminghorror | luciodale | gvmm9b8 | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Two extra if else and they can start saying We use AI<|eor|><|eols|><|endoftext|> | 380 |
programminghorror | TheStuporUser | gvmm6mb | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>So winrate is calculated in the client side?
What site is this again?<|eor|><|eols|><|endoftext|> | 227 |
programminghorror | marsupialRat | gvmvzvy | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>I am a bit extra dumb and can't read this, what is this?<|eor|><|sor|>I think that whats wrong is the fact that the two big chunks of code are identical, so its a big and ugly copy and paste instead of extracting and reus... | 185 |
programminghorror | elwissqc | gvn1fgb | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Im just confused by someone who uses spaces in dict keys<|eor|><|eols|><|endoftext|> | 121 |
programminghorror | n0tKamui | gvmtko4 | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>mmm artfishol intemlijenz<|eor|><|eols|><|endoftext|> | 111 |
programminghorror | jamienexon | gvmyc2f | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Maybe client paid per line of code.<|eor|><|sor|>Lol definitely pay per line! <|eor|><|eols|><|endoftext|> | 103 |
programminghorror | TheStuporUser | gvn26mr | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>So winrate is calculated in the client side?
What site is this again?<|eor|><|sor|>This is python so probably server-side code.<|eor|><|sor|>Shit. Sorry i forgot my brain at work.<|eor|><|eols|><|endoftext|> | 90 |
programminghorror | DankerOfMemes | gvmv5bp | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>I am a bit extra dumb and can't read this, what is this?<|eor|><|eols|><|endoftext|> | 86 |
programminghorror | ninuson1 | gvn3n8i | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>So winrate is calculated in the client side?
What site is this again?<|eor|><|sor|>This is python so probably server-side code.<|eor|><|sor|>noob question: how can he see server-side code?<|eor|><|sor|>You go onto the s... | 86 |
programminghorror | DankerOfMemes | gvmwk8q | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>I am a bit extra dumb and can't read this, what is this?<|eor|><|sor|>I think that whats wrong is the fact that the two big chunks of code are identical, so its a big and ugly copy and paste instead of extracting and reus... | 56 |
programminghorror | nullcone | gvnbl72 | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Im just confused by someone who uses spaces in dict keys<|eor|><|sor|>Legit psychopath<|eor|><|eols|><|endoftext|> | 54 |
programminghorror | Eric_Prozzy | gvn5nv4 | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>What in the yanderedev-fuckin tarnation shit is this garbage.<|eor|><|eols|><|endoftext|> | 50 |
programminghorror | nicnacR | gvnipo2 | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>This smells like "I did what I had to do to make the unit tests pass"<|eor|><|sor|>I can't fathom how it passed code review though<|eor|><|sor|>Code reviews are a myth<|eor|><|sor|>Code review:
\-Does it work?
\-Yes
\... | 46 |
programminghorror | axelalex2 | gvmk22q | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Oh, so that's why i am so unlucky while gambling.<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | Nothing-But-Lies | gvnm24h | <|sols|><|sot|>From a gambling site.<|eot|><|sol|>https://i.redd.it/icizomqfe0v61.jpg<|eol|><|sor|>Two extra if else and they can start saying We use AI<|eor|><|sor|>"It's a recursive neural net bro"<|eor|><|sor|>We get all employees to watch the movie AI to be able to say we used AI.<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | hikarikuen | d1avri | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|eols|><|endoftext|> | 1,464 |
programminghorror | jwele | ezjxw1i | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Found their bug:
`var startDate = new Date(el.dataset.incrementStartDate);`
Where el.dataset.incrementStartDate contained "08-09-2019" (https://i.imgur.com/Z4dfhe6.png). Which isn't a vali... | 144 |
programminghorror | dilfmagnet | ezk1nwu | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Why is it so funny to you that someone's grandma is out there saving trees<|eor|><|eols|><|endoftext|> | 77 |
programminghorror | andiconda | ezk3b9o | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Literally countless trees saved<|eor|><|eols|><|endoftext|> | 53 |
programminghorror | ACoderGirl | ezkrdbv | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Found their bug:
`var startDate = new Date(el.dataset.incrementStartDate);`
Where el.dataset.incrementStartDate contained "08-09-2019" (https://i.imgur.com/Z4dfhe6.png). Which isn't a vali... | 49 |
programminghorror | happysmash27 | ezkml21 | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>I initially thought the profile of the tree was a map of Europe.<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | yam_plan | ezk9h92 | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>NaNI!?<|eor|><|eols|><|endoftext|> | 19 |
programminghorror | Dojan5 | ezlwuuw | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>I initially thought the profile of the tree was a map of Europe.<|eor|><|sor|>I didn't notice it was a tree until you pointed that out.<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | jwele | ezjzu0d | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>they forgot to use `parseInt()` and `isNaN()`<|eor|><|sor|>Its just that start date which produces an invalid date and is used elsewhere down the line for the calculation. If you fix the for... | 18 |
programminghorror | seadoggie01 | ezkycn1 | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Found their bug:
`var startDate = new Date(el.dataset.incrementStartDate);`
Where el.dataset.incrementStartDate contained "08-09-2019" (https://i.imgur.com/Z4dfhe6.png). Which isn't a vali... | 12 |
programminghorror | chrismit3s | ezlhwcw | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Found their bug:
`var startDate = new Date(el.dataset.incrementStartDate);`
Where el.dataset.incrementStartDate contained "08-09-2019" (https://i.imgur.com/Z4dfhe6.png). Which isn't a vali... | 10 |
programminghorror | antimYT | ezjzz8t | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>they forgot to use `parseInt()` and `isNaN()`<|eor|><|sor|>they forgot to use notjavascript<|eor|><|eols|><|endoftext|> | 7 |
programminghorror | MrDude_1 | ezl3120 | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>Found their bug:
`var startDate = new Date(el.dataset.incrementStartDate);`
Where el.dataset.incrementStartDate contained "08-09-2019" (https://i.imgur.com/Z4dfhe6.png). Which isn't a vali... | 7 |
programminghorror | TheBuzzSaw | ezmdwqo | <|sols|><|sot|>A little JS horror from a recycling company's website...<|eot|><|sol|>https://i.imgur.com/ufNPfD9.png<|eol|><|sor|>I initially thought the profile of the tree was a map of Europe.<|eor|><|sor|>I didn't notice it was a tree until you pointed that out.<|eor|><|sor|>Ditto<|eor|><|eols|><|endoftext|> | 6 |
programminghorror | Jalkar | jtdawx | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|eols|><|endoftext|> | 1,462 |
programminghorror | DaPurpleTuna | gc56b81 | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|eols|><|endoftext|> | 392 |
programminghorror | Jalkar | gc56djd | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 315 |
programminghorror | DaPurpleTuna | gc56gpk | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 149 |
programminghorror | Jalkar | gc56l46 | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 146 |
programminghorror | NLJeroen | gc57ojk | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Sixtythreethousandninehundredandten.<|eor|><|eols|><|endoftext|> | 62 |
programminghorror | hadidotj | gc58j0w | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 58 |
programminghorror | ka-knife | gc5rqg4 | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 58 |
programminghorror | Ahajha1177 | gc50kdh | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>That person should go down a layer of hell for every stupid indentation in this file.
But also check for a null terminator, don't want to run past the bottom of hell.<|eor|><|eols|><|e... | 48 |
programminghorror | TheTacoWombat | gc5qz1j | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 43 |
programminghorror | AngriestSCV | gc5w12m | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 43 |
programminghorror | stayclassytally | gc5erbw | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>You're looking at a compiled webpack build file. Nice try tho.<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | Jalkar | gc57332 | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 24 |
programminghorror | VoidNode | gc62b5g | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>You're looking at a compiled webpack build file. Nice try tho.<|eor|><|sor|>Yes, but that compiled file has now become the 'source file', which is pretty damn horrible<|eor|><|eols|><|endof... | 19 |
programminghorror | Snakeyb | gc5hlxd | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 19 |
programminghorror | TheTacoWombat | gc65h67 | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Are you sure thats not a file autogenned by webpack? Commenting looks like that is the case.
Defo looks like one of the files compiled from webpack.<|eor|><|soopr|>That's part of the horro... | 19 |
programminghorror | road_laya | gc5phsy | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Sixtythreethousandninehundredandten.<|eor|><|sor|>Enterprise<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | TheTacoWombat | gc6cyrd | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|sor|>Why tho...
Webpack is for bundling+filtering. If you bother making changes... why not make it in the source files?
This hurts my brain<|eor|><|soopr|>Proper lazyness of the "expert"...i t... | 13 |
programminghorror | ka-knife | gc6cks2 | <|sols|><|sot|>I was asked to debug this stuff produced by an expert<|eot|><|sol|>https://i.redd.it/path1nhmsyy51.png<|eol|><|soopr|>That's part of the horror... I think it was generated THEN customized...<|eoopr|><|sor|>Why tho...
Webpack is for bundling+filtering. If you bother making changes... why not make it in t... | 12 |
programminghorror | FL_Mango | fu8aij | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|eols|><|endoftext|> | 1,454 |
programminghorror | migueeel | fmbbp1r | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>Things like this make you wanna fire the client. Or your manager.<|eor|><|eols|><|endoftext|> | 281 |
programminghorror | timmyotc | fmbcu8t | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>ha. haha. Hahhahaa
If they could be convinced to upgrade, they wouldn't have told the developer that they needed to redo ev... | 253 |
programminghorror | tech6hutch | fmbbjvk | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|eols|><|endoftext|> | 159 |
programminghorror | Dreadedsemi | fmbipl4 | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>ha. haha. Hahhahaa
If they could be convinced to upgrade, they wouldn't have told the developer that they needed to redo ev... | 145 |
programminghorror | zachpuls | fmbspxt | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|eols|><|endoftext|> | 108 |
programminghorror | timmyotc | fmbl0hv | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>ha. haha. Hahhahaa
If they could be convinced to upgrade, they wouldn't have told the developer that they needed to redo ev... | 94 |
programminghorror | MoralImpeachability | fmbyvvb | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|sor|>*15 year old Joomla website on the same server endered... | 91 |
programminghorror | mikeputerbaugh | fmbqb7a | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>It's a one-line fix in the Dockerfile
oh wait<|eor|><|eols|><|endoftext|> | 80 |
programminghorror | hennell | fmbzh3m | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>ha. haha. Hahhahaa
If they could be convinced to upgrade, they wouldn't have told the developer that they needed to redo ev... | 56 |
programminghorror | ReptileCake | fmcja7w | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>Inb4 php sucks anyways, should have just developed in it python<|eor|><|sor|>php sucks anyways, should have just developed in it python<|eor|><|eols|><|endoftext|> | 44 |
programminghorror | AttackOfTheThumbs | fmczn5o | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>I'm curious how that could have gone unknown for 3 months.<|eor|><|sor|>Have you worked with clients?<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | TheGocho | fmbupcq | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|sor|>*And this is how all other webs went down due unresolv... | 41 |
programminghorror | Carter127 | fmc4brp | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|soopr|>This is basically what I said. It apparently has a t... | 38 |
programminghorror | b1ackcat | fmd3fsi | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>Unfortunately, it's not always that simple. Last year I helped migrate a 15 year old legacy system from php 5.5 to 7.2. It t... | 37 |
programminghorror | FL_Mango | fmc1hm2 | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|soopr|>This is basically what I said. It apparently has a t... | 35 |
programminghorror | TheGocho | fmc3i7b | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|sor|>*And this is how all other webs went down due unresolv... | 30 |
programminghorror | fynn34 | fmcc99h | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>ha. haha. Hahhahaa
If they could be convinced to upgrade, they wouldn't have told the developer that they needed to redo ev... | 27 |
programminghorror | fynn34 | fmcci02 | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>zpuls@web$ sudo apt remove php5.4 -y
zpuls@web$ sudo apt install php7 -y
Where should I send the bill for my consulting hours?<|eor|><|sor|>*15 year old Joomla website on the same server endered... | 25 |
programminghorror | b1ackcat | fmczl4q | <|sols|><|sot|>Friend of mine had a rough yesterday it seems.<|eot|><|sol|>https://i.redd.it/5im3hs3eslq41.png<|eol|><|sor|>On the plus side, maybe they can convince them to upgrade?<|eor|><|sor|>Unfortunately, it's not always that simple. Last year I helped migrate a 15 year old legacy system from php 5.5 to 7.2. It t... | 23 |
programminghorror | burak_karaman | p1bpis | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|eols|><|endoftext|> | 1,454 |
programminghorror | _Xertz_ | h8d8xt2 | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>if (!(getStat() << 2 & 4 ^ 4) == 1)<|eor|><|sor|>Reported<|eor|><|eols|><|endoftext|> | 118 |
programminghorror | AyrA_ch | h8dsdta | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>if (!(getStat() << 2 & 4 ^ 4) == 1)<|eor|><|sor|>Meanwhile in C#
if(!getStat().ToString().ToCharArray().Any((m,i)=>m!=(m.GetType()==typeof(char)).ToString().ToCharArray().Skip(i).Take(1).First())){
//ok
}<|eor|><|eo... | 113 |
programminghorror | Squiesch | h8crh1h | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>Plottwist. GetStat() returns a string<|eor|><|eols|><|endoftext|> | 63 |
programminghorror | IamImposter | h8dtzis | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>if (!(getStat() << 2 & 4 ^ 4) == 1)<|eor|><|sor|>Meanwhile in C#
if(!getStat().ToString().ToCharArray().Any((m,i)=>m!=(m.GetType()==typeof(char)).ToString().ToCharArray().Skip(i).Take(1).First())){
//ok
}<|eor|><|so... | 62 |
programminghorror | carcigenicate | h8chp2i | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>You forgot to wrap that condition in a call to `bool`, just to be extra sure.<|eor|><|eols|><|endoftext|> | 44 |
programminghorror | TinBryn | h8d6ttx | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>Plottwist. GetStat() returns a string<|eor|><|sor|>So that would mean `getStat() == True` would be `False` and `getStat() != False` would be `True`. The wonder of dynamically typed languages.<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | karlkloppenborg | h8dlec1 | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>if (!(getStat() << 2 & 4 ^ 4) == 1)<|eor|><|sor|>With a comment like that, we should just give you this subreddit<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | Naitsab_33 | h8csd1w | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>You forgot to wrap that condition in a call to `bool`, just to be extra sure.<|eor|><|sor|>And for extra speed use
not not condition
instead of
bool(condition)<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | Naitsab_33 | h8dgkqz | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>You forgot to wrap that condition in a call to `bool`, just to be extra sure.<|eor|><|sor|>And for extra speed use
not not condition
instead of
bool(condition)<|eor|><|sor|>Meme aside, is that actually faster?<|eor|><|sor... | 24 |
programminghorror | schalker1207 | h8ea9p5 | <|sols|><|sot|>the Python<|eot|><|sol|>https://i.redd.it/97fx51q7oeg71.jpg<|eol|><|sor|>if (!(getStat() << 2 & 4 ^ 4) == 1)<|eor|><|sor|>Meanwhile in C#
if(!getStat().ToString().ToCharArray().Any((m,i)=>m!=(m.GetType()==typeof(char)).ToString().ToCharArray().Skip(i).Take(1).First())){
//ok
}<|eor|><|so... | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.