subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | Kattou | gu8hxcv | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I am so guilty of that else statement...<|eor|><|sor|>//TODO Add error handling<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | darkpyro2 | gu7yx08 | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>This is from my capstone project. By the time I wrote this function, I had already written the project using the separate classes and didn't have time to do a bunch of refactoring.
​
As a result, thi... | 72 |
programminghorror | mgorski08 | gu8j95q | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>Hey, I just met you and this is crazy, but there's an error, so handle maybe?<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | ReptileCake | gu8p8rz | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I am so guilty of that else statement...<|eor|><|sor|>//TODO Add error handling<|eor|><|sor|>//TODO Add error handling?<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | darkpyro2 | gu7zfsz | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>This is from my capstone project. By the time I wrote this function, I had already written the project using the separate classes and didn't have time to do a bunch of refactoring.
​
As a result, thi... | 39 |
programminghorror | nrith | gu7ysbg | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>This is from my capstone project. By the time I wrote this function, I had already written the project using the separate classes and didn't have time to do a bunch of refactoring.
​
As a result, thi... | 36 |
programminghorror | HotRodLincoln | gu8zyay | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I am so guilty of that else statement...<|eor|><|sor|>//TODO Add error handling<|eor|><|sor|>//TODO Add error handling?<|eor|><|sor|>try{ entireProgram }
catch(Throwable t){print("Something bad happened.")}<|... | 34 |
programminghorror | seidlman | gu8s11o | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I am so guilty of that else statement...<|eor|><|sor|>log->warn("shits fucked lol");<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | darkpyro2 | gu8c7pb | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>I don't know how I should feel about my code taking off on this sub <|eoopr|><|eols|><|endoftext|> | 21 |
programminghorror | nrith | gu7yrox | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I am so guilty of that else statement...<|eor|><|sor|>*So say we all*<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | hadidotj | gu8paf6 | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>This is from my capstone project. By the time I wrote this function, I had already written the project using the separate classes and didn't have time to do a bunch of refactoring.
​
As a result, thi... | 19 |
programminghorror | nrith | gu7zdcx | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>This is from my capstone project. By the time I wrote this function, I had already written the project using the separate classes and didn't have time to do a bunch of refactoring.
​
As a result, thi... | 16 |
programminghorror | dcheesi | gu8rdf6 | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I don't know how to make it better tbh?<|eor|><|sor|>All of the calls in each branch of the conditional are the same, except for the test type. If the various test classes were written as inheriting from a comm... | 15 |
programminghorror | juantreses | gu8wo9p | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>I am so guilty of that else statement...<|eor|><|sor|>I wonder what the general consensus is; should you handle errors before going to actual logic or after? Basically if vs. else
I often hear handling errors ... | 15 |
programminghorror | nrith | gu80h85 | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|soopr|>This is from my capstone project. By the time I wrote this function, I had already written the project using the separate classes and didn't have time to do a bunch of refactoring.
​
As a result, thi... | 14 |
programminghorror | n0tKamui | gu8f4kd | <|sols|><|sot|>Inheritance? Never heard of her.<|eot|><|sol|>https://i.redd.it/1wlnp08vxns61.png<|eol|><|sor|>One 0-level improvement that doesn't require re-architecting all of this would be to use a `switch`. It doesn't sound like it should make things run faster but it does, even in C code.<|eor|><|sor|>a switch is ... | 12 |
programminghorror | GNVageesh | sbge7u | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|eols|><|endoftext|> | 1,018 |
programminghorror | Sairina | hu00ygk | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I feel like this is every other post to this sub.<|eor|><|eols|><|endoftext|> | 175 |
programminghorror | lorhof1 | htzz9ds | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>that indention of the opening bracket...<|eor|><|eols|><|endoftext|> | 91 |
programminghorror | DominoNo- | hu0b2v0 | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>Reminds me of this.
https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/blob/eeeeeeeeeeeeee... | 40 |
programminghorror | lorhof1 | hu03vth | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>that indention of the opening bracket...<|eor|><|soopr|>thats how python is made i suppose... XD<|eoopr|><|sor|>also why is the return statement indented one more to the right than the cout one... | 21 |
programminghorror | GNVageesh | hu02nwl | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>that indention of the opening bracket...<|eor|><|soopr|>thats how python is made i suppose... XD<|eoopr|><|eols|><|endoftext|> | 20 |
programminghorror | GnoergLePfroegl | hu03200 | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I think call the programming language "Ralph Wiggum".<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | GNVageesh | hu0opxv | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>Reminds me of this.
https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/blob/eeeeeeeeeeeeee... | 12 |
programminghorror | Loopgod- | hu1ujng | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I feel like this is every other post to this sub.<|eor|><|soopr|>lol<|eoopr|><|sor|>Dude 40 downvoted for saying lol? Whats wrong with this sub. Nothing wrong with that ffs people.<|eor|><|sor|... | 12 |
programminghorror | oddark | hu0k3vz | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I prefer underscores so it's harder to tell how long each one is<|eor|><|eols|><|endoftext|> | 10 |
programminghorror | danjr | hu2v3y7 | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I feel like this is every other post to this sub.<|eor|><|soopr|>lol<|eoopr|><|sor|>Dude 40 downvoted for saying lol? Whats wrong with this sub. Nothing wrong with that ffs people.<|eor|><|sor|... | 10 |
programminghorror | Markus2822 | hu1pehc | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I feel like this is every other post to this sub.<|eor|><|soopr|>lol<|eoopr|><|sor|>Dude 40 downvoted for saying lol? Whats wrong with this sub. Nothing wrong with that ffs people.<|eor|><|eols... | 9 |
programminghorror | Curtmister25 | hu13rbk | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>You know, I see these jokes a lot, but this one finally helped me understand what the "define" thing means.<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | TheAwesome98_Real | hu0anth | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>I think call the programming language "Ralph Wiggum".<|eor|><|soopr|>Whats that tho...<|eoopr|><|sor|>the stupid kid in the simpsons<|eor|><|eols|><|endoftext|> | 6 |
programminghorror | fukitol- | hu1jk15 | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>You know, I see these jokes a lot, but this one finally helped me understand what the "define" thing means.<|eor|><|sor|>If you want more information use the phrase "preprocessing macros"<|eor|... | 5 |
programminghorror | GNVageesh | hu03yd1 | <|sols|><|sot|>This is how I create a new programming language!!<|eot|><|sol|>https://i.redd.it/dynxk2r78ld81.png<|eol|><|sor|>that indention of the opening bracket...<|eor|><|soopr|>thats how python is made i suppose... XD<|eoopr|><|sor|>also why is the return statement indented one more to the right than the cout one... | 5 |
programminghorror | Jonno_FTW | ul16jb | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|eols|><|endoftext|> | 1,016 |
programminghorror | ThatDudeBesideYou | i7skfti | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 271 |
programminghorror | Jonno_FTW | i7sjh58 | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|soopr|>Other notes:
* The twitter API credentials are hard coded
* This was actually used in production and not commented o... | 139 |
programminghorror | hadidotj | i7sp7p0 | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 100 |
programminghorror | ThatDudeBesideYou | i7st5ig | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 64 |
programminghorror | xxmalik | i7ta89o | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>This is genius! Easy access to logs from any device anywhere.<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | MarkusBerkel | i7tpkbn | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|soopr|>Other notes:
* The twitter API credentials are hard coded
* This was actually used in production and not commented o... | 44 |
programminghorror | derplordthethird | i7tu4xr | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|soopr|>Other notes:
* The twitter API credentials are hard coded
* This was actually used in production and not commented o... | 30 |
programminghorror | FieryBlake | i7tgw02 | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 30 |
programminghorror | EagleCoder | i7szk5f | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 26 |
programminghorror | Johnny2085 | i7ttn4b | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>I did this to tweet at time warner every time my internet went down. Took about a month before they sent a tech out who... | 24 |
programminghorror | Jumbo_1907 | i7udtk3 | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>This is genius! Easy access to logs from any device anywhere.<|eor|><|sor|>I use discord webhooks sometimes for persona... | 22 |
programminghorror | Mickenfox | i7tcyx1 | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 17 |
programminghorror | PranshuKhandal | i7t5a9i | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>This is.. beautiful.<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | MarkusBerkel | i7tom7y | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Is Twitter not a valid microservice API bus?
All my components tweet at each other, and if theyre in the mentions the... | 13 |
programminghorror | Jonno_FTW | i7tf6ft | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Can someone explain what janky about this commented out code?<|eor|><|soopr|>If you really need to know when a service ... | 12 |
programminghorror | sohang-3112 | i7tev7r | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|> That reminded me that I had a twitter bot back when it was cool. I think I still have the account creds somewhere.
Ed... | 10 |
programminghorror | lavahot | i7tccgo | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Can someone explain what janky about this commented out code?<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | intern_at_olympus | i7tuytd | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>Would love to see my bugs trend on Twitter<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | davy_jones_locket | i7uo2hh | <|sols|><|sot|>You've heard of console debugging, now get ready for Twitter debugging<|eot|><|sol|>https://cdn.discordapp.com/attachments/656826815901597706/966941569703870484/unknown.png<|eol|><|sor|>I did this to tweet at time warner every time my internet went down. Took about a month before they sent a tech out who... | 8 |
programminghorror | tea-vs-coffee | lghljp | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|eols|><|endoftext|> | 1,013 |
programminghorror | MadOverlord | gms6qg7 | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>Hey, works in linear time, A+!<|eor|><|eols|><|endoftext|> | 257 |
programminghorror | revrenlove | gmrxmuz | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>At this point, they're just fucking with us, right?<|eor|><|eols|><|endoftext|> | 109 |
programminghorror | nuclearslug | gmsj56y | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>Hey, works in linear time, A+!<|eor|><|sor|>Bonus points to anyone who can turn this into O(n^n)<|eor|><|eols|><|endoftext|> | 96 |
programminghorror | integralWorker | gmsd959 | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>At this point, they're just fucking with us, right?<|eor|><|sor|>This smacks of awful idea / great implementation. The spacing is too clean and the variable names are subtly memed while still be... | 84 |
programminghorror | W-recker | gmrh8xg | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>That just might be a pretty fast way to do it.<|eor|><|sor|>Im doubtful that this would be faster than number%3. But the fact that the function name includes the number 3, but still allows for a... | 66 |
programminghorror | DrStalker | gmsdjy8 | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>When you don't know about source control so you just copy-paste and increment the function name by 1 every time you make a new version.<|eor|><|eols|><|endoftext|> | 51 |
programminghorror | stone_henge | gmsrpmc | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>Hey, works in linear time, A+!<|eor|><|sor|>Bonus points to anyone who can turn this into O(n^n)<|eor|><|sor|> for (int i = 0; i <= number * number; i += divisibility) {
if (i == numb... | 48 |
programminghorror | malleoceruleo | gms792k | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>At least they remembered to make it static.<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | ekolis | gmsegwk | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>When you don't know about source control so you just copy-paste and increment the function name by 1 every time you make a new version.<|eor|><|sor|>Source control that lets you actually call ol... | 30 |
programminghorror | IdealBlueMan | gmrhfkj | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>That just might be a pretty fast way to do it.<|eor|><|sor|>Im doubtful that this would be faster than number%3. But the fact that the function name includes the number 3, but still allows for a... | 30 |
programminghorror | pm-me-happy-vibes | gms1prh | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>That just might be a pretty fast way to do it.<|eor|><|sor|>absolutely not. Division is, what, 80 cycles (minus pipelining and vectorization, which bring it much lower when applicable). this tak... | 27 |
programminghorror | craftworkbench | gmsjvgp | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>At this point, they're just fucking with us, right?<|eor|><|sor|>This smacks of awful idea / great implementation. The spacing is too clean and the variable names are subtly memed while still be... | 26 |
programminghorror | Strex_1234 | gmt2xos | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>Hey, works in linear time, A+!<|eor|><|sor|>Bonus points to anyone who can turn this into O(n^n)<|eor|><|sor|> for (int i = 0; i <= number * number; i += divisibility) {
if (i == numb... | 24 |
programminghorror | Hupf | gmssrwu | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Found the QA<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | stayclassytally | gmscmpv | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>(int) => int % 3 === 0<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | backtickbot | gmsesj0 | <|sols|><|sot|>checking if a number is divisible by a number...<|eot|><|sol|>https://i.redd.it/9i6z16c1ojg61.png<|eol|><|sor|>IsDivisibleBy3(2,147,483,647, 1)<|eor|><|sor|>```
Main.java:69: error: method IsDivisibleBy3 in class Main cannot be applied to given types;
IsDivisibleBy3(2,147,483,647, 1);
required: int, in... | 20 |
programminghorror | FOSSphorous | m10iiq | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|eols|><|endoftext|> | 1,016 |
programminghorror | SoulLover33 | gqayldp | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|eols|><|endoftext|> | 363 |
programminghorror | Dizzfizz | gqb0j2s | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|sor|>This gives me a ton of confidence in my abilities. Im self-taught with no formal education, but if... | 313 |
programminghorror | Express-Outside | gqb1g9w | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Why did the developer make an arbitrary cutoff at the letter U?<|eor|><|sor|>Obvious: He was out of numbers.<|eor|><|eols|><|endoftext|> | 128 |
programminghorror | diamondjim | gqayyqw | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Why did the developer make an arbitrary cutoff at the letter U?<|eor|><|eols|><|endoftext|> | 124 |
programminghorror | not_your_mate | gqb6u9n | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|sor|>This gives me a ton of confidence in my abilities. Im self-taught with no formal education, but if... | 124 |
programminghorror | animefreak123323 | gqb5vyh | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|sor|>This gives me a ton of confidence in my abilities. Im self-taught with no formal education, but if... | 97 |
programminghorror | Pocket-Man | gqb40xx | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Can you even compare two strings like that in java?<|eor|><|sor|>Nope, wouldn't even work. "==" compares objects, not String values. Either use the ... | 88 |
programminghorror | _aj42 | gqb1ox1 | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Can you even compare two strings like that in java?<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | way22 | gqb3uqv | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>My first instinct was that someone needs to teach this person about Arrays and (aside from the question if it should be done like this at all) repla... | 53 |
programminghorror | Impressive-Move9344 | gqaywx8 | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Meanwhile I'm out here studying complex data structures and apparently someone gets hired with this skill level <|eor|><|eols|><|endoftext|> | 53 |
programminghorror | The_Final_Saiyan | gqbdksa | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Why did the developer make an arbitrary cutoff at the letter U?<|eor|><|sor|>Because you can't change the RNG to go to 26. 20 is the cap. Takes too ... | 52 |
programminghorror | animefreak123323 | gqb7bgl | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|sor|>This gives me a ton of confidence in my abilities. Im self-taught with no formal education, but if... | 47 |
programminghorror | virtulis | gqb6hop | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>The lengths people will go to avoid thinking for a couple of minutes.<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | SebMitDemKurzen | gqb27cc | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|sor|>They probably get paid by line of code.<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | Mr_Redstoner | gqb4b85 | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Can you even compare two strings like that in java?<|eor|><|sor|>Nope, wouldn't even work. "==" compares objects, not String values. Either use the ... | 34 |
programminghorror | fakehalo | gqbq65v | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>How low is the bar at your work lmao<|eor|><|sor|>This gives me a ton of confidence in my abilities. Im self-taught with no formal education, but if... | 25 |
programminghorror | FOSSphorous | gqbd2pt | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>It's a double post...
https://www.reddit.com/r/badcode/comments/m10jx4/all_i_asked_for_was_something_to_generate_random/?utm_medium=android_app&utm_... | 23 |
programminghorror | processingbrain | gqbbh61 | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>The lengths people will go to avoid thinking for a couple of minutes.<|eor|><|sor|>ironic how programmers usually hate manual labor like typing 100 ... | 21 |
programminghorror | real_fff | gqblnwe | <|sols|><|sot|>All I asked for was something to generate random strings. Ended up with 276 lines of this x3 files<|eot|><|sol|>https://i.imgur.com/J6Yv4tf.jpg<|eol|><|sor|>Can you even compare two strings like that in java?<|eor|><|sor|>Nope, wouldn't even work. "==" compares objects, not String values. Either use the ... | 21 |
programminghorror | Freudenschade | iha9wq | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|eols|><|endoftext|> | 1,013 |
programminghorror | neros_greb | g2zle0p | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Exercise: write the 'solve' function<|eor|><|eols|><|endoftext|> | 313 |
programminghorror | neck_crow | g2znfsh | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Really not that bad. The excessive spacing is just preference, but isnt bad practice. The structure is eh, but really not awful.<|eor|><|eols|><|endoftext|> | 185 |
programminghorror | Griff2470 | g2zpysf | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Really not that bad. The excessive spacing is just preference, but isnt bad practice. The structure is eh, but really not awful.<|eor|><|sor|>There is actually a pretty big issue in that the loo... | 95 |
programminghorror | _Tal | g2zo9h9 | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Really not that bad. The excessive spacing is just preference, but isnt bad practice. The structure is eh, but really not awful.<|eor|><|sor|>I think the horror is that it checks if task has bee... | 82 |
programminghorror | steintokvam | g307v9i | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Exercise: write the 'solve' function<|eor|><|sor|> void solve(Task task) {
task.completed = true;
}
done and done.<|eor|><|eols|><|endoftext|> | 62 |
programminghorror | godlychaos | g2ztjku | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Really not that bad. The excessive spacing is just preference, but isnt bad practice. The structure is eh, but really not awful.<|eor|><|sor|>I think the horror is that it checks if task has bee... | 37 |
programminghorror | neros_greb | g2zn95m | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Exercise: write the 'solve' function<|eor|><|sor|> static void solve(Task task) {
try {
task.run();
}
}<|eor|><|sor|>Lol<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | MeatyLabia | g303qzz | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>What bothers me is the use of print instead of println, so both strings are written on the same line wirhout a space.<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | neck_crow | g2zos0x | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Really not that bad. The excessive spacing is just preference, but isnt bad practice. The structure is eh, but really not awful.<|eor|><|sor|>I think the horror is that it checks if task has bee... | 25 |
programminghorror | Zanderax | g303ecp | <|sols|><|sot|>Got this ad for a programming poster and it caused me pain<|eot|><|sol|>https://imgur.com/vlwYUam<|eol|><|sor|>Exercise: write the 'solve' function<|eor|><|sor|>`bool Solve<Task>(Task task) = 0;`
Now all you have to do is implement a solve function for each subclass of task.<|eor|><|eols|><|endoftext|> | 23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.