subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | Flopamp | hqqy4ry | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Someone I work with does this any time they split a single line in to multiple lines and yet they indent preprocessor logic<|eor|><|eols|><|endoftext|> | 80 |
programminghorror | PyMaster22 | hqrafmt | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Python should allow this. Lemme go check.<|eor|><|sor|>Someone lied to me.<|eor|><|eols|><|endoftext|> | 79 |
programminghorror | PyMaster22 | hqra6g0 | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Python should allow this. Lemme go check.<|eor|><|eols|><|endoftext|> | 72 |
programminghorror | HecknChonker | hqraqim | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>-tab > -4 spaces<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | SilverLightning926 | hqrmk9h | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Please mark as NSFW...<|eor|><|eols|><|endoftext|> | 50 |
programminghorror | PranshuKhandal | hqs2xms | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>-tab > -4 spaces<|eor|><|sor|>multiply both sides by -1,
tab < 4 spaces<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | ings0c | hqralul | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|> No!
No!
No!<|eor|><|eols|><|endoftext|> | 46 |
programminghorror | Gerg741 | hqs5li0 | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Python should allow this. Lemme go check.<|eor|><|sor|>Someone lied to me.<|eor|><|sor|>r/TwoSentenceHorror<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | BimphyRedixler | hqrmqrz | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>someone's going to try to argue this is actually really good because it puts a limit on how much nesting is possible in the code<|eor|><|eols|><|endoftext|> | 34 |
programminghorror | Gerg741 | hqs5wss | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Python should allow this. Lemme go check.<|eor|><|sor|>Someone lied to me.<|eor|><|sor|>r/TwoSentenceHorror<|eor|><|sor|>Really?<|eor|><|sor|>idk sounded funnier in my head<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | SasukeUchiha231 | hqsbp46 | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>-tab > -4 spaces<|eor|><|sor|>multiply both sides by -1,
tab < 4 spaces<|eor|><|sor|>Who are you, so wise, in the ways of science?<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | ThisIsNotKimJongUn | hqrcoou | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>This is what happens when you teach crackheads how to code<|eor|><|eols|><|endoftext|> | 15 |
programminghorror | ernee_gaming | hqr2a54 | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Noooooo!!!!!
Noooooooooooooo!!!!!
Nooooooooooooo!!!!
(Remember the cat that didn't want to bath? Noooooo!!!!!)<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | pollopox | hqr5hkx | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Burn<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | arzen221 | hqr8uh7 | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>Just no<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | mpevnev | hqshxza | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>You've sniped me into making a perl one-liner (for some definition of one-liner) to do this. Here it is in all of its dubious glory: `perl -e 'my $max_indent = 0; my @text; while (<>) { /^(\t*)(.*)$/; my $indent = length($1); $max_indent = ... | 5 |
programminghorror | ksck135 | hqu29wh | <|sols|><|sot|>No<|eot|><|sol|>https://i.redd.it/p49c5y717t881.png<|eol|><|sor|>This is what happens when you teach crackheads how to code<|eor|><|sor|>Is there s difference between teaching crackheads how to code and your dev team doing crack because it's understaffed?<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | lotharz0r | i34scy | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|eols|><|endoftext|> | 1,171 |
programminghorror | magicroot | g09yfp3 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>It baffles me that this is stupid and clever at the same time.<|eor|><|eols|><|endoftext|> | 361 |
programminghorror | TheAlphaKarp | g0az7ae | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>It baffles me that this is stupid and clever at the same time.<|eor|><|sor|>Npm has a isEven library which depends on the isOdd library.....<|eor|><|eols|><|endoftext|> | 139 |
programminghorror | lotharz0r | g098j38 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not bad, not bad. You could do better you know?<|eor|><|soopr|>`isEvenFaster(number)`?<|eoopr|><|eols|><|endoftext|> | 88 |
programminghorror | SondreB | g0980j4 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not bad, not bad. You could do better you know?<|eor|><|eols|><|endoftext|> | 78 |
programminghorror | nashidau | g09ji51 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not bad, not bad. You could do better you know?<|eor|><|soopr|>`isEvenFaster(number)`?<|eoopr|><|sor|> bool isEven(int x) {
if (x == !!x) {
if (!x)
retur... | 75 |
programminghorror | lotharz0r | g0b74zs | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>It baffles me that this is stupid and clever at the same time.<|eor|><|sor|>Npm has a isEven library which depends on the isOdd library.....<|eor|><|soopr|>And isOdd depends on is... | 65 |
programminghorror | SuperbIndividual5 | g098q0k | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not as bad as mine which I made like 3 years ago where I used a conversion from double to integer to get the modulo operator by myself<|eor|><|eols|><|endoftext|> | 44 |
programminghorror | Pandoras_Cockss | g0a7yab | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>I need to put myself out there. If these people can have jobs, I'll be a software superhero.<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | cstmth | g0b1hep | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>It baffles me that this is stupid and clever at the same time.<|eor|><|sor|>Npm has a isEven library which depends on the isOdd library.....<|eor|><|sor|>if (!isOdd) return isEven... | 42 |
programminghorror | Kromieus | g0ak8sj | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not bad, not bad. You could do better you know?<|eor|><|soopr|>`isEvenFaster(number)`?<|eoopr|><|sor|> bool isEven(int x) {
if (x == !!x) {
if (!x)
retur... | 41 |
programminghorror | tealcosmo | g09mdg2 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Dear god, do people not teach modulo arithmetic these days?<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | dirtyhappythoughts | g0bb3mt | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>It baffles me that this is stupid and clever at the same time.<|eor|><|sor|>Npm has a isEven library which depends on the isOdd library.....<|eor|><|soopr|>And isOdd depends on is... | 23 |
programminghorror | Zymoox | g0b21ef | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>It baffles me that this is stupid and clever at the same time.<|eor|><|sor|>Npm has a isEven library which depends on the isOdd library.....<|eor|><|sor|>isOdd(n) return !isEven(n... | 22 |
programminghorror | thelights0123 | g0acoz9 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Dear god, do people not teach modulo arithmetic these days?<|eor|><|sor|>Or, even faster, just compare the least significant bit with 0.<|eor|><|sor|>In a compiled language, this ... | 22 |
programminghorror | Plasmatica | g0arfaq | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|> Readable
Concise
Scalable<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | PlusUltraBeyond | g0b27l6 | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not as bad as mine which I made like 3 years ago where I used a conversion from double to integer to get the modulo operator by myself<|eor|><|sor|>[deleted]<|eor|><|sor|>Nah, he ... | 16 |
programminghorror | jaaval | g0b032f | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not bad, not bad. You could do better you know?<|eor|><|soopr|>`isEvenFaster(number)`?<|eoopr|><|sor|> bool isEven(int x) {
if (x == !!x) {
if (!x)
retur... | 16 |
programminghorror | lotharz0r | g098tjy | <|sols|><|sot|>Very efficient isEven algorithm, even supports 0 and negatives!<|eot|><|sol|>https://i.redd.it/eqaevdtjjue51.png<|eol|><|sor|>Not as bad as mine which I made like 3 years ago where I used a conversion from double to integer to get the modulo operator by myself<|eor|><|soopr|>Pic or it didn't happen<|eoop... | 13 |
programminghorror | MajorSuchodolski | q0rwxw | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|eols|><|endoftext|> | 1,166 |
programminghorror | Jiggins_ | hfafrgr | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>It might take the image transcribers a while to get through this one<|eor|><|eols|><|endoftext|> | 337 |
programminghorror | icsharper | hfa3gwd | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>When to expect English version?<|eor|><|eols|><|endoftext|> | 194 |
programminghorror | a_bucket_full_of_goo | hfa67i5 | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Is this hard coded AI behavior? I like it<|eor|><|eols|><|endoftext|> | 192 |
programminghorror | lightwhite | hfab7fc | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Is this hard coded AI behavior? I like it<|eor|><|sor|>It is rather, Weird AI Modelowycz.<|eor|><|eols|><|endoftext|> | 125 |
programminghorror | Matrix8910 | hfao6hh | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Did you just leak CDPRs next game code?<|eor|><|eols|><|endoftext|> | 115 |
programminghorror | roararoarus | hfaf1sq | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>This is exactly what I would expect from a Polish strategy game<|eor|><|eols|><|endoftext|> | 45 |
programminghorror | PrincessWinterX | hfa91so | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>can i play it<|eor|><|eols|><|endoftext|> | 43 |
programminghorror | Humpfinger | hfcazsm | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>It might take the image transcribers a while to get through this one<|eor|><|sor|>Fucking lmao<|eor|><|eols|><|endoftext|> | 43 |
programminghorror | invisibledesign | hfb0dnc | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>I was like oh ok this doesnt look so bad then I tapped on the picture and it zoomed to fit the whole image on my phone screen <|eor|><|eols|><|endoftext|> | 42 |
programminghorror | EnZooooTM | hfat2p8 | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Im just waiting for transcribers lmao<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | deadbeef1a4 | hfaii6g | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Kurwa<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | tolik518 | hfc1nl5 | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Did you just leak CDPRs next game code?<|eor|><|sor|>For those who don't know
CDPR = CD Projekt, a polish software house.
They created games like The Witcher and Cyberpunk 2077<|eor|... | 35 |
programminghorror | nikoked | hfbvvzx | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Did you just leak CDPRs next game code?<|eor|><|sor|>For those who don't know
CDPR = CD Projekt, a polish software house.
They created games like The Witcher and Cyberpunk 2077<|eor|... | 33 |
programminghorror | Squiesch | hfbw3zb | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Did you just leak CDPRs next game code?<|eor|><|sor|>For those who don't know
CDPR = CD Projekt, a polish software house.
They created games like The Witcher and Cyberpunk 2077<|eor|... | 31 |
programminghorror | erinyesita | hfalbnj | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Ncurses is your friend!<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | kilogears | hfb91r8 | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Ncurses is your friend!<|eor|><|sor|>Or even.... function calls!<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | str3wer | hfc68f3 | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>this is what i was able to get with OCR
```
#include <iostream> #include <windows.h> #include <cstdlib> #include <time.h> #include <stdio.h> using namespace std; int monety=50; int wy... | 18 |
programminghorror | Eiim | hfc96l5 | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Im just waiting for transcribers lmao<|eor|><|sor|>I reckon this will be an easy enough job for OCR. Can't imagine anyone doing this by hand....<|eor|><|sor|>Actually, OCR usually has... | 14 |
programminghorror | WhisperinCheetah | hfc54hu | <|sols|><|sot|>My attempt (from 2014) to create a strategy game in console<|eot|><|sol|>https://i.redd.it/6kxt0oct5br71.png<|eol|><|sor|>Did you just leak CDPRs next game code?<|eor|><|sor|>For those who don't know
CDPR = CD Projekt, a polish software house.
They created games like The Witcher and Cyberpunk 2077<|eor|... | 14 |
programminghorror | 28f272fe556a1363cc31 | bwfi2m | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|eols|><|endoftext|> | 1,175 |
programminghorror | mikedpayne | epx70bd | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Senior dev or seor dev?<|eor|><|eols|><|endoftext|> | 435 |
programminghorror | zapatoada | epx8v5p | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>I especially like the sorting.<|eor|><|eols|><|endoftext|> | 311 |
programminghorror | Ox7C5 | epx76uj | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Senior dev or seor dev?<|eor|><|sor|>Definitely seor Dev<|eor|><|eols|><|endoftext|> | 160 |
programminghorror | 28f272fe556a1363cc31 | epx7e0w | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|soopr|>In a language that's defining characteristic is easy string manipulation.<|eoopr|><|eols|><|endoftext|> | 92 |
programminghorror | KrastyBasty | epx9801 | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Senior dev or seor dev?<|eor|><|soopr|>Opps...<|eoopr|><|sor|>oops or opps?<|eor|><|eols|><|endoftext|> | 88 |
programminghorror | 28f272fe556a1363cc31 | epxbad3 | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>I especially like the sorting.<|eor|><|sor|>It's clearly generated code.<|eor|><|soopr|>Kind of. He declared those variables, but this screenshot is taken from a script that dumps all the variables in a particula... | 85 |
programminghorror | curtmack | epxaybe | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|soopr|>In a language that's defining characteristic is easy string manipulation.<|eoopr|><|sor|>i wish english had an easy to use "whose" for things that aren't persons<|eor|><|sor|>It is perfectly acceptable to use t... | 84 |
programminghorror | -Dueck- | epxcrds | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Mr Dev, for those who don't speak spanish<|eor|><|eols|><|endoftext|> | 80 |
programminghorror | metalgtr84 | epxbcdl | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Actual senior dev in Perl:
$blank[$_] = ' ' x $_ for 1 .. 10;
die unless $blank[1] eq ' ';
die unless $blank[10] eq ' ';
Or just use [sprintf](https://perldoc.perl.org/functions/sprintf.ht... | 60 |
programminghorror | 28f272fe556a1363cc31 | epx7gjb | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Senior dev or seor dev?<|eor|><|soopr|>Opps...<|eoopr|><|eols|><|endoftext|> | 43 |
programminghorror | JaZoray | epx8hu0 | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|soopr|>In a language that's defining characteristic is easy string manipulation.<|eoopr|><|sor|>i wish english had an easy to use "whose" for things that aren't persons<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | JaZoray | epxb08b | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|soopr|>In a language that's defining characteristic is easy string manipulation.<|eoopr|><|sor|>i wish english had an easy to use "whose" for things that aren't persons<|eor|><|sor|>It is perfectly acceptable to use t... | 36 |
programminghorror | CrimsonMutt | epxcqta | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Actual senior dev in Perl:
$blank[$_] = ' ' x $_ for 1 .. 10;
die unless $blank[1] eq ' ';
die unless $blank[10] eq ' ';
Or just use [sprintf](https://perldoc.perl.org/functions/sprintf.ht... | 33 |
programminghorror | GeneReddit123 | epxf86k | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>I especially like the sorting.<|eor|><|sor|>It's clearly generated code.<|eor|><|soopr|>Kind of. He declared those variables, but this screenshot is taken from a script that dumps all the variables in a particula... | 27 |
programminghorror | ThaiJohnnyDepp | epxeng0 | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|sor|>Actual senior dev in Perl:
$blank[$_] = ' ' x $_ for 1 .. 10;
die unless $blank[1] eq ' ';
die unless $blank[10] eq ' ';
Or just use [sprintf](https://perldoc.perl.org/functions/sprintf.ht... | 26 |
programminghorror | superking2 | epx98ey | <|sols|><|sot|>Perl code written by senor dev<|eot|><|sol|>https://i.redd.it/q9p4ge14a7231.png<|eol|><|soopr|>In a language that's defining characteristic is easy string manipulation.<|eoopr|><|sor|>i wish english had an easy to use "whose" for things that aren't persons<|eor|><|sor|>Whatse<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | jayson4twenty | ui9v61 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|eols|><|endoftext|> | 1,164 |
programminghorror | svick | i7bkasc | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Pattern matching like `is null` has only been in C# for five years, so it can't be *that* old.
Now get off my lawn!<|eor|><|eols|><|endoftext|> | 352 |
programminghorror | Gamecrazy721 | i7c3y83 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>*null is NULL*<|eor|><|eols|><|endoftext|> | 183 |
programminghorror | Vlyn | i7cjee7 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>*null is NULL*<|eor|><|sor|>Nah, it would be
IS NULL
.ToString() for null evaluates to an empty string in C#<|eor|><|eols|><|endoftext|> | 121 |
programminghorror | jayson4twenty | i7bspau | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Pattern matching like `is null` has only been in C# for five years, so it can't be *that* old.
Now get off my lawn!<|eor|><|soopr|>You make a fair point, it feels much older that's for sure... | 90 |
programminghorror | Jazzlike-Swim6838 | i7ci54f | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>In C# theres this great functionality of calling nameof() on things for it to print out the variable names, its very handy for logging.
https://docs.microsoft.com/en-us/dotnet/csharp/langu... | 87 |
programminghorror | AnonymousV6 | i7brwfb | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Pattern matching like `is null` has only been in C# for five years, so it can't be *that* old.
Now get off my lawn!<|eor|><|sor|>Also string interpolation for about the same time<|eor|><|eo... | 81 |
programminghorror | how_do_i_read | i7bu7nv | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>That took me longer than it should have.<|eor|><|eols|><|endoftext|> | 66 |
programminghorror | cojored | i7byekv | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Pattern matching like `is null` has only been in C# for five years, so it can't be *that* old.
Now get off my lawn!<|eor|><|soopr|>You make a fair point, it feels much older that's for sure... | 64 |
programminghorror | jordanbtucker | i7d7415 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>In C# theres this great functionality of calling nameof() on things for it to print out the variable names, its very handy for logging.
https://docs.microsoft.com/en-us/dotnet/csharp/langu... | 55 |
programminghorror | jayson4twenty | i7bvpt2 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>That took me longer than it should have.<|eor|><|soopr|>Took me about 5 years lol.<|eoopr|><|eols|><|endoftext|> | 47 |
programminghorror | CptMisterNibbles | i7d67d3 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Pattern matching like `is null` has only been in C# for five years, so it can't be *that* old.
Now get off my lawn!<|eor|><|soopr|>You make a fair point, it feels much older that's for sure... | 38 |
programminghorror | Gamecrazy721 | i7cnt63 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>*null is NULL*<|eor|><|sor|>Nah, it would be
IS NULL
.ToString() for null evaluates to an empty string in C#<|eor|><|sor|>Ah you right, I crossed my Python brain and my C# brain<|eor|... | 32 |
programminghorror | MHolmesSC | i7d6aqi | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>In C# theres this great functionality of calling nameof() on things for it to print out the variable names, its very handy for logging.
https://docs.microsoft.com/en-us/dotnet/csharp/langu... | 28 |
programminghorror | ninimous | i7bcxqb | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Thank you for sharing this wonderful piece of code<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | SonOfTheRightHand | i7djbwa | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>In C# theres this great functionality of calling nameof() on things for it to print out the variable names, its very handy for logging.
https://docs.microsoft.com/en-us/dotnet/csharp/langu... | 22 |
programminghorror | WrathOfBongs | i7cgmdj | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Ah yes, the NULL is made out of NULL<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | unndunn | i7ebw2n | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>Can someone explain why this is bad?<|eor|><|sor|>`${userPrincipal} IS NULL` is using string interpolation to make a string saying <value of `userPrincipal`> IS NULL. But `userPrincipal` is ... | 18 |
programminghorror | gydu2202 | i7bsz3d | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>https://www.meme-arsenal.com/memes/591dbcd3275641926626f0eb733c4311.jpg<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | TwoAndHalfRetard | i7d4so0 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>*null is NULL*<|eor|><|sor|>https://i.imgur.com/OC5coeE.jpg<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | Ved_s | i7dp9m0 | <|sols|><|sot|>Just found this nugget in some very old code of mine<|eot|><|sol|>https://i.redd.it/4qhcutl0fhx81.png<|eol|><|sor|>*null is NULL*<|eor|><|sor|>Nah, it would be
IS NULL
.ToString() for null evaluates to an empty string in C#<|eor|><|sor|>Ah you right, I crossed my Python brain and my C# brain<|eor|... | 15 |
programminghorror | LimitedWard | u6w0c3 | <|sols|><|sot|>From Silicon Valley S3:E1<|eot|><|sol|>https://i.redd.it/hqhx0gybseu81.jpg<|eol|><|eols|><|endoftext|> | 1,165 |
programminghorror | Kessarean | i5b17vk | <|sols|><|sot|>From Silicon Valley S3:E1<|eot|><|sol|>https://i.redd.it/hqhx0gybseu81.jpg<|eol|><|sor|>Wouldn't really say horror so much as a deliberately obfuscated Easter egg.
https://blog.jgc.org/2016/05/what-silicon-valley-easter-egg-code.html?m=1<|eor|><|eols|><|endoftext|> | 555 |
programminghorror | B_M_Wilson | i5axqxk | <|sols|><|sot|>From Silicon Valley S3:E1<|eot|><|sol|>https://i.redd.it/hqhx0gybseu81.jpg<|eol|><|sor|>Cant decide between TOneverDO and O(m): lol no thanks<|eor|><|eols|><|endoftext|> | 554 |
programminghorror | 1halfazn | i5b8mpv | <|sols|><|sot|>From Silicon Valley S3:E1<|eot|><|sol|>https://i.redd.it/hqhx0gybseu81.jpg<|eol|><|sor|>Wouldn't really say horror so much as a deliberately obfuscated Easter egg.
https://blog.jgc.org/2016/05/what-silicon-valley-easter-egg-code.html?m=1<|eor|><|sor|>The context of this scene was Dinesh and Gilfoyle be... | 342 |
programminghorror | yourteam | i5bcljs | <|sols|><|sot|>From Silicon Valley S3:E1<|eot|><|sol|>https://i.redd.it/hqhx0gybseu81.jpg<|eol|><|sor|>Wouldn't really say horror so much as a deliberately obfuscated Easter egg.
https://blog.jgc.org/2016/05/what-silicon-valley-easter-egg-code.html?m=1<|eor|><|sor|>I just want to add that (since I am watching this se... | 135 |
programminghorror | Cat__Wrangler | i5bdryy | <|sols|><|sot|>From Silicon Valley S3:E1<|eot|><|sol|>https://i.redd.it/hqhx0gybseu81.jpg<|eol|><|sor|>Wouldn't really say horror so much as a deliberately obfuscated Easter egg.
https://blog.jgc.org/2016/05/what-silicon-valley-easter-egg-code.html?m=1<|eor|><|sor|>I just want to add that (since I am watching this se... | 80 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.