subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | dr-moron | hwofows | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If this is a new programming students first attempt at a sorting algorithm, its not bad. The behavior is similar to insert-sort and has runtime O(n^2). There are much better sorting algorithms, but you cant e... | 620 |
programminghorror | bruderjakob17 | hwo9jub | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If you are in a fundamental programming course, this is not bad. Actually, we had a course in which we only implemented sorting algorithms for months.
Definitely useful to have it done for yourself once, lat... | 417 |
programminghorror | BigFuckingCringe | hwoovrv | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If this is a new programming students first attempt at a sorting algorithm, its not bad. The behavior is similar to insert-sort and has runtime O(n^2). There are much better sorting algorithms, but you cant e... | 226 |
programminghorror | 00PT | hwolj0b | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>This is simple, understandable, and well commented. There are only a couple of bad things in the implementation and the only other concern is performance, which doesn't really matter for this use case. Defini... | 218 |
programminghorror | Naphthali | hwoea67 | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If you are in a fundamental programming course, this is not bad. Actually, we had a course in which we only implemented sorting algorithms for months.
Definitely useful to have it done for yourself once, lat... | 73 |
programminghorror | JuhaJGam3R | hwosqrf | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If you are in a fundamental programming course, this is not bad. Actually, we had a course in which we only implemented sorting algorithms for months.
Definitely useful to have it done for yourself once, lat... | 69 |
programminghorror | HobblingCobbler | hwo4rbd | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>new_values = sorted(values)<|eor|><|eols|><|endoftext|> | 67 |
programminghorror | flying_spaguetti | hwpeiy0 | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>This is simple, understandable, and well commented. There are only a couple of bad things in the implementation and the only other concern is performance, which doesn't really matter for this use case. Defini... | 64 |
programminghorror | Matir | hwopill | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If this is a new programming students first attempt at a sorting algorithm, its not bad. The behavior is similar to insert-sort and has runtime O(n^2). There are much better sorting algorithms, but you cant e... | 64 |
programminghorror | Forgemaster00 | hwogr19 | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If you are in a fundamental programming course, this is not bad. Actually, we had a course in which we only implemented sorting algorithms for months.
Definitely useful to have it done for yourself once, lat... | 63 |
programminghorror | michal_s87 | hwo80ar | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>LGTM<|eor|><|eols|><|endoftext|> | 44 |
programminghorror | ketralnis | hwomjtg | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If you are in a fundamental programming course, this is not bad. Actually, we had a course in which we only implemented sorting algorithms for months.
Definitely useful to have it done for yourself once, lat... | 44 |
programminghorror | frostixv | hwpht0n | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>This is simple, understandable, and well commented. There are only a couple of bad things in the implementation and the only other concern is performance, which doesn't really matter for this use case. Defini... | 42 |
programminghorror | Lifeless732 | hwob8oi | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>The worst part is the range(len(values_temp)) instead of just using values_temp<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | chiru9670 | hwoxdfg | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>The worst part is the range(len(values_temp)) instead of just using values_temp<|eor|><|sor|>I dont understand what you mean here. <|eor|><|sor|>In Python you can iterate through the list:
for value in value... | 33 |
programminghorror | BigFuckingCringe | hwoqkr1 | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>This is pretty normal implementation of selection sort even if it is little ineffective (item searched twice by min and remove, using for without using iterated variable etc)
I can't tell more, i don't know ... | 27 |
programminghorror | Matir | hwqllhc | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If this is a new programming students first attempt at a sorting algorithm, its not bad. The behavior is similar to insert-sort and has runtime O(n^2). There are much better sorting algorithms, but you cant e... | 27 |
programminghorror | dragonlover02 | hwogg9o | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>The worst part is the range(len(values_temp)) instead of just using values_temp<|eor|><|sor|>'for \_ in range(len(values\_temp))' hurts my eyes.. if you're doing something like that you should really re-evalu... | 25 |
programminghorror | sainglend | hwo3l6y | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>Looks good!<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | Karl_the_stingray | hwoxk4v | <|sols|><|sot|>The task was to just sort the list<|eot|><|sol|>https://i.redd.it/gqr2oz30sfh81.jpg<|eol|><|sor|>If you are in a fundamental programming course, this is not bad. Actually, we had a course in which we only implemented sorting algorithms for months.
Definitely useful to have it done for yourself once, lat... | 19 |
programminghorror | supersharp | ngkhpw | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|eols|><|endoftext|> | 793 |
programminghorror | Dry-Diamond-8904 | gyrumoz | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 131 |
programminghorror | supersharp | gysf12q | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Apparently, it doesn't mean what I thought it did. The word I was looking for was "instance", which in this case refers to a member attribute or method belonging to every instance of a... | 109 |
programminghorror | inthemindofadogg | gyrd841 | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|eols|><|endoftext|> | 107 |
programminghorror | Manny_Sunday | gys1x8e | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>There's no overridden abstract method/class, what does concrete have to do with this post? I am confusion<|eor|><|eols|><|endoftext|> | 103 |
programminghorror | Ahajha1177 | gyrt4yg | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 94 |
programminghorror | m33b_ | gyrz1um | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 80 |
programminghorror | LimitedWard | gysg6lq | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>What about this is horror? It's dumb for sure, but not even close to the worst stuff I've seen on this sub.<|eor|><|eols|><|endoftext|> | 78 |
programminghorror | ZedTT | gys45qc | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>There's no overridden abstract method/class, what does concrete have to do with this post? I am confusion<|eor|><|sor|>> I am confusion
So is [op](https://www.reddit.com/r/programminghorror/comments/ngkhpw/comment/... | 68 |
programminghorror | supersharp | gys3ya3 | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 41 |
programminghorror | supersharp | gyseoaf | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>There's no overridden abstract method/class, what does concrete have to do with this post? I am confusion<|eor|><|soopr|>So was I apparently. Seems the word I should've used is "instance".<|eoopr|><|eols|><|endoftex... | 34 |
programminghorror | Darktalesjr | gysm0u3 | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 31 |
programminghorror | Ahajha1177 | gys21lu | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 21 |
programminghorror | ekolis | gysgbg4 | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Could be worse. The static getter could instead return the length of a Platonic ideal square, which has no bearing on any actual physical squares that might exist.<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | supersharp | gyrkl3h | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|eols|><|endoftext|> | 16 |
programminghorror | fecal_brunch | gysw8bx | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|sor|>I've sometimes heard it to mean implemented, as opposed to an interface or abstract method declaration.<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | ThePharros | gyu68z4 | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>What about this is horror? It's dumb for sure, but not even close to the worst stuff I've seen on this sub.<|eor|><|soopr|>It's just something absurd I came up with. I wanted to post it on r/badcode, but some stuff ... | 13 |
programminghorror | Terrain2 | gytkri0 | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 12 |
programminghorror | nmwh917 | gytzirl | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>There's no overridden abstract method/class, what does concrete have to do with this post? I am confusion<|eor|><|soopr|>So was I apparently. Seems the word I should've used is "instance".<|eoopr|><|sor|>The program... | 9 |
programminghorror | supersharp | gysh2de | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Could be worse. The static getter could instead return the length of a Platonic ideal square, which has no bearing on any actual physical squares that might exist.<|eor|><|soopr|>That would actually be hilarious, si... | 7 |
programminghorror | Eza0o07 | gyspu9t | <|sols|><|sot|>*Un-concrete's your method*<|eot|><|sol|>https://i.redd.it/hwtua96kv5071.png<|eol|><|sor|>Whats concrete?<|eor|><|soopr|>Good question! Before I answer that, how much do you already know about classes, objects, and such?<|eoopr|><|sor|>Not the person who asked, but I took a whole course on OOP and never ... | 7 |
programminghorror | huzi8t9 | rsr5a0 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|eols|><|endoftext|> | 799 |
programminghorror | hazki | hqo5oln | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|eols|><|endoftext|> | 382 |
programminghorror | CodeLobe | hqob8ks | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|sor|>I was born on the `NaN`rd of `FAIL!!` `NaN`<|eor|><|eols|><|endoftext|> | 203 |
programminghorror | huzi8t9 | hqo7w1z | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Does anyone understand what calc is?<|eor|><|soopr|>It's used to generate a "daily password." calc is then converted to a string, then take the last 4 digits and use that as a daily password. It's horrible,... | 130 |
programminghorror | assfartgamerpoop | hqoantz | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Does anyone understand what calc is?<|eor|><|soopr|>It's used to generate a "daily password." calc is then converted to a string, then take the last 4 digits and use that as a daily password. It's horrible,... | 95 |
programminghorror | ryanhasmanners | hqoav2h | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Just have an array Months, and do mth = Months[mthx-1]<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | huzi8t9 | hqo5q50 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Im not sure i see the horror...<|eor|><|soopr|>Maybe it's just me then; personally, I'd just use `DateTime.Now.Month` instead of grabbing it from a string to try parse it. Then there's also doing `DateTime.... | 62 |
programminghorror | emilsteen | hqo7l23 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Does anyone understand what calc is?<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | TinyBreadBigMouth | hqoq2w1 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|> DateTime today = DateTime.Today;
txt_todayDate.Text = today.ToString("dd MMM yyyy");
double calc = (today.Day * today.Month * today.Year * 103) / 13.0;<|eor|><|eols|><|endoftext|> | 41 |
programminghorror | Der_Wisch | hqocafe | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|sor|>I was born on the `NaN`rd of `FAIL!!` `NaN`<|eor|><|soopr|>NaN in C#? It'd be 0 FAIL!! 0<|eoopr|><|sor|>Nope we do have a correct representation for NaN in c#
... | 40 |
programminghorror | huzi8t9 | hqobluk | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Just have an array Months, and do mth = Months[mthx-1]<|eor|><|soopr|>Good, old reliable!<|eoopr|><|eols|><|endoftext|> | 35 |
programminghorror | huzi8t9 | hqobk2o | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|sor|>I was born on the `NaN`rd of `FAIL!!` `NaN`<|eor|><|soopr|>NaN in C#? It'd be 0 FAIL!! 0<|eoopr|><|eols|><|endoftext|> | 33 |
programminghorror | Statharas | hqoviqb | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Default: throw new Exception("Use a gregorian calendar, you antiquated freak") ;<|eor|><|eols|><|endoftext|> | 26 |
programminghorror | Voltra_Neo | hqo7d91 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Im not sure i see the horror...<|eor|><|sor|>* output parameters
* fail string instead of any kind of error handling
* huge ass switch that might be better as a table lookup
* not trivially localizable if t... | 25 |
programminghorror | TGX03 | hqo7984 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|sor|>Don't tell this man about exceptions<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | nephallux | hqpqk69 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|> DateTime today = DateTime.Today;
txt_todayDate.Text = today.ToString("dd MMM yyyy");
double calc = (today.Day * today.Month * today.Year * 103) / 13.0;<|eor|><|sor|>that calc variable is still h... | 16 |
programminghorror | Der_Wisch | hqocxo2 | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|sor|>I was born on the `NaN`rd of `FAIL!!` `NaN`<|eor|><|soopr|>NaN in C#? It'd be 0 FAIL!! 0<|eoopr|><|sor|>Nope we do have a correct representation for NaN in c#
... | 16 |
programminghorror | birdman9k | hqp15jo | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Ah yes, my favorite month FAIL!!<|eor|><|sor|>Which I'm pretty sure is gonna happen when they are running in a locale where DateTime.ToString returns MM/dd/yyyy.
Eg. 01/15/2022 (Jan 15 2022) is going to se... | 15 |
programminghorror | birdman9k | hqp1k0z | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Does anyone understand what calc is?<|eor|><|soopr|>It's used to generate a "daily password." calc is then converted to a string, then take the last 4 digits and use that as a daily password. It's horrible,... | 15 |
programminghorror | forzamotorsportsucks | hqp9b6d | <|sols|><|sot|>I mean, there's a long way around...<|eot|><|sol|>https://i.redd.it/60a5kjmrvu881.png<|eol|><|sor|>Does anyone understand what calc is?<|eor|><|soopr|>It's used to generate a "daily password." calc is then converted to a string, then take the last 4 digits and use that as a daily password. It's horrible,... | 14 |
programminghorror | CupCakeArmy | hru7d4 | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|eols|><|endoftext|> | 789 |
programminghorror | dafterminecrafter | fy6vxp5 | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|eols|><|endoftext|> | 58 |
programminghorror | marastinoc | fy735jm | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|sor|>I thought it was VB<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | Linguaphonia | fy7vble | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>See, Bob! I TOLD you that some day nonzero will mean false and zero will mean true! You all LAUGHED at me when I told you that the way numbers work might change. But now my code is future proof for all ETERNIT... | 31 |
programminghorror | Ruoter | fy70p6d | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | staletic | fy832dk | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>Why is this tagged "python"?<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | dafterminecrafter | fy7cbjb | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|sor|>I dont know, they tag says python.<|eor|><|eols|><|endoftext|> | 14 |
programminghorror | CupCakeArmy | fy880fe | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>Why is this tagged "python"?<|eor|><|soopr|>Because I failed. It's actually Xojo<|eoopr|><|eols|><|endoftext|> | 12 |
programminghorror | CupCakeArmy | fy88fjx | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|sor|>I thought it was VB<|eor|><|soopr|>You are right. I mixed up the tag. It's Xojo, which is basica... | 11 |
programminghorror | iamasuitama | fy86pnc | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>See, Bob! I TOLD you that some day nonzero will mean false and zero will mean true! You all LAUGHED at me when I told you that the way numbers work might change. But now my code is future proof for all ETERNIT... | 10 |
programminghorror | BlackDog2017 | fy85mmm | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>Plot twist: True is a variable, set to false.<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | TerrorBite | fy7vw0m | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|sor|>That looks like VB to me, and the syntax isn't right for Python (which would be `return True if ... | 9 |
programminghorror | armchairwarrior12345 | fy7myoa | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>You had one job<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | Windows-Sucks | fy7tysi | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>See, Bob! I TOLD you that some day nonzero will mean false and zero will mean true! You all LAUGHED at me when I told you that the way numbers work might change. But now my code is future proof for all ETERNIT... | 7 |
programminghorror | Lewistrick | fy7ys29 | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>`return not val`<|eor|><|eols|><|endoftext|> | 6 |
programminghorror | TheUnSub99 | fy80jxu | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>See, Bob! I TOLD you that some day nonzero will mean false and zero will mean true! You all LAUGHED at me when I told you that the way numbers work might change. But now my code is future proof for all ETERNIT... | 5 |
programminghorror | TheUnSub99 | fy7zw6q | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|sor|>That looks like VB to me, and the syntax isn't right for Python (which would be `return True if ... | 5 |
programminghorror | TerrorBite | fy810o1 | <|sols|><|sot|>Ah yes. Love me some redundacncy.<|eot|><|sol|>https://i.redd.it/nz2riev7o2b51.jpg<|eol|><|sor|>val = 0 or val == 0<|eor|><|sor|>The `as` makes me feel like this is SQL so a single `=` is correct<|eor|><|sor|>That looks like VB to me, and the syntax isn't right for Python (which would be `return True if ... | 5 |
programminghorror | colouredmirrorball | 13jwjws | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|eols|><|endoftext|> | 791 |
programminghorror | iamghostling | jkhik5z | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Go touch grass, software development edition.<|eor|><|eols|><|endoftext|> | 287 |
programminghorror | whc2001 | jkhoiwy | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>This is the old Arduino IDE right? Remember once being bored and clicked the new file button all the way through and that pop up. Got a good laugh.<|eor|>... | 136 |
programminghorror | colouredmirrorball | jkhonk2 | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>This is the old Arduino IDE right? Remember once being bored and clicked the new file button all the way through and that pop up. Got a good laugh.<|eor|>... | 101 |
programminghorror | kapaciosrota | jkiq6ue | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Go touch grass, software development edition.<|eor|><|sor|> $ go touch grass
go touch: unknown command
Run 'go help' for usage.<|eor|><|eols|><... | 88 |
programminghorror | vasarmilan | jkhrlpr | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>I think this is more of a gimmick, you probably aren't supposed to add 26 sketches without renaming any of them. The messages are also funny<|eor|><|eols|... | 83 |
programminghorror | colouredmirrorball | jki2fmv | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>I think this is more of a gimmick, you probably aren't supposed to add 26 sketches without renaming any of them. The messages are also funny<|eor|><|soopr... | 48 |
programminghorror | beeteedee | jkiwazj | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Programmers write a meaningful and understandable error message instead of some cutesy nonsense challenge (impossible)<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | GanoXD | jki2o5d | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>I think this is more of a gimmick, you probably aren't supposed to add 26 sketches without renaming any of them. The messages are also funny<|eor|><|soopr... | 22 |
programminghorror | whc2001 | jkhr6iv | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>This is the old Arduino IDE right? Remember once being bored and clicked the new file button all the way through and that pop up. Got a good laugh.<|eor|>... | 19 |
programminghorror | colouredmirrorball | jkhpq41 | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Assuming **break time= False** beforehand
Then it'll run smoothly.
One tip: return null is not needed (no one wants a null response these days).
You can... | 18 |
programminghorror | rackmountme | jkk7oly | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Go touch grass, software development edition.<|eor|><|sor|> $ go touch grass
go touch: unknown command
Run 'go help' for usage.<|eor|><|sor|>`a... | 18 |
programminghorror | CptMisterNibbles | jkkh5w5 | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Programmers write a meaningful and understandable error message instead of some cutesy nonsense challenge (impossible)<|eor|><|sor|>Ill take cutesy over i... | 15 |
programminghorror | SergeyLuka | jkkqlmw | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Go touch grass, software development edition.<|eor|><|sor|> $ go touch grass
go touch: unknown command
Run 'go help' for usage.<|eor|><|sor|>`a... | 14 |
programminghorror | gjwklgwiovmw | jkibjnm | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Assuming **break time= False** beforehand
Then it'll run smoothly.
One tip: return null is not needed (no one wants a null response these days).
You can... | 8 |
programminghorror | netkenny | jkjr0bv | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Assuming **break time= False** beforehand
Then it'll run smoothly.
One tip: return null is not needed (no one wants a null response these days).
You can... | 7 |
programminghorror | Zedzith | jkjtr7t | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>def evaluate\_code(code):
try:
exec(code)
return True
except Exception:
return False
user\_code = input("Enter your code: ")
... | 5 |
programminghorror | dark_enough_to_dance | jkjyuvi | <|sols|><|sot|>Instead of coming up with a new file naming scheme, tell the user to go outside instead.<|eot|><|sol|>https://i.redd.it/a7xsf0pqzc0b1.png<|eol|><|sor|>Go touch grass, software development edition.<|eor|><|sor|>Can't wait to add this to mess with my professor<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | szymat | vlephu | <|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|eols|><|endoftext|> | 791 |
programminghorror | szymat | idupgnf | <|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|eols|><|endoftext|> | 237 |
programminghorror | szymat | iduslak | <|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Am I being a brainlet or does this decay to bubble sort with extra steps<|eor|><|soopr|>Yup, recursive bubble sort. I even tested it on some large arrays, true, its memory optimized but when it... | 227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.