subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | tarrask | zd00go | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|eols|><|endoftext|> | 981 |
programminghorror | binary-tree | iyz93md | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Ternary oriented development<|eor|><|eols|><|endoftext|> | 226 |
programminghorror | TheBewlayBrothers | iyzlcig | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>The ternary operator has a place in the world. This isn't it<|eor|><|eols|><|endoftext|> | 101 |
programminghorror | misterrandom1 | iyz9obm | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Looks like a test to see if people are paying attention to pull requests.<|eor|><|eols|><|endoftext|> | 98 |
programminghorror | Chemical-Asparagus58 | iyzj280 | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>What?The:Fuck<|eor|><|eols|><|endoftext|> | 86 |
programminghorror | EffTeeKay24 | iyzv35o | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>what in ternation<|eor|><|eols|><|endoftext|> | 55 |
programminghorror | nekokattt | iyz7liy | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>thanks for ruining my morning.<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | Does_Not-Matter | iz06sbj | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Elon: *rips a bong* Why dont we have this<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | commoddity | iz0jtpz | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Elon: *rips a bong* Why dont we have this<|eor|><|sor|>All engineers must submit a printed sheet of their longest nested ternaries. If your ternary can fit on a single page you are fired.<|eor|><|eols|><|endoftext|> | 33 |
programminghorror | brotatowolf | iz23cir | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Looks like a test to see if people are paying attention to pull requests.<|eor|><|sor|>Status: rejected
Comments: Im not reading that<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | Hopefully_moreUnique | iyzumlj | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Looks fine to me. Well Im off to eat some babies<|eor|><|sor|>https://youtu.be/el6No1wNKf0?t=218<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | glieseg | iyzcpch | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Ternary oriented development<|eor|><|sor|>God damn it, Tod!<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | clheng337563 | iz0c7y0 | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>This person is a terrorist.<|eor|><|sor|>ternorist\*<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | dismayhurta | iyzch61 | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Some people just want to watch the world burn<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | FluffusMaximus | iyzwqpi | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>This person is a terrorist.<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | great_site_not | iz0n14d | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>what in ternation<|eor|><|sor|>This makes my stomach tern<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | Herb_Derb | iyzxx0f | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Terrornary<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | Does_Not-Matter | iz06pcz | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Looks fine to me. Well Im off to eat some babies<|eor|><|sor|>Well deserved gold
Take the day off, youve earned it<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | sjuas690 | iyzf9w5 | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Some people just want to watch the world burn<|eor|><|sor|>Code you write on your last day and it works so no one dare touch it.<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | hperrin | iyzbiph | <|sols|><|sot|>For the love of ternary<|eot|><|sol|>https://i.redd.it/67jm2r29414a1.jpg<|eol|><|sor|>Wow. I hate everything about this.<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | anapple96 | qtnhv3 | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|eols|><|endoftext|> | 985 |
programminghorror | JokerOfficiel | hkkqjw4 | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Warning: Unused variable "x"<|eor|><|eols|><|endoftext|> | 184 |
programminghorror | mohragk | hkkx6ur | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Doing that in C++ causes bitch slaps.<|eor|><|eols|><|endoftext|> | 169 |
programminghorror | DrShocker | hkl4b95 | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Doing that in C++ causes bitch slaps.<|eor|><|sor|>It's _fine_ RAM is cheaper these days than it used to be.<|eor|><|eols|><|endoftext|> | 95 |
programminghorror | ings0c | hkkwk6a | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Warning: Unused variable "x"<|eor|><|sor|>`let` just in case you need to reassign your unused variable.<|eor|><|eols|><|endoftext|> | 86 |
programminghorror | ByteArrayInputStream | hkm5fg9 | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Ah yes, object oriented functional programming, as one does<|eor|><|eols|><|endoftext|> | 65 |
programminghorror | abc_wtf | hklz43z | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Doing that in C++ causes bitch slaps.<|eor|><|sor|>Just tried it, works fine actually. I even tried getting the number by index and it works like a charm.
I was expecting a stack overflow or something but it probably ... | 37 |
programminghorror | Kwdg | hklrzvq | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Doing that in C++ causes bitch slaps.<|eor|><|sor|>Just tried it, works fine actually. I even tried getting the number by index and it works like a charm.
I was expecting a stack overflow or something but it probably ... | 36 |
programminghorror | ViperLordX | hkm9h91 | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Ah yes, object oriented functional programming, as one does<|eor|><|sor|>Java streams, Kotlin sequences, and C# Linq would like to talk to you<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | Ethernet3 | hkluvxi | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Functional just means that it works, it'll be fine :)<|eor|><|eols|><|endoftext|> | 33 |
programminghorror | sim642 | hklb3v9 | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Warning: Unused variable "x"<|eor|><|sor|>`let` just in case you need to reassign your unused variable.<|eor|><|sor|>Well, it wouldn't be unused then.
Although it would still be written and never read, which can be a... | 8 |
programminghorror | Constant_Employer_11 | hkm21up | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>This so cursed<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | rgwashere | hkmm9lu | <|sols|><|sot|>Functional programming right?<|eot|><|sol|>https://i.imgur.com/VhNP3LX.png<|eol|><|sor|>Ah yes, object oriented functional programming, as one does<|eor|><|sor|>oofp<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | L3ar | igvi72 | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|eols|><|endoftext|> | 978 |
programminghorror | mohragk | g2w81w0 | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>Stop the project and re-architecture. This is absolutely horrific.<|eor|><|eols|><|endoftext|> | 280 |
programminghorror | L3ar | g2w892n | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>Stop the project and re-architecture. This is absolutely horrific.<|eor|><|soopr|>It's being redone in another framework, this one is super old and it sucks. But the project is so big it takes t... | 137 |
programminghorror | cherry_professional | g2wo3sx | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>O(scary)<|eor|><|eols|><|endoftext|> | 126 |
programminghorror | Nicnl | g2wom0y | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>O(n\^20). WOW.<|eor|><|sor|>What if the hidden code below is a recursive call to itself?<|eor|><|eols|><|endoftext|> | 124 |
programminghorror | CrimsonMutt | g2xicw5 | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>O(scary)<|eor|><|sor|>O(my god)<|eor|><|eols|><|endoftext|> | 87 |
programminghorror | panoskarajohn | g2wkufe | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>The moment you realize these are not if statements. :0<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | 200GritCondom | g2xztrv | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>Stop the project and re-architecture. This is absolutely horrific.<|eor|><|soopr|>It's being redone in another framework, this one is super old and it sucks. But the project is so big it takes t... | 72 |
programminghorror | ISuckAtJavaScript12 | g2wpkft | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>Some say this is still running to this very day ... if you listen closely you can still hear the CPU crying out in pain<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | haikusbot | g2wsg9b | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>The only nice thing I see here is that sometimes the colons align<|eor|><|sor|>*The only nice thing*
*I see here is that sometimes*
*The colons align*
\- ioman_
---
^(I detect haikus. And s... | 46 |
programminghorror | Jade3375 | g2w6ns3 | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>There isn't enough nesting I'm dissapointed<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | superking2 | g2xndut | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>O(scary)<|eor|><|sor|>O(no)<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | inxaneninja | g2wfu90 | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>Nesting more than 3 for loops is terrible, this guy takes it to the next level<|eor|><|sor|>2\*<|eor|><|sor|>Could be 2, I said more than 3 because often you can be dealing with 3D arrays<|eor|>... | 34 |
programminghorror | serg06 | g2wrxp2 | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>O(n\^20). WOW.<|eor|><|sor|>O(abcdefghijklmnopqrst)<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | anghenfil | g2wjhhp | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>But I like the comment: "First step"<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | Backes89 | g2ws10z | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>O(n\^20). WOW.<|eor|><|sor|>What if the hidden code below is a recursive call to itself?<|eor|><|sor|>then it would be a r/programmingnightmare<|eor|><|sor|>There was little hope that this subre... | 30 |
programminghorror | haikusbot | g2wnphc | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>Nesting more than 3 for loops is terrible, this guy takes it to the next level<|eor|><|sor|>2\*<|eor|><|sor|>Could be 2, I said more than 3 because often you can be dealing with 3D arrays<|eor|>... | 27 |
programminghorror | ioman_ | g2wsfel | <|sols|><|sot|>I don't even want to know what's the second step<|eot|><|sol|>https://i.redd.it/kjd7hwpkbbj51.png<|eol|><|sor|>The only nice thing I see here is that sometimes the colons align<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | Pasemek | qgkdoa | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|eols|><|endoftext|> | 975 |
programminghorror | cnekmp | hi7sxdx | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Actually this is a very dangerous sub. The more I look at the posts and feel that I'm getting dumber in coding. But at the same time I cannot leave this sub, because it's damn interesting to see unexpected programming ho... | 324 |
programminghorror | cyborgamish | hi8akki | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Noob. No need for minus sign: (n)=>Math.cos(Math.PI)*n<|eor|><|eols|><|endoftext|> | 157 |
programminghorror | scragar | hi8iy4m | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Noob. No need for minus sign: (n)=>Math.cos(Math.PI)*n<|eor|><|sor|>you're noobier, just convert your int into a string, then, if there's a - sign, remove it, or else, add one, then convert it all back into an integer<|... | 93 |
programminghorror | Derp123reDerpening | hi7gtvp | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Well. I see no better way.
Edit: /s<|eor|><|sor|>Well I know my preferred way is to multiply it by -1
But this is far from the worst way.<|eor|><|eols|><|endoftext|> | 87 |
programminghorror | Counter-Business | hi8xakk | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Actually this is a very dangerous sub. The more I look at the posts and feel that I'm getting dumber in coding. But at the same time I cannot leave this sub, because it's damn interesting to see unexpected programming ho... | 56 |
programminghorror | jb28737 | hi88b01 | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>return '-' + number;<|eor|><|eols|><|endoftext|> | 55 |
programminghorror | FreshBroc | hi6v59q | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Well. I see no better way.
Edit: /s<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | Pasemek | hi7whxj | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Well. I see no better way.
Edit: /s<|eor|><|sor|>Well I know my preferred way is to multiply it by -1
But this is far from the worst way.<|eor|><|soopr|>I later changed it into return -number. I realize mine is not the... | 41 |
programminghorror | boskee | hi8kp1x | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Noob. No need for minus sign: (n)=>Math.cos(Math.PI)*n<|eor|><|sor|>you're noobier, just convert your int into a string, then, if there's a - sign, remove it, or else, add one, then convert it all back into an integer<|... | 36 |
programminghorror | SymbolicThimble | hi7yf2w | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Well. I see no better way.
Edit: /s<|eor|><|sor|>Well I know my preferred way is to multiply it by -1
But this is far from the worst way.<|eor|><|soopr|>I later changed it into return -number. I realize mine is not the... | 36 |
programminghorror | henbanehoney | hi8jjp2 | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Noob. No need for minus sign: (n)=>Math.cos(Math.PI)*n<|eor|><|sor|>you're noobier, just convert your int into a string, then, if there's a - sign, remove it, or else, add one, then convert it all back into an integer<|... | 27 |
programminghorror | JeremyPriest | hi8ixd1 | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Well. I see no better way.
Edit: /s<|eor|><|sor|>Well I know my preferred way is to multiply it by -1
But this is far from the worst way.<|eor|><|sor|>>But this is far from the worst way.
Yes. Yes it's the worst way.... | 24 |
programminghorror | RouletteSensei | hi939yt | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>I think now I'm scared no more to be a noob in programming.
Shouldn't it be like:
function opposite(number) {
return (number * -1)<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | compscimemes | hi8ifyj | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>you could just do this
number = number -1<|eor|><|sor|>No way <|eor|><|eols|><|endoftext|> | 21 |
programminghorror | Jalkar | hi835y0 | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>It's not wrong if it works...<|eor|><|sor|>It can be wrong if you are too close to the maximum value of your number<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | kuaiyidian | hi8gqt7 | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>return '-' + number;<|eor|><|sor|>remember to parsefloat<|eor|><|eols|><|endoftext|> | 19 |
programminghorror | boskee | hi8po9h | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Noob. No need for minus sign: (n)=>Math.cos(Math.PI)*n<|eor|><|sor|>you're noobier, just convert your int into a string, then, if there's a - sign, remove it, or else, add one, then convert it all back into an integer<|... | 15 |
programminghorror | ToxicPilot | hi964lo | <|sols|><|sot|>Well... I am not smart<|eot|><|sol|>https://i.redd.it/w0utyplr1wv71.jpg<|eol|><|sor|>Just return number * -1 ffs<|eor|><|sor|> return 0 - number;<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | Zacks7348 | iyvl8s | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|eols|><|endoftext|> | 973 |
programminghorror | Themis3000 | g6f46wl | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>It's still not very good, but it's some of the best pseudo code I've seen on this sub in a while<|eor|><|eols|><|endoftext|> | 665 |
programminghorror | korras | g6f530i | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>It's still not very good, but it's some of the best pseudo code I've seen on this sub in a while<|eor|><|sor|>this is 100% valid javascript. And if the coercion from the loose '==' operator forces the coffee and coffeePot... | 384 |
programminghorror | tealcosmo | g6ezuek | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>If only they did coffee.isEmpty()<|eor|><|eols|><|endoftext|> | 212 |
programminghorror | A_lemony_llama | g6f7zqa | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>If only they did coffee.isEmpty()<|eor|><|sor|>or something like coffee.getStatus() == Status.EMPTY where status is an enum that contains all the status of that coffee mug. Like EMPTY,FULL,HALF<|eor|><|sor|>but is that HA... | 113 |
programminghorror | Semarc01 | g6f2z0z | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>idk if this counts as horror, but it's certainly not executable<|eor|><|sor|>It is. At least if its C#-Code
You just need implicit conversions from the class of coffee and coffeepot to strings. Why anyone would ever do t... | 95 |
programminghorror | SAmaruVMR | g6f4ke7 | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>If only they did coffee.isEmpty()<|eor|><|sor|>or something like coffee.getStatus() == Status.EMPTY where status is an enum that contains all the status of that coffee mug. Like EMPTY,FULL,HALF<|eor|><|eols|><|endoftext|> | 87 |
programminghorror | tmukingston | g6fh34d | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>It's still not very good, but it's some of the best pseudo code I've seen on this sub in a while<|eor|><|sor|>this is 100% valid javascript. And if the coercion from the loose '==' operator forces the coffee and coffeePot... | 84 |
programminghorror | evkan | g6exyjt | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>idk if this counts as horror, but it's certainly not executable<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | ill-pick-one-later | g6f3hft | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>Guess I'll work and drink coffee until I die...<|eor|><|eols|><|endoftext|> | 71 |
programminghorror | AppelEnPeer | g6ffg6z | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>Needed some setup, but I confirm the code works as intended.
let coffee = 'full'
String.prototype.drink = function() {
console.log(`Coffee is now ${coffee = 'empty'}`)
}
String.prototype.refill = ... | 66 |
programminghorror | It-Resolves | g6f2xeg | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>idk if this counts as horror, but it's certainly not executable<|eor|><|sor|>I think it is executable. What can't be executed?<|eor|><|sor|>Coffee is a class, itll never == empty<|eor|><|sor|>You can overload the == opera... | 66 |
programminghorror | ZioCain | g6fwgd7 | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>It's still not very good, but it's some of the best pseudo code I've seen on this sub in a while<|eor|><|sor|>this is 100% valid javascript. And if the coercion from the loose '==' operator forces the coffee and coffeePot... | 57 |
programminghorror | minde281 | g6fjf64 | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>It's still not very good, but it's some of the best pseudo code I've seen on this sub in a while<|eor|><|sor|>this is 100% valid javascript. And if the coercion from the loose '==' operator forces the coffee and coffeePot... | 57 |
programminghorror | Lixen | g6f6tz9 | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>Needed some setup, but I confirm the code works as intended.
let coffee = 'full'
String.prototype.drink = function() {
console.log(`Coffee is now ${coffee = 'empty'}`)
}
String.prototype.refill = ... | 55 |
programminghorror | Seblor | g6flrzh | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>It's still not very good, but it's some of the best pseudo code I've seen on this sub in a while<|eor|><|sor|>this is 100% valid javascript. And if the coercion from the loose '==' operator forces the coffee and coffeePot... | 42 |
programminghorror | spizzat2 | g6fnnzb | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>Guess I'll work and drink coffee until I die...<|eor|><|sor|>Do you see a while(alive) condition? You keep working after death!<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | Paleran | g6gbd8g | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>Guess I'll work and drink coffee until I die...<|eor|><|sor|>Do you see a while(alive) condition? You keep working after death!<|eor|><|sor|> throw "heart attack";<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | tealcosmo | g6ezs4l | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>Gah. I hate smart quotes.<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | Shinroo | g6g0cai | <|sols|><|sot|>I have many questions<|eot|><|sol|>https://i.redd.it/1axh36ni13p51.jpg<|eol|><|sor|>this is 100% valid javascript. And if the coercion from the loose '==' operator forces the coffee and coffeePot objects toString(), it will 100% work.
​
I hate these mugs tho. Valid or pseudocode.<|eor|><|sor|>Wo... | 27 |
programminghorror | r_u_kimmi | eyxh6i | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|eols|><|endoftext|> | 981 |
programminghorror | droomph | fgjylfs | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>Hey you know how this app will decide the fate of our country? What if we treated this like a senior project in which 4 out of the 5 people didnt do shit all semester?<... | 377 |
programminghorror | DomSchu | fgk72sh | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>Was this the first app this company made? This is the kind of shit you figure out months before releasing a production level app.<|eor|><|eols|><|endoftext|> | 122 |
programminghorror | r_u_kimmi | fgjv43n | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|soopr|>Article: [The app that broke the Iowa Caucuses was sent out through a beta testing platform,](https://www.theverge.com/2020/2/4/21122737/iowa-democractic-caucus-votin... | 121 |
programminghorror | tom_echo | fgkeafl | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>Was this the first app this company made? This is the kind of shit you figure out months before releasing a production level app.<|eor|><|sor|>It probably was, I would... | 104 |
programminghorror | optimal_substructure | fgkvqo7 | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>Hey you know how this app will decide the fate of our country? What if we treated this like a senior project in which 4 out of the 5 people didnt do shit all semester?<... | 92 |
programminghorror | pancakeQueue | fgk1zr8 | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>Were they expecting the number of users equal to the number of counties in Iowa.<|eor|><|eols|><|endoftext|> | 84 |
programminghorror | society2-com | fgkh81m | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>Were they expecting the number of users equal to the number of counties in Iowa.<|eor|><|sor|>"what's the user limit?"
"200"
"how many counties are in iowa?"
"99"
"... | 81 |
programminghorror | 1r0n1c | fgkak3v | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>\> We take these issues very seriously
Well, sure, now that you got caught cheaping out on testing. Let me guess that the whole group doesn't have a single CS degree... | 69 |
programminghorror | roman_fyseek | fgjzv1p | <|sols|><|sot|>Details coming in on Iowa caucus app failure. Feel like this belongs here.<|eot|><|sol|>https://i.redd.it/ov36m75a6ze41.png<|eol|><|sor|>\> We take these issues very seriously
Well, sure, now that you got caught cheaping out on testing. Let me guess that the whole group doesn't have a single CS degree... | 55 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.