subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | ComfortablyBalanced | ggvcj2n | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>This feels like it could use a setter of its own....<|eor|><|sor|>It could use a SetSetter class with a builder.<|eor|><|eols|><|endoftext|> | 83 |
programminghorror | bwf93 | ggvhah7 | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>I am glad there is a "@NotNull". I would hate for someone to accidentally set a null setter.<|eor|><|eols|><|endoftext|> | 76 |
programminghorror | _Pho_ | ggv8wsm | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>**OOP.png**<|eor|><|eols|><|endoftext|> | 68 |
programminghorror | hasanyoneseenmymom | ggvhsog | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>I wonder if this was generated using a tool like GhostDoc? I tried the community edition in a c# project a while back and the auto documentation is pretty much the same as that.
///<summary>Proc... | 50 |
programminghorror | StackedHashQueueList | ggvr3h5 | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>//Does the thing
public static void doThing(){}<|eor|><|sor|>Zhu Li, do the thing!<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | FactoryNewdel | ggw0oj1 | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>This feels like it could use a setter of its own....<|eor|><|sor|>It could use a SetSetter class with a builder.<|eor|><|sor|>And a factory<|eor|><|eols|><|endoftext|> | 45 |
programminghorror | reverendsteveii | ggvis8z | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>public class Thing extends Object...<|eor|><|eols|><|endoftext|> | 19 |
programminghorror | TimGreller | ggw2a3e | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>What sets the setter's setter?<|eor|><|sor|>The setterSettingSetter() of course.<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | status_200_ok | ggvg3hr | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>I'm sure Christopher Nolan stole idea of *Inception* (dreams within dreams) from this setter from setter.<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | elperroborrachotoo | ggvdhpf | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>Inversion of Control, revisited.<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | LunacyBound | ggvrifp | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>//Does the thing
public static void doThing(){}<|eor|><|sor|>Zhu Li, do the thing!<|eor|><|sor|>I got that reference!<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | thockinator | ggvqd9t | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>public class Thing extends Object...<|eor|><|sor|>implements Stuff, Gizmo {
...<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | KernowRoger | ggwaetu | <|sols|><|sot|>Heard you liked setters, here's a setter setter<|eot|><|sol|>https://i.redd.it/kuu6vz7dd1761.png<|eol|><|sor|>I wonder if this was generated using a tool like GhostDoc? I tried the community edition in a c# project a while back and the auto documentation is pretty much the same as that.
///<summary>Proc... | 11 |
programminghorror | lililiiilili | kx4t9j | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|eols|><|endoftext|> | 2,057 |
programminghorror | LeifDTO | gj880yj | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Now you forked up.<|eor|><|eols|><|endoftext|> | 553 |
programminghorror | Megascrapper | gj815po | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Looks more like a rail shunting yard than a git log<|eor|><|eols|><|endoftext|> | 342 |
programminghorror | OneTrueKingOfOOO | gj8i49h | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Reset soft
Add all
Commit
Force push<|eor|><|sor|>Copy files to new directory
git init<|eor|><|eols|><|endoftext|> | 196 |
programminghorror | throwaway8u3sH0 | gj86eku | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Reset soft
Add all
Commit
Force push<|eor|><|eols|><|endoftext|> | 185 |
programminghorror | daqwes | gj8q8yr | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Nah, this is definitely a fluid simulation<|eor|><|eols|><|endoftext|> | 147 |
programminghorror | Ariquitaun | gj8hwdo | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Somebody doesn't know how to rebase.<|eor|><|eols|><|endoftext|> | 127 |
programminghorror | AttackOfTheThumbs | gj8t2tn | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>I honestly don't know. Last time we got something messy was because a dev kept branching from his feature branches instead of from dev.<|eor|><|eols|><|endoftext|> | 64 |
programminghorror | MattVanAndel | gj9d9sf | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>I honestly don't know. Last time we got something messy was because a dev kept branching from his feature branches instead of from dev.<|eor|><|sor|>Oh no. No no no no.<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | the-computer-guy | gj8fx5u | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Try using gitk. It renders the commit graph a bit more nicely. IntelliJ strictly sorts the commits by time. But maybe it won't help here :P<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | slantview | gja5dxy | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Now you forked up.<|eor|><|sor|>Came here to say this, was not disappointed.<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | null000 | gja0lr9 | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Reset soft
Add all
Commit
Force push<|eor|><|sor|>Sometimes you should put the work in to make small commits, write good descriptions, and keep your commits useful.
Other times, it really is just best t... | 36 |
programminghorror | WilliamLeeFightingIB | gj91ac7 | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Reset soft
Add all
Commit
Force push<|eor|><|sor|>Copy files to new directory
git init<|eor|><|sor|>Insert Nah Yeah meme here<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | FallenWarrior2k | gjacqra | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Somebody doesn't know how to rebase.<|eor|><|sor|>`pull.rebase = true` is a must if you're _ever_ sharing a branch with someone else.<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | Rembley | gj8cl4b | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Looks like IntelliJ IDEA<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | AttackOfTheThumbs | gj9uecu | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>I honestly don't know. Last time we got something messy was because a dev kept branching from his feature branches instead of from dev.<|eor|><|sor|>Oh no. No no no no.<|eor|><|sor|>It's all good, we fired ... | 25 |
programminghorror | 0815Flo0815 | gj94ea4 | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>Looks like IntelliJ IDEA<|eor|><|sor|>Could be any of JetBrains IDEs not just IntelliJ.<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | onthefence928 | gj9ivrd | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>I honestly don't know. Last time we got something messy was because a dev kept branching from his feature branches instead of from dev.<|eor|><|sor|>my last team, we did all of our branches off of a feature... | 23 |
programminghorror | DiamondIceNS | gjbf5qf | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Since this is something I definitely struggled with in my uni years, here's a five minute Git boot camp for everyone who might be confused but too scared to ask questions:
Git is basically a stack of delta... | 19 |
programminghorror | Hupf | gja2759 | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>https://xkcd.com/1597/<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | plistig | gj9d797 | <|sols|><|sot|>what just.. what just happened here?<|eot|><|sol|>https://i.redd.it/jkg9isiilab61.jpg<|eol|><|sor|>Reset soft
Add all
Commit
Force push<|eor|><|sor|>rm -rf
git clone<|eor|><|eols|><|endoftext|> | 15 |
programminghorror | Minyrmen | fztsh6 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|eols|><|endoftext|> | 2,044 |
programminghorror | Dotz0cat | fn6ssu4 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>What did you see denvercoder9? What did you see?<|eor|><|eols|><|endoftext|> | 326 |
programminghorror | NaturallyAdorkable | fn6t4kz | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>What did you see denvercoder9? What did you see?<|eor|><|sor|>hahaha [https://xkcd.com/979/](https://xkcd.com/979/)<|eor|><|eols|><|endoftext|> | 171 |
programminghorror | Mephob1c | fn6j1k5 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|> UNACCEPTABLE<|eor|><|eols|><|endoftext|> | 73 |
programminghorror | Jacob---- | fn76zxc | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>There is a special place in hell for people who say "problem solved" and don't share the solution<|eor|><|sor|>If I had a penny everytime I found a thread describing my exact problem with that response I would be a millionaire<|eor|><|eols|><... | 66 |
programminghorror | -shayne | fn6r1di | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>Not sure what's worse... the person who found the solution and didn't share it, or the people replying to a four months old code question which is not stack overflow.<|eor|><|eols|><|endoftext|> | 45 |
programminghorror | clovisman | fn6xia2 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>And the moderators will be the idiot nobbs that will flag any question like it as duplicate. They go straight to hell, no redemption, immediate fire lake.<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | LePootPootJames | fn8z1sz | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>What did you see denvercoder9? What did you see?<|eor|><|sor|>hahaha [https://xkcd.com/979/](https://xkcd.com/979/)<|eor|><|sor|>Plot twist: denvercoder9 was his old handle. He forgot about it.<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | IncarnationHero | fn7aunx | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>And those guys don't even come back to give solution too.
It's understandable, though. Because there is problem with it. These are what I have met.
1. The site need membership to reply comment.
2. The problem is something else entirely. It'... | 9 |
programminghorror | zalpha314 | fn87k9h | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>I actually saw someone on the GOG forms today who found the solution to their problem but refused to share it because "the support here is terrible".<|eor|><|eols|><|endoftext|> | 7 |
programminghorror | kartdei | fw4ukmk | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>What did you see denvercoder9? What did you see?<|eor|><|sor|>hahaha [https://xkcd.com/979/](https://xkcd.com/979/)<|eor|><|sor|>Plot twist: denvercoder9 was his old handle. He forgot about it.<|eor|><|sor|>This actually happened to me once.<... | 7 |
programminghorror | EmTeeEl | fn7jyd5 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/relx0jjkwcs41.png<|eol|><|sor|>And those guys don't even come back to give solution too.
It's understandable, though. Because there is problem with it. These are what I have met.
1. The site need membership to reply comment.
2. The problem is something else entirely. It'... | 6 |
programminghorror | Kusogak1 | 113k5st | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|eols|><|endoftext|> | 2,043 |
programminghorror | theorizable | j8qp8rw | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Questions like this just make people want to quit CS.<|eor|><|eols|><|endoftext|> | 1,046 |
programminghorror | thenickdude | j8qoq7p | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|eols|><|endoftext|> | 986 |
programminghorror | Creepy-Ad-4832 | j8qx8ep | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Questions like this just make people want to quit CS.<|eor|><|sor|>Questions like this are why computers were created in the 1st place<|eor|><|eols|><|endoftext|> | 538 |
programminghorror | XzyzZ_ZyxxZ | j8qr9uy | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That... is neither cool, nor fun<|eor|><|eols|><|endoftext|> | 522 |
programminghorror | EagleCoder | j8quvb9 | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|sor|>And it's not even a good question for that. People who understand... | 445 |
programminghorror | rakebackrainmaker | j8qr131 | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Questions like this just make people want to quit CS.<|eor|><|sor|>This doesn't even come close to the harder/hardest questions I had to solve. LOL. Memories of my Theory of Automata class just popped in my ... | 305 |
programminghorror | Kusogak1 | j8qq0oi | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|soopr|>Easy way to give a hard problem to the students with least effo... | 250 |
programminghorror | ZubriQ | j8qqaiv | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Am I a compiler to you? I am a programmer.<|eor|><|eols|><|endoftext|> | 238 |
programminghorror | Spire | j8r0hlr | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|soopr|>Easy way to give a hard problem to the students with least effo... | 228 |
programminghorror | 666y4nn1ck | j8qo9qp | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Not even monospaced... aaaaaaaaaaaa<|eor|><|eols|><|endoftext|> | 174 |
programminghorror | Exciting-Act5922 | j8qs8di | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>This is the same prof that decreases your points for missing whitespace after a comma and bad variable naming.<|eor|><|eols|><|endoftext|> | 129 |
programminghorror | No-Carry-7886 | j8r6pae | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|soopr|>Easy way to give a hard problem to the students with least effo... | 125 |
programminghorror | HelicopterShot87 | j8r3qgh | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That... is neither cool, nor fun<|eor|><|sor|>It is for a sadistic individual<|eor|><|eols|><|endoftext|> | 119 |
programminghorror | This_Growth2898 | j8qp9ne | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>It checks if you can handle bad legacy code.<|eor|><|eols|><|endoftext|> | 86 |
programminghorror | SeesawMundane5422 | j8rf7kk | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Questions like this just make people want to quit CS.<|eor|><|sor|>Its a trick question. The prof was actually looking for a WarGames quote:
A strange game. The only winning move is not to play. How about a... | 81 |
programminghorror | kiwitims | j8swdx6 | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That... is neither cool, nor fun<|eor|><|sor|>It is for a sadistic individual<|eor|><|sor|>A sadistic individual would have just left out the invocation in main() to see who's really paying attention.<|eor|>... | 81 |
programminghorror | KogMawOfMortimidas | j8r2yrp | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|sor|>The correct answer to pre- and post- increment operators is to no... | 76 |
programminghorror | FetishAnalyst | j8qyulf | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>It says return 0 right there.<|eor|><|eols|><|endoftext|> | 74 |
programminghorror | jarrydn | j8qqnmd | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>That's a lot of pointless busywork simply to test "do you understand the difference between pre- and post- decrement operators?"<|eor|><|sor|>The reply right below shows why this is important.<|eor|><|sor|>T... | 73 |
programminghorror | kuya1284 | j8qqlb0 | <|sols|><|sot|>Had this question for my final exam<|eot|><|sol|>https://i.redd.it/rtletd3dfjia1.jpg<|eol|><|sor|>Questions like this just make people want to quit CS.<|eor|><|sor|>This doesn't even come close to the harder/hardest questions I had to solve. LOL. Memories of my Theory of Automata class just popped in my ... | 68 |
programminghorror | autiii43 | tx3vgk | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|eols|><|endoftext|> | 2,044 |
programminghorror | Flaky-Following-4352 | i3j98nb | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Not JS
IEEE 754<|eor|><|eols|><|endoftext|> | 762 |
programminghorror | Thaviel | i3jdlhz | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>one of the 1st things I learned in compsci was always make money math in int and add the decimals later.<|eor|><|eols|><|endoftext|> | 685 |
programminghorror | Herb_Derb | i3jm2b8 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Everyone's talking about how this is not a JS-specific thing and missing the other horror that this floating-point calculation is related to a payment API<|e... | 498 |
programminghorror | YourMJK | i3ja0lv | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>That's not really JavaScript's fault, is it?
What you demonstrated is normal floating point behavior.
It's you who's responsible for correct rounding, str... | 229 |
programminghorror | stevethedev | i3jj3dh | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Not JS
IEEE 754<|eor|><|sor|>Can you explain why the first one seems to be converted to an int but the second one ends up as float?<|eor|><|sor|>Because all... | 191 |
programminghorror | yetzederixx | i3judgs | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Welp, first thing, you send in pennies. This didn't break because of javascript, this broke because you used the wrong data structure and trusted a float.
N... | 163 |
programminghorror | kahoinvictus | i3jxlr4 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>one of the 1st things I learned in compsci was always make money math in int and add the decimals later.<|eor|><|sor|>C#/.NET has the `decimal` type for accu... | 162 |
programminghorror | SunkenJack | i3ja4ir | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Well, that's not js, just floating point doing it's thing, as it's supposed to.<|eor|><|eols|><|endoftext|> | 137 |
programminghorror | bezik7124 | i3jf2ro | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>one of the 1st things I learned in compsci was always make money math in int and add the decimals later.<|eor|><|sor|>You could also, like, be sane and use l... | 132 |
programminghorror | SmallpoxTurtleFred | i3k3vx2 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Everyone's talking about how this is not a JS-specific thing and missing the other horror that this floating-point calculation is related to a payment API<|e... | 121 |
programminghorror | DapperFlatworm4431 | i3jd3np | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Not JS
IEEE 754<|eor|><|sor|>Can you explain why the first one seems to be converted to an int but the second one ends up as float?<|eor|><|eols|><|endoftex... | 115 |
programminghorror | quetzalcoatlsghost | i3k1s0n | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>one of the 1st things I learned in compsci was always make money math in int and add the decimals later.<|eor|><|sor|>You could also, like, be sane and use l... | 100 |
programminghorror | nekumelon | i3jhmtk | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Not JS
IEEE 754<|eor|><|sor|>Can you explain why the first one seems to be converted to an int but the second one ends up as float?<|eor|><|sor|>This is due... | 96 |
programminghorror | Cerus_Freedom | i3jjlg0 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>That's not really JavaScript's fault, is it?
What you demonstrated is normal floating point behavior.
It's you who's responsible for correct rounding, str... | 88 |
programminghorror | autiii43 | i3j9xc0 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Not JS
IEEE 754<|eor|><|soopr|>can a mod add a IEEE 754 flair?<|eoopr|><|eols|><|endoftext|> | 76 |
programminghorror | blbil | i3lyajx | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Everyone's talking about how this is not a JS-specific thing and missing the other horror that this floating-point calculation is related to a payment API<|e... | 76 |
programminghorror | Educational-Lemon640 | i3jg9ms | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>one of the 1st things I learned in compsci was always make money math in int and add the decimals later.<|eor|><|sor|>You could also, like, be sane and use l... | 61 |
programminghorror | Mirmi8 | i3kunh4 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>My companies Stripe integration for thousands of users broke today because of my company engineers\*
Fixed title<|eor|><|eols|><|endoftext|> | 60 |
programminghorror | Primary-Fee1928 | i3jcjw5 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Thats why you never use == for float or even double. Always use a more tolerant comparison<|eor|><|eols|><|endoftext|> | 59 |
programminghorror | Borno11050 | i3jn2f6 | <|sols|><|sot|>My companies Stripe integration for thousands of users broke today because Javascript<|eot|><|sol|>https://i.redd.it/y4masrh8prr81.png<|eol|><|sor|>Not JS
IEEE 754<|eor|><|sor|>^This, I hate that people would blame anything on JS due to ignorance, including a tire puncture to losing the divorce case<|eo... | 55 |
programminghorror | SirBlobfis | ms55eu | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|eols|><|endoftext|> | 2,031 |
programminghorror | Starixous | guqeyg2 | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>I actually felt sick watching this lol<|eor|><|eols|><|endoftext|> | 451 |
programminghorror | CoderCharmander | guqgw9b | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>So I am not the only one who implemented 1-bit graphics in the terminal. (I was working on a CHIP-8 emulator in C++ on my phone with Termux, so "real" graphics would be a no-go)<|eor|><|e... | 165 |
programminghorror | SirBlobfis | guqfgxm | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>I actually felt sick watching this lol<|eor|><|soopr|>Youre telling me<|eoopr|><|eols|><|endoftext|> | 119 |
programminghorror | Sv443_ | guql9jz | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>I'm guessing you're just shifting the whole terminal down and then re-draw the "scene"?
I've made a couple terminal games and can tell you the only way to get smooth and snappy animatio... | 94 |
programminghorror | SirBlobfis | guqolbx | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>I'm guessing you're just shifting the whole terminal down and then re-draw the "scene"?
I've made a couple terminal games and can tell you the only way to get smooth and snappy animatio... | 92 |
programminghorror | SirBlobfis | guqeutd | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|soopr|>Here is the code:
[https://github.com/SirBlobfis/CrappyTetris](https://github.com/SirBlobfis/CrappyTetris)<|eoopr|><|eols|><|endoftext|> | 81 |
programminghorror | givemeagoodun | guqqrhu | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>I'm guessing you're just shifting the whole terminal down and then re-draw the "scene"?
I've made a couple terminal games and can tell you the only way to get smooth and snappy animatio... | 60 |
programminghorror | kst164 | guqgiu5 | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|soopr|>Here is the code:
[https://github.com/SirBlobfis/CrappyTetris](https://github.com/SirBlobfis/CrappyTetris)<|eoopr|><|sor|>Lmao those variable names<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | pimezone | guqhpal | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>Who else got epilepsy after watching this?<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | SirBlobfis | guqi4kt | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|soopr|>Here is the code:
[https://github.com/SirBlobfis/CrappyTetris](https://github.com/SirBlobfis/CrappyTetris)<|eoopr|><|sor|>Lmao those variable names<|eor|><|soopr|>RIP Tim
(Line 44)<|eo... | 40 |
programminghorror | pxOMR | guqntcb | <|sols|><|sot|>Tetris in terminal with print statements *FLASHING WARNING*<|eot|><|sol|>https://v.redd.it/yqtqkiiowjt61<|eol|><|sor|>So I am not the only one who implemented 1-bit graphics in the terminal. (I was working on a CHIP-8 emulator in C++ on my phone with Termux, so "real" graphics would be a no-go)<|eor|><|s... | 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.