subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | ososalsosal | iaaw6vy | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>I find it amazing!
(cursed but amazing)<|eor|><|sor|>Yeah some o... | 35 |
programminghorror | --var | iablzjd | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>In javascript, everything that isn't a primitive, is an object. W... | 26 |
programminghorror | coffeelibation | iaap1iv | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>bUt OOP iS sOoO oLd AnD uNcOol<|eor|><|sor|>But isn't it MORE obj... | 26 |
programminghorror | besthelloworld | iab3pjw | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>I find it amazing!
(cursed but amazing)<|eor|><|sor|>Yeah some o... | 26 |
programminghorror | Drak1nd | iab4qbv | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>Man, javascript is the silliest place.<|eor|><|sor|>Eh you can probably do this in a number of language. Not that you would want to.
Kotlin:
val beSmart = { print("Am smart") }
val careerStuck = ob... | 22 |
programminghorror | besthelloworld | iabx4vc | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>I find it amazing!
(cursed but amazing)<|eor|><|sor|>Yeah some o... | 21 |
programminghorror | m0rgoth666 | iaavmqs | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>Man, javascript is the silliest place.<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | linuxdropout | iac44x8 | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>That a bunch of people on here didn't realise this is valid JavaScript, but still spent the effort calling out how horrific the advert is, is a sad example of the state of things in the js world.
And before the "... | 17 |
programminghorror | Kjubert | iaan0ea | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>bUt OOP iS sOoO oLd AnD uNcOol<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | person66 | iabybyx | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>I find it amazing!
(cursed but amazing)<|eor|><|sor|>Yeah some of the fuckery in javascript actually makes it kinda attractive to me. The fact you can just paste json in there, take off the quotes and you have a ... | 13 |
programminghorror | SpaceWanderer22 | iac99nw | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>I find it amazing!
(cursed but amazing)<|eor|><|sor|>Yeah some of the fuckery in javascript actually makes it kinda attractive to me. The fact you can just paste json in there, take off the quotes and you have a ... | 11 |
programminghorror | ososalsosal | iab1jrv | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>It's deeply cursed that you can create a function and give it a property that is another function without defining anything as a class<|eor|><|sor|>I find it amazing!
(cursed but amazing)<|eor|><|sor|>Yeah some o... | 10 |
programminghorror | PrincessRTFM | iac3owh | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>That a bunch of people on here didn't realise this is valid JavaScript, but still spent the effort calling out how horrific the advert is, is a sad example of the state of things in the js world.
And before the "... | 9 |
programminghorror | GivoOnline | iab3wng | <|sols|><|sot|>Turns out it was valid code<|eot|><|sol|>https://www.reddit.com/gallery/uzd7rq<|eol|><|sor|>Man, javascript is the silliest place.<|eor|><|sor|>Sometimes when I'm feeling silly ill fire up the console and divide true by sixteen or multiply Tim Allen by an object containing all the vowels in the national ... | 9 |
programminghorror | Darkpingu | r76fco | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|eols|><|endoftext|> | 819 |
programminghorror | keddir | hmxcswm | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|eols|><|endoftext|> | 309 |
programminghorror | megavqrv | hmxfp46 | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|sor|>Also it is not a super bad code as well. As long as '' is considered by other logic as a constant describing a color.<|eor|><|eols|><|endoftext|> | 208 |
programminghorror | elzaidir | hmxl8kw | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>At least the syntax is correct<|eor|><|eols|><|endoftext|> | 83 |
programminghorror | BlobAndHisBoy | hmxmbws | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>snow.edible = snow.color !== '';<|eor|><|eols|><|endoftext|> | 83 |
programminghorror | doubleyuhtee | hmxnisk | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>snow.edible = snow.color !== '';<|eor|><|sor|>I dunno, there are plenty more colors of snow that I wouldn't consider edible.<|eor|><|eols|><|endoftext|> | 74 |
programminghorror | megavqrv | hmxhfub | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|sor|>Also it is not a super bad code as well. As long as '' is considered by other logic as a constant describing a color.<|eor|><|sor|>[deleted]<|eor|><|sor|>You're right about default i... | 63 |
programminghorror | Magmagan | hmy6ih5 | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|sor|>Also it is not a super bad code as well. As long as '' is considered by other logic as a constant describing a color.<|eor|><|sor|>[deleted]<|eor|><|sor|>Just stop dealing with the e... | 59 |
programminghorror | vkapadia | hmz1hpp | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|sor|>Also it is not a super bad code as well. As long as '' is considered by other logic as a constant describing a color.<|eor|><|sor|>[deleted]<|eor|><|sor|>Just stop dealing with the e... | 39 |
programminghorror | CaitaXD | hmypzat | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>a single boolean assignment inside an if statement, enough to make a grown man cry<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | BlobAndHisBoy | hmxoc8z | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>snow.edible = snow.color !== '';<|eor|><|sor|>I dunno, there are plenty more colors of snow that I wouldn't consider edible.<|eor|><|sor|>Now that I think about it, context is really important here. I eat all kinds of colored... | 21 |
programminghorror | xigoi | hmzhm0k | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>a single boolean assignment inside an if statement, enough to make a grown man cry<|eor|><|sor|>So few people see this. That's enough to make a grown man cry<|eor|><|sor|>what's the proper way of handling this situation then?... | 19 |
programminghorror | emilvikstrom | hmz3nwy | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|sor|>Also it is not a super bad code as well. As long as '' is considered by other logic as a constant describing a color.<|eor|><|sor|>[deleted]<|eor|><|sor|>Just stop dealing with the e... | 17 |
programminghorror | PiRSquared2 | hmyuao4 | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>snow.edible = snow.color !== '';<|eor|><|sor|>I dunno, there are plenty more colors of snow that I wouldn't consider edible.<|eor|><|sor|>snow.edible = snow.color === '';<|eor|><|sor|>Cum snow<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | PNB11 | hmzs8rh | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>snow.edible = snow.color !== '';<|eor|><|sor|>I dunno, there are plenty more colors of snow that I wouldn't consider edible.<|eor|><|sor|>snow.edible = snow.color === '';<|eor|><|sor|>Cum snow<|eor|><|sor|>Exactly, edible<|eo... | 16 |
programminghorror | Meaxis | hmyolht | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>snow.edible = snow.color !== '';<|eor|><|sor|>I dunno, there are plenty more colors of snow that I wouldn't consider edible.<|eor|><|sor|>snow.edible = snow.color === '';<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | Pe4rs | hmzm9oh | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>I mean, it's not a bad advice<|eor|><|sor|>Also it is not a super bad code as well. As long as '' is considered by other logic as a constant describing a color.<|eor|><|sor|>[deleted]<|eor|><|sor|>Just stop dealing with the e... | 13 |
programminghorror | narkrud | hmz44zr | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>Sure, its code no self respecting engineer would write - but at least its syntactically correct. Compared to some of the horror shows you see on ads with code like this its actually quite pleasant to look at.<|eor|><|eols|><|... | 11 |
programminghorror | Numzane | hmyrcqw | <|sols|><|sot|>This instagram ad<|eot|><|sol|>https://i.redd.it/cqr3tcl5i4381.jpg<|eol|><|sor|>a single boolean assignment inside an if statement, enough to make a grown man cry<|eor|><|sor|>So few people see this. That's enough to make a grown man cry<|eor|><|eols|><|endoftext|> | 10 |
programminghorror | aquierick | fouc9q | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|eols|><|endoftext|> | 816 |
programminghorror | catenoid75 | flhbgnt | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|eols|><|endoftext|> | 222 |
programminghorror | Eiim | flhd9yk | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|sor|>Although having no way to know whether you're calling encryption or decryption could easily lead to some horror.<|eor|><|eols|><|endoftext|> | 90 |
programminghorror | AshIsRightHere | flh98ev | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>2 decrypts make a encrypt<|eor|><|eols|><|endoftext|> | 58 |
programminghorror | aquierick | flhbuuv | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|soopr|>Well... The title of the subreddit says funny programming stories or awful code. I thought it would fit in the funny stories part.<|eoopr|><|eols|>... | 33 |
programminghorror | perennialExhaustion | flhfjed | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>Wow. The truth behind this title with the EARN IT Act coming forward is just all to real.....<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | skipper1931 | flhobl4 | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>US government rn<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | zeGolem83 | flhel5a | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|sor|>Although having no way to know whether you're calling encryption or decryption could easily lead to some horror.<|eor|><|sor|>*surely<|eor|><|eols|><... | 12 |
programminghorror | MJBrune | fli4i35 | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|sor|>Although having no way to know whether you're calling encryption or decryption could easily lead to some horror.<|eor|><|sor|>uhh just read the sourc... | 12 |
programminghorror | Komi-rade | flhwyd6 | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>XOR encryption be like<|eor|><|eols|><|endoftext|> | 10 |
programminghorror | ze_baco | flirqvl | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|sor|>Although having no way to know whether you're calling encryption or decryption could easily lead to some horror.<|eor|><|sor|>uhh just read the sourc... | 9 |
programminghorror | Elusivehawk | fljnxma | <|sols|><|sot|>I guess only decryption is allowed<|eot|><|sol|>https://i.redd.it/pu1hgxa1tuo41.jpg<|eol|><|sor|>C'mon! This is a typo. Not programminghorror.<|eor|><|soopr|>Well... The title of the subreddit says funny programming stories or awful code. I thought it would fit in the funny stories part.<|eoopr|><|sor|>>... | 7 |
programminghorror | CallinCthulhu | p5tbhr | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|eols|><|endoftext|> | 815 |
programminghorror | CallinCthulhu | h98cee5 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 194 |
programminghorror | FranticBronchitis | h98hzmp | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>if condition do stuff.
else do it anyway<|eor|><|eols|><|endoftext|> | 157 |
programminghorror | Isvara | h996hul | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>This person slept in they day they taught De Morgan's laws.<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | CallinCthulhu | h993uzo | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 78 |
programminghorror | porwit | h993sp5 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 76 |
programminghorror | NKY5223 | h98t09g | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>if condition do stuff.
else do it anyway<|eor|><|sor|> if condition:
do_stuff()
elif not condition:
do_it_anyway()<|eor|><|eols|><|endoftext|> | 73 |
programminghorror | BlobAndHisBoy | h98ud4a | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>if condition do stuff.
else do it anyway<|eor|><|sor|>When you become an adult and pretend you have free will when it comes to normal chores.<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | Goodos | h999qu1 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>My thought process: More devs should really know about De Morgan's laws as it apparently pops up constantly -> Oh wait, gross.<|eor|><|eols|><|endoftext|> | 33 |
programminghorror | koni_rs | h99bjw3 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 30 |
programminghorror | CallinCthulhu | h98gba4 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|> if not all([]):<|eor|><|soopr|>Its worse than that, the second if is the logical negation of the first. It is equivalent to an else:
So the code is essentially
Cloud_type = azure<|eoopr|><|e... | 30 |
programminghorror | CallinCthulhu | h98k4qz | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>Not just is this if statement completely useless, is this Python 3+? If so why is cloud type a string and not an enum? I would imagine the only possible values would be AWS, Azure and GCP. Or i... | 28 |
programminghorror | joemckie | h99qo4h | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 28 |
programminghorror | DrThrowawayToYou | h99fw3l | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>This person slept in they day they taught De Morgan's laws.<|eor|><|sor|>Probably from all that partying with Captain Morgan.<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | CallinCthulhu | h98nz9w | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>Not just is this if statement completely useless, is this Python 3+? If so why is cloud type a string and not an enum? I would imagine the only possible values would be AWS, Azure and GCP. Or i... | 22 |
programminghorror | ODoyleRules925 | h98ibz7 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>Not just is this if statement completely useless, is this Python 3+? If so why is cloud type a string and not an enum? I would imagine the only possible values would be AWS, Azure and GCP. Or i... | 18 |
programminghorror | vulpxn | h98f6c7 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|> if not all([]):<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | IshKebab | h99is9j | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>My thought process: More devs should really know about De Morgan's laws as it apparently pops up constantly -> Oh wait, gross.<|eor|><|sor|>I had to google De Morgan's laws because I'm a bootcampe... | 17 |
programminghorror | ODoyleRules925 | h98ois9 | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|sor|>Not just is this if statement completely useless, is this Python 3+? If so why is cloud type a string and not an enum? I would imagine the only possible values would be AWS, Azure and GCP. Or i... | 15 |
programminghorror | allmhuran | h99h36j | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 14 |
programminghorror | ososalsosal | h99aw9l | <|sols|><|sot|>Caught this useless if in a code review today.<|eot|><|sol|>https://i.redd.it/2es6q3mifth71.png<|eol|><|soopr|>There was no other if statement in the original code. The whole block could have been functionally replaced by cloud_type = "azure" and saved me a headache. I wonder about some of my coworkers.<... | 14 |
programminghorror | G4maliel | htkpwo | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|eols|><|endoftext|> | 810 |
programminghorror | inxaneninja | fyhdj4v | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Wow this is the first time I ever saw the bool function.<|eor|><|eols|><|endoftext|> | 283 |
programminghorror | pqowie313 | fyhhgi2 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>There's a whole slow of those pages on IG, mostly for Python, and JavaScript. They all post the same mix of bad snippets, basic info any beginner tutorial would teach you, and unfunny memes. Wouldn't surprise me if they we... | 176 |
programminghorror | A_Duo | fyhg4v6 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Wow this is the first time I ever saw the bool function.<|eor|><|sor|>yeah hol up I didn't see that this just gets worse every time I look at it<|eor|><|eols|><|endoftext|> | 123 |
programminghorror | JFs743 | fyhseaz | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>The code itself isn't too terrible, but the logic isn't that great.
I don't understand everything in this regex, but "k7jzft5sQQam3Rsi64HjkT5NWmLR34E2wSUEdiMziPypFT6iiF7JLRN7nDVRJDQRgYnZmzhh9g532JJVNo3RXnNFjg8ssf9YyLeo" whic... | 90 |
programminghorror | mh3f | fyhu6x2 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Wow this is the first time I ever saw the bool function.<|eor|><|sor|>`bool` is a class not a function. `re.match()` returns either a re.Match or None. If `__bool__` or` __len__` functions aren't defined in a class to overri... | 84 |
programminghorror | MischterWeshnoer | fyhu81c | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>There's a whole slow of those pages on IG, mostly for Python, and JavaScript. They all post the same mix of bad snippets, basic info any beginner tutorial would teach you, and unfunny memes. Wouldn't surprise me if they we... | 51 |
programminghorror | glasshalf3mpty | fyi7oqi | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>The code itself isn't too terrible, but the logic isn't that great.
I don't understand everything in this regex, but "k7jzft5sQQam3Rsi64HjkT5NWmLR34E2wSUEdiMziPypFT6iiF7JLRN7nDVRJDQRgYnZmzhh9g532JJVNo3RXnNFjg8ssf9YyLeo" whic... | 43 |
programminghorror | OverHashDev | fyhs79u | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Not only that but it's just a bad measurement of a strong password. The "use characters and symbols and uppercase letters" advice has been dead for years. The regulations have changed, and it's advised to do something like g... | 32 |
programminghorror | JeamBim | fyhjc98 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>This should be illegal<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | TheMacMini09 | fyiw4cw | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>There's a whole slow of those pages on IG, mostly for Python, and JavaScript. They all post the same mix of bad snippets, basic info any beginner tutorial would teach you, and unfunny memes. Wouldn't surprise me if they we... | 30 |
programminghorror | thelights0123 | fyhkc79 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Uhh, no. In no particular order, in addition to your mention of `v`:
* horrible spacing, definitely not PEP8, absolutely not anything that had an *attempt* at formatting
* outer parenthesis in `if` st... | 25 |
programminghorror | spektrol | fyhq70l | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Wow this is the first time I ever saw the bool function.<|eor|><|sor|>yeah hol up I didn't see that this just gets worse every time I look at it<|eor|><|sor|>The f being the function symbol is the absolute worst part of this... | 23 |
programminghorror | a74xhx | fyi95mk | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Not only that but it's just a bad measurement of a strong password. The "use characters and symbols and uppercase letters" advice has been dead for years. The regulations have changed, and it's advised to do something like g... | 20 |
programminghorror | MeatyLabia | fyilh4c | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>There's a whole slow of those pages on IG, mostly for Python, and JavaScript. They all post the same mix of bad snippets, basic info any beginner tutorial would teach you, and unfunny memes. Wouldn't surprise me if they we... | 17 |
programminghorror | Double_A_92 | fyi5ll3 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>The worst part is that ther are 4 possible outcomes to this boolean-sounding problem.
The password can be:
* invalid
* strong
* weak
* not even a print (for passwords longer than 30 characters ?)
Also especially for begin... | 15 |
programminghorror | sirreldar | fyizqdp | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>There's a whole slow of those pages on IG, mostly for Python, and JavaScript. They all post the same mix of bad snippets, basic info any beginner tutorial would teach you, and unfunny memes. Wouldn't surprise me if they we... | 14 |
programminghorror | Gooftwit | fyidflh | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>The code itself isn't too terrible, but the logic isn't that great.
I don't understand everything in this regex, but "k7jzft5sQQam3Rsi64HjkT5NWmLR34E2wSUEdiMziPypFT6iiF7JLRN7nDVRJDQRgYnZmzhh9g532JJVNo3RXnNFjg8ssf9YyLeo" whic... | 13 |
programminghorror | EnglishMobster | fyi4p59 | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Not only that but it's just a bad measurement of a strong password. The "use characters and symbols and uppercase letters" advice has been dead for years. The regulations have changed, and it's advised to do something like g... | 13 |
programminghorror | chaos7x | fyibwbi | <|sols|><|sot|>I found this on IG<|eot|><|sol|>https://i.redd.it/lwn9auohknb51.jpg<|eol|><|sor|>Not only that but it's just a bad measurement of a strong password. The "use characters and symbols and uppercase letters" advice has been dead for years. The regulations have changed, and it's advised to do something like g... | 12 |
programminghorror | pokeaim | d5ggi4 | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|eols|><|endoftext|> | 806 |
programminghorror | pokeaim | f0lpbi5 | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Sorry what is going on here??<|eor|><|soopr|>people keep force merging and reusing merged brances. that's why there's so many crosses between lines.<|eoopr|><|eols|><|endoftext|> | 166 |
programminghorror | DeepBlueNoSpace | f0lonrz | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Sorry what is going on here??<|eor|><|eols|><|endoftext|> | 115 |
programminghorror | DeepBlueNoSpace | f0lpfsn | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Sorry what is going on here??<|eor|><|soopr|>people keep force merging and reusing merged brances. that's why there's so many crosses between lines.<|eoopr|><|sor|>Oh... oh right I... | 73 |
programminghorror | flinsypop | f0ltao2 | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Despite the number of crosses, this is an unholy abomination.<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | pokeaim | f0lp7ti | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Uhhhh have you ever heard of git branches?<|eor|><|soopr|>more like "have you ever TRIED to close a branch?"
and they said "for what tho? we'll gonna reuse it later"<|eoopr|><|eol... | 58 |
programminghorror | pancakeQueue | f0lpl4g | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>A git rebase would be therapeutic.<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | pokeaim | f0lp9jf | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>[deleted]<|eor|><|soopr|>after snorting some `git log --oneline --graph`.<|eoopr|><|eols|><|endoftext|> | 40 |
programminghorror | pokeaim | f0lwo7x | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Rebase! Rebase! Rebase!<|eor|><|soopr|>at this point i only think about an euthanasia in the form of
`git reset --hard ROOT`<|eoopr|><|eols|><|endoftext|> | 39 |
programminghorror | stamatt45 | f0m1qf9 | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Sorry what is going on here??<|eor|><|soopr|>people keep force merging and reusing merged brances. that's why there's so many crosses between lines.<|eoopr|><|sor|>[Wait. That's il... | 38 |
programminghorror | MsPenguinette | f0lprau | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Sorry what is going on here??<|eor|><|sor|>It's a graph of a git repo's branches and commits. So it started with a shit tonne of branchs and they all got merged into the current br... | 36 |
programminghorror | joemckie | f0ls6d0 | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>A git rebase would be therapeutic.<|eor|><|sor|>You and I have very different ideas of therapy<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | BenjaminGeiger | f0lzjyt | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Sorry what is going on here??<|eor|><|sor|>It's a graph of a git repo's branches and commits. So it started with a shit tonne of branchs and they all got merged into the current br... | 27 |
programminghorror | kobbled | f0lvbwj | <|sols|><|sot|>Finally found the end of the rainbow at my workplace's git log<|eot|><|sol|>https://i.redd.it/ckszz1x8h5n31.png<|eol|><|sor|>Rebase! Rebase! Rebase!<|eor|><|eols|><|endoftext|> | 23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.