subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | BlazeKJK | g7jht8t | <|sols|><|sot|>Found in the Windows XP source code leak<|eot|><|sol|>https://i.redd.it/r9if3kh3bxq51.png<|eol|><|sor|>*Linux*<|eor|><|eols|><|endoftext|> | 60 |
programminghorror | chylex | g7jx5s8 | <|sols|><|sot|>Found in the Windows XP source code leak<|eot|><|sol|>https://i.redd.it/r9if3kh3bxq51.png<|eol|><|sor|>Assuming that I got the correct files, the 4chan poster is disingenuous at best, but more likely those numbers are [completely fake](https://imgur.com/a/F9B7SHI) (+[previous post](https://www.reddit.com... | 57 |
programminghorror | joost00719 | g7jd9te | <|sols|><|sot|>Found in the Windows XP source code leak<|eot|><|sol|>https://i.redd.it/r9if3kh3bxq51.png<|eol|><|sor|>Sclong?<|eor|><|sor|>Schlong is another word for rooster<|eor|><|eols|><|endoftext|> | 54 |
programminghorror | deshe | hnz13g | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 1,441 |
programminghorror | deshe | fxehn6r | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 376 |
programminghorror | bdlf1729 | fxeq7vp | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 257 |
programminghorror | deshe | fxehgu8 | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 141 |
programminghorror | deshe | fxeqguu | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 116 |
programminghorror | Garrosh | fxfi08j | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 91 |
programminghorror | arth4 | fxez1xx | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 85 |
programminghorror | linuxlib | fxfhsjc | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 76 |
programminghorror | deshe | fxekh68 | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 76 |
programminghorror | arth4 | fxez4if | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 71 |
programminghorror | Fymir26 | fxf5naw | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 65 |
programminghorror | sim642 | fxfkww3 | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 63 |
programminghorror | arth4 | fxez46a | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 61 |
programminghorror | mohragk | fxejsi3 | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 54 |
programminghorror | gdmachado | fxf2eb4 | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 52 |
programminghorror | cyber2024 | fxg5zf5 | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 47 |
programminghorror | AliasWarHammer | fxep4pm | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 46 |
programminghorror | deshe | fxfi7nk | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 46 |
programminghorror | danbulant | fxftjda | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 41 |
programminghorror | deshe | fxfi3ye | <|sols|><|sot|>Friend who is taking a Python course: "I need to write a program which estimates the sqrt of a number by doing 10 steps of Newton-Raphson", Me: "no problem, you should...", Friend: "And I can't use loops or functions because we haven't learned about them yet", Me: "Give me a few minutes..."<|eot|><|sol|>... | 38 |
programminghorror | joona69 | vczmb5 | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|eols|><|endoftext|> | 1,441 |
programminghorror | Zacho40 | ichcydb | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>The numba 1 password generator on the world wide web.<|eor|><|eols|><|endoftext|> | 643 |
programminghorror | Reaper118 | ichh6p2 | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|eols|><|endoftext|> | 263 |
programminghorror | Ris-O | ici4s6q | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>This eases the impostor syndrome somewhat<|eor|><|eols|><|endoftext|> | 133 |
programminghorror | thatfool | ichloft | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>Better to use secrets.choice for passwords.
Or maybe secrets.token_urlsafe is already good enough.<|eor|><|eols|><|endoftext|> | 91 |
programminghorror | dof42 | icihzi6 | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>Honestly, the worst part is that save == y and save == n have the same behavior.<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | Sennheisenberg | icikhz8 | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>The numba 1 password generator on the world wide web.<|eor|><|sor|>Taiwan numba 1<|eor|><|eols|><|endoftext|> | 75 |
programminghorror | RouletteSensei | ichlknn | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>I prefer the code in the photo, much cleaner imo<|eor|><|eols|><|endoftext|> | 61 |
programminghorror | Basicallysteve | ici06a8 | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>pass = .join([random.choice(choices) for _ in range(40)])<|eor|><|eols|><|endoftext|> | 45 |
programminghorror | veduchyi | ici2kdm | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>I prefer the code in the photo, much cleaner imo<|eor|><|sor|>Yep, loops just make your code harder to understand<|eor|><|eols|><|endoftext|> | 45 |
programminghorror | Cold_Photograph3724 | ichsbio | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>You should compare strings using "is" operator. Pep8 violation
UPD: my bad, consufed Python with Java. Sorry<|eor|><|sor|>you sound like my IDE<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | onur_ozkan | ichqi0j | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>nomba 1, the most badass algorithm<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | nekokattt | ichy3vn | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>int(1)
angerey<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | Needleroozer | icju8ps | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>Honestly, the worst part is that save == y and save == n have the same behavior.<|eor|><|sor|>That's in the next sprint.<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | Matty_B97 | icke12b | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>Better to use secrets.choice for passwords.
Or maybe secrets.token_urlsafe is already good enough.<|eor|><|sor|>You reckon this person has heard of th... | 26 |
programminghorror | Kweldulf | ichl5c6 | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>https://stackoverflow.com/questions/41107/how-to-generate-a-random-alpha-numeric-string<|eor|><|sor|>Python has a method for that.<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | nononoko | ici1iph | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>Be the loop optimizer you want<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | LazyAssassin_ | icigv2u | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>pass = .join([random.choice(choices) for _ in range(40)])<|eor|><|sor|>My Javascript brain likes this<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | idwpan | icj30xk | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>numbas = [random.choice(choices) for i in range(40)]<|eor|><|sor|>pass = .join([random.choice(choices) for _ in range(40)])<|eor|><|sor|>Might as well just define your character set in the one-liner, too.
"".joi... | 19 |
programminghorror | MrQuizzles | iciaumh | <|sols|><|sot|>Password generator I found<|eot|><|sol|>https://i.redd.it/thzz7c6kjt591.jpg<|eol|><|sor|>https://stackoverflow.com/questions/41107/how-to-generate-a-random-alpha-numeric-string<|eor|><|sor|>I hate that there are like a dozen Apache classes dedicated to it.
Why? Just why would you bloat your framework l... | 19 |
programminghorror | wolfstaa | pvy3sz | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|eols|><|endoftext|> | 1,442 |
programminghorror | LeEliteChicken | hedkmni | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|> #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define true (bool)(rand() % 1000)
int main() {
... | 586 |
programminghorror | theCodingWombat | hed9z80 | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|eols|><|endoftext|> | 452 |
programminghorror | moonlandings | hedefhm | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>I think the horror here is defining a 255 byte array and only using 5 bytes.<|eor|><|eols|><|endoftext|> | 391 |
programminghorror | EmperorArthur | hedmnfv | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>I think the horror here is defining a 255 byte array and only using 5 bytes.<|eor|><|soopr|>Well, I kept this because before I used scanf to test some things so I needed not to ... | 190 |
programminghorror | GuybrushThreepwo0d | hee9gb8 | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|> #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define true (bool)(rand() % 1000)
int main() {
... | 175 |
programminghorror | wolfstaa | hedc3ng | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|soopr|>Seems very convenient for a readable code, I'm going to test this immediately<|eoopr|><|eols|><|endoftext|> | 145 |
programminghorror | AthanatosN5 | hedd08x | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>~~This works because "djfj" translates to a null terminated C-style string. The memory layout would be : 'd' 'j' 'f' 'j' (char)0 .~~
~~By using int a\[255\] you're allocating 2... | 120 |
programminghorror | MereInterest | hef6qjt | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|> #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define true (bool)(rand() % 1000)
int main() {
... | 111 |
programminghorror | StandardN00b | heeultn | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|> #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define true (bool)(rand() % 1000)
int main() {
... | 103 |
programminghorror | wolfstaa | heden6w | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>I think the horror here is defining a 255 byte array and only using 5 bytes.<|eor|><|soopr|>Well, I kept this because before I used scanf to test some things so I needed not to ... | 89 |
programminghorror | bistr-o-math | hedbttv | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|>Try
undefined = true;
in JavaScript<|eor|><|eols|><|endoftext|> | 84 |
programminghorror | bistr-o-math | hedc9v2 | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Why shouldnt this be working?<|eor|><|soopr|>Well I'm learning C so I'm not very used to this preprocessor thing<|eoopr|><|sor|>Welcome to a new language, then. C is kinda you a... | 67 |
programminghorror | arousedboat | hedez45 | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>~~This works because "djfj" translates to a null terminated C-style string. The memory layout would be : 'd' 'j' 'f' 'j' (char)0 .~~
~~By using int a\[255\] you're allocating 2... | 54 |
programminghorror | wolfstaa | hedeg6p | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>~~This works because "djfj" translates to a null terminated C-style string. The memory layout would be : 'd' 'j' 'f' 'j' (char)0 .~~
~~By using int a\[255\] you're allocating 2... | 39 |
programminghorror | wolfstaa | hedfa7k | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>~~This works because "djfj" translates to a null terminated C-style string. The memory layout would be : 'd' 'j' 'f' 'j' (char)0 .~~
~~By using int a\[255\] you're allocating 2... | 33 |
programminghorror | jackk445 | hedojod | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|>https://gist.github.com/aras-p/6224951<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | arousedboat | hedfedq | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>~~This works because "djfj" translates to a null terminated C-style string. The memory layout would be : 'd' 'j' 'f' 'j' (char)0 .~~
~~By using int a\[255\] you're allocating 2... | 31 |
programminghorror | mszegedy | heemwk7 | <|sols|><|sot|>So I'm learnign C and I'm amazed at the fact that this is working<|eot|><|sol|>https://i.redd.it/4c1xiwfksvp71.png<|eol|><|sor|>Try define true false ;)<|eor|><|sor|>https://gist.github.com/aras-p/6224951<|eor|><|sor|>a lot of these are pretty evil but i'm still a little underwhelmed. if i'm gonna read a... | 29 |
programminghorror | Auxilor | zdq5n5 | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|eols|><|endoftext|> | 1,442 |
programminghorror | CodeByNumbers | iz2sxvh | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>TIL that 10 is random, zero is not, and numbers in between _might_ be random.<|eor|><|eols|><|endoftext|> | 530 |
programminghorror | dan1326 | iz2xo1p | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>//Don't know why but changing this breaks prod<|eor|><|eols|><|endoftext|> | 399 |
programminghorror | kristallnachte | iz2vp6y | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>It's very hard to tell what this function is supposed to do.
It's a function to randomly return true or false and the size is the 10s of percentage likelihood ... | 324 |
programminghorror | CAPSLOCK_USERNAME | iz2y14m | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>It's very hard to tell what this function is supposed to do.
It's a function to randomly return true or false and the size is the 10s of percentage likelihood ... | 257 |
programminghorror | itemluminouswadison | iz3oz9v | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>look if it was 2 lines long, i'd reject the PR
but after 20 lines it's an auto approve from me
looks good; ship it<|eor|><|eols|><|endoftext|> | 123 |
programminghorror | AFlyingYetOddCat | iz387oc | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>TIL that 10 is random, zero is not, and numbers in between _might_ be random.<|eor|><|sor|>*all numbers >= 10 are random<|eor|><|eols|><|endoftext|> | 112 |
programminghorror | MisterBicorniclopse | iz2ye9g | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>Literally nsfw<|eor|><|eols|><|endoftext|> | 83 |
programminghorror | Konkichi21 | iz2t7oi | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Garbage in, garbage out.<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | AutBoy69 | iz2zjy0 | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>So basically
return (new Random()).nextFloat() <= probability;<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | TheBrainStone | iz3ch4z | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>It's very hard to tell what this function is supposed to do.
It's a function to randomly return true or false and the size is the 10s of percentage likelihood ... | 63 |
programminghorror | Tasgall | iz3wspv | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>look if it was 2 lines long, i'd reject the PR
but after 20 lines it's an auto approve from me
looks good; ship it<|eor|><|sor|>This is one of the people Elon ... | 62 |
programminghorror | namelessmasses | iz3nx0p | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>TIL that 10 is random, zero is not, and numbers in between _might_ be random.<|eor|><|sor|>*all numbers >= 10 are random<|eor|><|sor|>... Because I ran out of di... | 56 |
programminghorror | FluffyToughy | iz3qp3r | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>[Relevant xkcd](https://xkcd.com/221/)<|eor|><|eols|><|endoftext|> | 50 |
programminghorror | elveszett | iz43psp | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>It's very hard to tell what this function is supposed to do.
It's a function to randomly return true or false and the size is the 10s of percentage likelihood ... | 49 |
programminghorror | kkjdroid | iz46ywu | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>It's very hard to tell what this function is supposed to do.
It's a function to randomly return true or false and the size is the 10s of percentage likelihood ... | 47 |
programminghorror | rakebackrainmaker | iz32vbf | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>if this is a kid straight outta college i kinda feel bad that his code is just screenshotted and made fun of from whatever company he applied to. ive had teacher... | 37 |
programminghorror | svick | iz42d5v | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>It's very hard to tell what this function is supposed to do.
It's a function to randomly return true or false and the size is the 10s of percentage likelihood ... | 37 |
programminghorror | MsPaganPoetry | iz2w8xm | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>I have no idea what that does, but at this point, I'm afraid to ask<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | saturnUniqueUsername | iz37lmh | <|sols|><|sot|>Someone submitted a GitHub repo as an example of their work, containing this gem:<|eot|><|sol|>https://i.redd.it/yl8dmo0be64a1.png<|eol|><|sor|>if this is a kid straight outta college i kinda feel bad that his code is just screenshotted and made fun of from whatever company he applied to. ive had teacher... | 30 |
programminghorror | SwordInStone | np0ksy | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|eols|><|endoftext|> | 1,437 |
programminghorror | Infomania-Declivity | h02qwbe | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|eols|><|endoftext|> | 435 |
programminghorror | PM-for-bad-sexting | h02rxjq | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>The first actions I do upon a new install is change the language in Exc... | 195 |
programminghorror | GlebRyabov | h02oxal | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>I tried to 'code' in Excel last summer, [here's](https://imgur.com/a/D3qmc52) the worst shit I wrote. 1.5k characters for the purpose of turning RGB to hex. And yes, it's in Russian.
Edit: found another gem, a 118-li... | 134 |
programminghorror | Friend-Of-Fish | h034o78 | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>The first actions I do upon a new install is change the language in Exc... | 88 |
programminghorror | mr3en | h0336rb | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>The first actions I do upon a new install is change the language in Exc... | 80 |
programminghorror | anti_yoda_bot | h02n29j | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>My man it is almost unreadable<|eor|><|sor|>[deleted]<|eor|><|sor|>The orignal anti yoda bot may have given up but I too hate you Fake Yoda Bot. I won't stop fighting.
-On behalf of u/coderunner3<|eo... | 69 |
programminghorror | Antrikshy | h056hqr | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>My man it is almost unreadable<|eor|><|sor|>> almost<|eor|><|eols|><|endoftext|> | 56 |
programminghorror | Berserker-Beast | h02xw02 | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>I tried to 'code' in Excel last summer, [here's](https://imgur.com/a/D3qmc52) the worst shit I wrote. 1.5k characters for the purpose of turning RGB to hex. And yes, it's in Russian.
Edit: found another gem, a 118-li... | 55 |
programminghorror | Eza0o07 | h02xebn | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>In my experience (may not apply to all situations):
* Use named cells to help it be readable... not that it would help here
* Split it up into multiple (again, named) cells
* Throw Excel in the bin and use a real pro... | 53 |
programminghorror | Owlstorm | h02s067 | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>Do you often work in cross-language teams?
That sounds horrific.
The ... | 49 |
programminghorror | Nothing-But-Lies | h05dxjj | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>My man it is almost unreadable<|eor|><|sor|>It's almost worse than a regex<|eor|><|sor|>Regex isn't that bad after injecting amphetamines<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | DC38x | h02xqht | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>Do you often work in cross-language teams?
That sounds horrific.
The ... | 45 |
programminghorror | revrenlove | h02y1wh | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>Do you often work in cross-language teams?
That sounds horrific.
The ... | 43 |
programminghorror | No-Patient | h05b8g0 | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>My man it is almost unreadable<|eor|><|sor|>It's almost worse than a regex<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | revrenlove | h02w6mx | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>Do you often work in cross-language teams?
That sounds horrific.
The ... | 35 |
programminghorror | GlebRyabov | h02y72v | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>I tried to 'code' in Excel last summer, [here's](https://imgur.com/a/D3qmc52) the worst shit I wrote. 1.5k characters for the purpose of turning RGB to hex. And yes, it's in Russian.
Edit: found another gem, a 118-li... | 35 |
programminghorror | Infomania-Declivity | h03b50d | <|sols|><|sot|>My friend's Excel formula<|eot|><|sol|>https://i.redd.it/amswzvkmrf271.png<|eol|><|sor|>Best part of excel formulas is that they are unique to the language and country of the user. Sharing formula snippets is impossible.<|eor|><|sor|>Excel is the worst possible WYSIWYG<|eor|><|sor|>WYSI**N**WYG.<|eor|><|... | 34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.