subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | binarypie | iedpgqv | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>Ah, yes. The pinky-swear school of thought. It's considered insecure in some circles.<|eor|><|sor|>Never trust someone missing a pinky ....<|eor|><|eols|><|endoftext|> | 52 |
programminghorror | morph23 | ieeadcu | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>If security through obscurity is bad, then the opposite must surely be good.<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | MJBrune | ieeerzc | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|soopr|>To those who want some context, [`wordexp`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/wordexp.html) takes a string and uses shell to expand it . For example, a word like `${L... | 48 |
programminghorror | Hupf | iefmh63 | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>Keeping the honest people honest<|eor|><|sor|>It's not much, but it's honest work.<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | DeliciousComment3242 | iee8alp | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>There's an easy way to fix security issues. Just ignore them<|eor|><|sor|>as long as it nots interfering with business is it really a problem?<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | mr_claw | iedph6s | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>Ah, yes. The pinky-swear school of thought. It's considered insecure in some circles.<|eor|><|sor|>He should have done a God-Promise, those are way more advanced.<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | MJBrune | ieeex5p | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>If security through obscurity is bad, then the opposite must surely be good.<|eor|><|sor|>You'll filter out all the white hat and bug bounty hackers for sure. All you have to then worry about i... | 20 |
programminghorror | poemsavvy | ieefmhp | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>There's an easy way to fix security issues. Just ignore them<|eor|><|sor|>as long as it nots interfering with business is it really a problem?<|eor|><|sor|>I mean, I was kidding, but in reality... | 18 |
programminghorror | StochasticTinkr | iehyk5f | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|soopr|>To those who want some context, [`wordexp`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/wordexp.html) takes a string and uses shell to expand it . For example, a word like `${L... | 16 |
programminghorror | i_am_adult_now | ieffgcb | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>Very off topic, but what font is this? I really like it and I kind of want to use it in my own editor<|eor|><|sor|>Looks like the standard windows 8x12 raster font. I'm not sure you'll be able ... | 14 |
programminghorror | CreaZyp154 | iefngyr | <|sols|><|sot|>That's er.. um.. one way to fix security problems<|eot|><|sol|>https://i.redd.it/h88dn771ut891.png<|eol|><|sor|>Dear murderer, please don't kill me<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | Pandapip1 | o53rxo | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|eols|><|endoftext|> | 2,238 |
programminghorror | Geometry314 | h2koab1 | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|eols|><|endoftext|> | 584 |
programminghorror | TollyThaWally | h2kpqa9 | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|sor|>It looks like somebody has chained a lot of if statements and they've been turned into ternary operators by automatic refac... | 294 |
programminghorror | redct | h2l65jb | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|sor|>It looks like somebody has chained a lot of if statements and they've been turned into ternary operators by automatic refac... | 169 |
programminghorror | Nikitka218 | h2kzloc | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|sor|>It looks like somebody has chained a lot of if statements and they've been turned into ternary operators by automatic refac... | 155 |
programminghorror | RichCorinthian | h2kny3y | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I sure hope one of those dungeon\_types is for developers who pride themselves on illegible, unmaintainable one-liners.<|eor|><|eols|><|endoftext|> | 132 |
programminghorror | Pandapip1 | h2kr6c7 | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>this is a school project isn't it ?<|eor|><|soopr|>nope.<|eoopr|><|sor|>Hypixel Skyblock?<|eor|><|soopr|>Congrats! You won 'guess the game!'<|eoopr|><|eols|><|endoftext|> | 113 |
programminghorror | BattleDashBR | h2kpiv5 | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>this is a school project isn't it ?<|eor|><|soopr|>nope.<|eoopr|><|sor|>Hypixel Skyblock?<|eor|><|eols|><|endoftext|> | 96 |
programminghorror | DankerOfMemes | h2ljups | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|sor|>It looks like somebody has chained a lot of if statements and they've been turned into ternary operators by automatic refac... | 48 |
programminghorror | Battalist | h2luqk4 | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I sure hope one of those dungeon\_types is for developers who pride themselves on illegible, unmaintainable one-liners.<|eor|><|sor|>To every person, who uses one-liners to save ... | 46 |
programminghorror | xigoi | h2lb9mf | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|sor|>It looks like somebody has chained a lot of if statements and they've been turned into ternary operators by automatic refac... | 46 |
programminghorror | WishOnSpaceHardware | h2kwj8f | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I sure hope one of those dungeon\_types is for developers who pride themselves on illegible, unmaintainable one-liners.<|eor|><|sor|>The tenth circle of Hell, the one that Dante ... | 39 |
programminghorror | jakesboy2 | h2kpvcw | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>this could literally be taken from the comments saying this is the pythonic way in /r/learnpython any time someone posts their code lol<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | Pandapip1 | h2ko4bj | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>this is a school project isn't it ?<|eor|><|soopr|>nope.<|eoopr|><|eols|><|endoftext|> | 38 |
programminghorror | Pandapip1 | h2kri25 | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>Wait, those variable names kind of look like something from hypixel skyblock. But if it is, then why is it in JS? Except maybe it's something like [sky.lea.moe](https://sky.lea.m... | 36 |
programminghorror | Pandapip1 | h2mwpjw | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>this is a school project isn't it ?<|eor|><|soopr|>nope.<|eoopr|><|sor|>Hypixel Skyblock?<|eor|><|soopr|>Congrats! You won 'guess the game!'<|eoopr|><|sor|>Hypixel Skyblock uses ... | 35 |
programminghorror | roffinator | h2lc1zm | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>I don't think this was coded by a person.<|eor|><|sor|>It looks like somebody has chained a lot of if statements and they've been turned into ternary operators by automatic refac... | 30 |
programminghorror | DragonTreeBass | h2kxg1z | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>this could literally be taken from the comments saying this is the pythonic way in /r/learnpython any time someone posts their code lol<|eor|><|sor|>Im taking a python course for... | 28 |
programminghorror | MCWizardYT | h2l51lk | <|sols|><|sot|>Why make good code when you can make a 1551-character one-liner?<|eot|><|sol|>https://i.redd.it/lvenp7w3bo671.png<|eol|><|sor|>Yandere dev time.<|eor|><|sor|>No he would chain if statements instead of ternary operators<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | Strebicux | n220b9 | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|eols|><|endoftext|> | 2,233 |
programminghorror | SomeWeirdUserTho | gwhexpa | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 332 |
programminghorror | tateisukannanirase | gwhsr14 | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 131 |
programminghorror | VinceGhii | gwgwqpj | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Haahahaha.. remembers me of the Silicon Valley Chatbot... and when both bots started to talk to each other xD<|eor|><|eols|><|endoftext|> | 115 |
programminghorror | Qesa | gwi4swc | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 87 |
programminghorror | VinceGhii | gwiac4s | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 65 |
programminghorror | SomeWeirdUserTho | gwhf3bl | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 59 |
programminghorror | zlataovce2 | gwgrtx2 | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>do i smell a recursion<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | sweety-bobcat | gwhsd65 | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>if(message.author.bot) return;<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | Strebicux | gwhezrj | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 28 |
programminghorror | iLoveStarsInTheSky | gwic5jt | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>BTW the guy who posted this said they just send a bunch of "I'm Blank" messages to trigger the bot and then deleted it<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | Lornedon | gwiph6w | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>BTW the guy who posted this said they just send a bunch of "I'm Blank" messages to trigger the bot and then deleted it<|eor|><|sor|>It makes no sense otherwise. If it triggered itself, the second message (and all subsequent ones) wo... | 23 |
programminghorror | CodeLobe | gwii7pa | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Haahahaha.. remembers me of the Silicon Valley Chatbot... and when both bots started to talk to each other xD<|eor|><|sor|>[https://www.youtube.com/watch?v=WnzlbyTZsQY](https://www.youtube.com/watch?v=WnzlbyTZsQY)<|eor|><|eols|><|en... | 20 |
programminghorror | dylantrain2014 | gwhnp10 | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>do i smell a recursion<|eor|><|sor|>Wouldn't this be more like a do while loop?<|eor|><|sor|>Not really. Its recursion as its constantly firing itself.<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | valzargaming | gwi5vwf | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 17 |
programminghorror | kalinuxer553 | gwj7dyq | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>Oh my God, I know that. Coded a discord bot with command system, forgot to check if the sender of the message is a bot, and boom. After the first command everything went down hill, because the bot executed a command, which sent some... | 17 |
programminghorror | giant_grapefruit | gwj0zsv | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Oh my god the horror! Haha. Question: how hard was it to build a discord bot?<|eor|><|sor|>Actually it's not that hard, discord.py or discord.js are pretty easy to use with a bunch of examples. Making a bot aw... | 14 |
programminghorror | FlorisFireball | gwis3ss | <|sols|><|sot|>Bot stroke<|eot|><|sol|>https://i.redd.it/s6gvjoj19dw61.png<|eol|><|sor|>BTW the guy who posted this said they just send a bunch of "I'm Blank" messages to trigger the bot and then deleted it<|eor|><|sor|>It makes no sense otherwise. If it triggered itself, the second message (and all subsequent ones) wo... | 14 |
programminghorror | fredspipa | f5acmv | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|eols|><|endoftext|> | 2,225 |
programminghorror | _PM_ME_PANGOLINS_ | fhxiow1 | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|eols|><|endoftext|> | 415 |
programminghorror | Sir_Snek | fhxnat2 | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|sor|>With respect
Die<|e... | 255 |
programminghorror | _PM_ME_PANGOLINS_ | fhxojip | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|sor|>Why<|eor|><|sor|>To ... | 132 |
programminghorror | ely4zzi | fhxr95v | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>The code aside, have you heard of our lord and saviour Dark Mode?<|eor|><|eols|><|endoftext|> | 130 |
programminghorror | Spirit_Theory | fhxuhgi | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|sor|>Why<|eor|><|sor|>To ... | 60 |
programminghorror | TheJP_ | fhxoeee | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|sor|>Why<|eor|><|eols|><|... | 47 |
programminghorror | z500 | fhxuhcp | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>I think it's about time for a coffee break.<|eor|><|eols|><|endoftext|> | 46 |
programminghorror | TheDiplocrap | fhxz1oj | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>In all fairness, the use of two variables implies a difference between them, so this code is valid if there's a case where you want not_finished to retain its current value if unfinished is True, bu... | 38 |
programminghorror | Fedzbar | fhxke7p | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Python<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | upvotemoinker | fhy8mkb | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>The code aside, have you heard of our lord and saviour Dark Mode?<|eor|><|sor|>Used to use dark mode or rather black background color in the terminal, until I sat outside a cafe in Paris in the beam... | 34 |
programminghorror | 0Nyxee | fhxvas2 | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|sor|>Why<|eor|><|sor|>To ... | 31 |
programminghorror | mustang__1 | fhzfv4w | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|> if not not_finished or not unfinished:
finished = True
else:
not_unfinished = finished
return finished if not_unfinished else unfinished<|eor|><|sor|>With respect
Die<|e... | 29 |
programminghorror | Needleroozer | fhxuo6a | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>In all fairness, the use of two variables implies a difference between them, so this code is valid if there's a case where you want not_finished to retain its current value if unfinished is True, bu... | 21 |
programminghorror | fredspipa | fhybvf5 | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>In all fairness, the use of two variables implies a difference between them, so this code is valid if there's a case where you want not_finished to retain its current value if unfinished is True, bu... | 19 |
programminghorror | SNova96 | fhyrspe | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>The code aside, have you heard of our lord and saviour Dark Mode?<|eor|><|sor|>Used to use dark mode or rather black background color in the terminal, until I sat outside a cafe in Paris in the beam... | 18 |
programminghorror | qevlarr | fhy8jj2 | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>The code aside, have you heard of our lord and saviour Dark Mode?<|eor|><|sor|>I'll bite.
Keep light mode but set your monitor to be low contrast and less bright. Then you wouldn't need sunglasses ... | 17 |
programminghorror | Diapolo10 | fi0yrlu | <|sols|><|sot|>Someone rightfully called me out on this one<|eot|><|sol|>https://i.redd.it/ugkrzzc66ih41.png<|eol|><|sor|>We're going to need your badge and your gun.<|eor|><|sor|>Translation: *Gies yer laptop, mate.*<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | BitterMushroom | k6as80 | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|eols|><|endoftext|> | 2,225 |
programminghorror | Lightfire228 | gejw60o | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>*magic numbers*<|eor|><|eols|><|endoftext|> | 537 |
programminghorror | AvenDonn | gekfcma | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>The numbers Mason! What do they mean?!<|eor|><|eols|><|endoftext|> | 430 |
programminghorror | -Azrael-Blick- | gek9vri | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>Please, an explanation on wtf this is supposed to do and where this function is used<|eor|><|sor|>Clearly 159 is true and 94 is false!<|eor|><|eols|><|endoftext|> | 282 |
programminghorror | anon38723918569 | gel5qzo | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>*magic numbers*<|eor|><|sor|>> sleep() returns 0 on success, FALSE on error, or when interrupted by a signal returns number of remaining seconds except on Windows where it returns 192
> /r/LolPHP
> (<https:/... | 267 |
programminghorror | chepas_moi | gekr7by | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>Please, an explanation on wtf this is supposed to do and where this function is used<|eor|><|sor|>Clearly 159 is true and 94 is false!<|eor|><|sor|>154 *is True* and 94 is absolutely anything else.
Edit: 159.<|e... | 149 |
programminghorror | ProvidesTranscripts | gekuhrl | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>[A photo taken of a section of code displayed on a screen.]
> if value is True:
> return 159
> else:
> return 94<|eor|><|eols|><|endoftext|> | 130 |
programminghorror | Peebls | gekmmi8 | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>If you're referring to the \`is True\` part, there might be instances they didn't want it to return 159 for any truthy value, given this is Python. So True, and only True will return 159.
The magic numbers part ... | 104 |
programminghorror | stormfield | geld3ip | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>*magic numbers*<|eor|><|sor|>> sleep() returns 0 on success, FALSE on error, or when interrupted by a signal returns number of remaining seconds except on Windows where it returns 192
> /r/LolPHP
> (<https:/... | 98 |
programminghorror | AngriestSCV | gelh3jh | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>*magic numbers*<|eor|><|sor|>> sleep() returns 0 on success, FALSE on error, or when interrupted by a signal returns number of remaining seconds except on Windows where it returns 192
> /r/LolPHP
> (<https:/... | 83 |
programminghorror | Graf_lcky | gekrb9a | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>Please, an explanation on wtf this is supposed to do and where this function is used<|eor|><|sor|>Bear with me: the difference between 94 and 154 is 60, 94 minus 60 is 34, now, 94F is exactly 34C while 154F is ex... | 76 |
programminghorror | chepas_moi | gekrcqn | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>Missing context... maybe not bad code, no idea from this tiny snippet.<|eor|><|eols|><|endoftext|> | 63 |
programminghorror | ProvidesTranscripts | gel0eyr | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>[A photo taken of a section of code displayed on a screen.]
> if value is True:
> return 159
> else:
> return 94<|eor|><|sor|>Good bot<|eor|><|sor|>I'm actually not a bot!<|eor|><|eols|><... | 60 |
programminghorror | RIcaz | geksbok | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|><shows tiniest out-of-context if/else possible>
bAd CoDe!11<|eor|><|sor|>[deleted]<|eor|><|sor|>Maybe it is mysterious *because* it is taken out of context.<|eor|><|eols|><|endoftext|> | 56 |
programminghorror | BadDadBot | gektznu | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>Please, an explanation on wtf this is supposed to do and where this function is used<|eor|><|sor|>Clearly 159 is true and 94 is false!<|eor|><|sor|>154 *is True* and 94 is absolutely anything else.
Edit: 159.<|e... | 56 |
programminghorror | D3LB0Y | gekxc2b | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>[A photo taken of a section of code displayed on a screen.]
> if value is True:
> return 159
> else:
> return 94<|eor|><|sor|>Good bot<|eor|><|sor|>Not a bot<|eor|><|sor|>Look the AI thin... | 50 |
programminghorror | Steppy20 | gel48uk | <|sols|><|sot|>Found this in production today<|eot|><|sol|>https://i.redd.it/eiglytgdn2361.jpg<|eol|><|sor|>[A photo taken of a section of code displayed on a screen.]
> if value is True:
> return 159
> else:
> return 94<|eor|><|sor|>Good bot<|eor|><|sor|>I'm actually not a bot!<|eor|><|sor|>Do... | 45 |
programminghorror | theevildjinn | n4kxga | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|eols|><|endoftext|> | 2,222 |
programminghorror | JuliaChanMSL | gww5is9 | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Did they mean to put 1/10? I mean it wouldn't be the 10th visitor but it'd on average be every 10th person<|eor|><|eols|><|endoftext|> | 459 |
programminghorror | LaReinaAzul | gww86s9 | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Anytime I feel like a bad programmer I visit this sub and instantly feel better<|eor|><|eols|><|endoftext|> | 360 |
programminghorror | UnacceptableUse | gww53us | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>There's so much to unpack about this I don't know where to start<|eor|><|eols|><|endoftext|> | 278 |
programminghorror | xMultiGamerX | gww99dz | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Anytime I feel like a bad programmer I visit this sub and instantly feel better<|eor|><|sor|>Until you see something that youve done before _<|eor|><|eols|><|endoftex... | 198 |
programminghorror | Mithrandir2k16 | gwwb53x | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>There's so much to unpack about this I don't know where to start<|eor|><|sor|>well, if you want to communicate something to every 10th visitor, doing it with `random(... | 163 |
programminghorror | pkmxtw | gwwefve | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Plot twist: they actually only serve this version of code to every 10th visitor and there happened to be exactly 9 other people visiting between every time you refres... | 131 |
programminghorror | Muroid | gwwj0fm | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Maybe they set it to this "temporarily" to test the output, and then forgot to set it back to the intended value?<|eor|><|sor|>My hypothesized ... | 116 |
programminghorror | ampang_boy | gww9o9y | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Did they mean to put 1/10? I mean it wouldn't be the 10th visitor but it'd on average be every 10th person<|eor|><|sor|>Seems like good use to spyon function during t... | 100 |
programminghorror | dcheesi | gww9f3b | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Maybe they set it to this "temporarily" to test the output, and then forgot to set it back to the intended value?<|eor|><|eols|><|endoftext|> | 95 |
programminghorror | Ommageden | gwwdw8e | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>There's so much to unpack about this I don't know where to start<|eor|><|sor|>well, if you want to communicate something to every 10th visitor, doing it with `random(... | 94 |
programminghorror | Ullallulloo | gwx2z5x | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Did they mean to put 1/10? I mean it wouldn't be the 10th visitor but it'd on average be every 10th person<|eor|><|sor|>Seems like good use to spyon function during t... | 84 |
programminghorror | PutridOpportunity9 | gwwj4yw | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Did they mean to put 1/10? I mean it wouldn't be the 10th visitor but it'd on average be every 10th person<|eor|><|sor|>Seems like good use to spyon function during t... | 55 |
programminghorror | themonkery | gww9n4f | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Anytime I feel like a bad programmer I visit this sub and instantly feel better<|eor|><|sor|>Until you see something that youve done before _<|eor|><|sor|>(In Auntie ... | 54 |
programminghorror | Johnobo | gww5bk7 | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>[yes.](https://i.imgur.com/M4NIIlN.jpg)<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | CourageousChronicler | gwwhdah | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Anytime I feel like a bad programmer I visit this sub and instantly feel better<|eor|><|sor|>Until you see something that youve done before _<|eor|><|sor|>"Before" is... | 46 |
programminghorror | Emergency_Shame_950 | gwxs89r | <|sols|><|sot|>Wondered why the B&Q website was logging `true` to the console on every page<|eot|><|sol|>https://i.redd.it/xovhgv0xx2x61.png<|eol|><|sor|>Plot twist: they actually only serve this version of code to every 10th visitor and there happened to be exactly 9 other people visiting between every time you refres... | 32 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.