subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
atomitac
hmvvyj0
<|sols|><|sot|>My Top 5 albums<|eot|><|sol|>https://i.redd.it/i3rw3i9q4w281.jpg<|eol|><|sor|>Syntax aside the logic does not even follow Wouldn't it be if GROAT == "Eminem":? What's that dudes goal?<|eor|><|sor|>I presumed there was an Eminem = input("What is Eminem?\n") above this<|eor|><|sor|>User enters "Greatest ...
8
programminghorror
tmaxElectronics
kce3lp
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|eols|><|endoftext|>
1,473
programminghorror
DHALL17
gfpw8bd
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
297
programminghorror
cyborg1811m
gfpxin0
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
130
programminghorror
FallenWarrior2k
gfrzva3
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
81
programminghorror
--Lycaon--
gfqk7jk
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>This person needs git. Everyone needs git. Git is the best thing ever.<|eor|><|eols|><|endoftext|>
65
programminghorror
TheSchred
gfpvduc
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Just the fact that it's using Swing already makes me want to puke<|eor|><|eols|><|endoftext|>
53
programminghorror
stormfield
gfr5lxa
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>This person needs git. Everyone needs git. Git is the best thing ever.<|eor|><|sor|>The biggest flaw IMO with git has nothing to do with how it works (whi...
49
programminghorror
mustang__1
gfs14bu
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
48
programminghorror
alexistdk
gfqc7um
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
45
programminghorror
DHALL17
gfqf5r3
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
44
programminghorror
sudomeacat
gfr8yhc
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>This person needs git. Everyone needs git. Git is the best thing ever.<|eor|><|sor|>The biggest flaw IMO with git has nothing to do with how it works (whi...
39
programminghorror
stormfield
gfrb4ht
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>This person needs git. Everyone needs git. Git is the best thing ever.<|eor|><|sor|>The biggest flaw IMO with git has nothing to do with how it works (whi...
31
programminghorror
waterton76
gfq964d
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Never know when you might need to remember how bad you used to be<|eor|><|eols|><|endoftext|>
24
programminghorror
stormfield
gfs4ei1
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>This person needs git. Everyone needs git. Git is the best thing ever.<|eor|><|sor|>The biggest flaw IMO with git has nothing to do with how it works (whi...
24
programminghorror
FallenWarrior2k
gfs28x6
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
21
programminghorror
alexistdk
gfqhrg7
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>Thats how it is at the company I work for. No git is used at all and the code is just set up in different environments for testing development and prod. I...
16
programminghorror
schrdingers_squirrel
gfqqpur
<|sols|><|sot|>Found this gem today... There are around 1000 lines of old code commented out after this<|eot|><|sol|>https://i.redd.it/ybxtbvhtjz461.jpg<|eol|><|sor|>if only there was a system that would allow you to keep old versions of your code in a convenient and consistent manner.<|eor|><|eols|><|endoftext|>
15
programminghorror
AlexMax
110ighf
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|eols|><|endoftext|>
1,477
programminghorror
AlexMax
j890bmz
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
556
programminghorror
Farsyte
j897hkl
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
434
programminghorror
Julian12214YT
j89ljnu
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>[object Object] is lookin pretty tame now huh<|eor|><|eols|><|endoftext|>
208
programminghorror
ovr9000storks
j89it5d
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
180
programminghorror
KlzXS
j8bibsu
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
89
programminghorror
AlexMax
j89jdpr
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>I'm not a c/c++ programmer, so... is there a good reason to prefer clang over gcc?<|eor|><|soopr|>Honestly? Personal preference. It used to be that clang compiled faster while GCC ga...
75
programminghorror
tangerinelion
j89nptj
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
72
programminghorror
nivlark
j89xvfx
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
53
programminghorror
ApplePieCrust2122
j892vpc
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>how did you make your cat like this?<|eor|><|sor|>I think they have aliased the bat util. https://github.com/sharkdp/bat<|eor|><|eols|><|endoftext|>
52
programminghorror
Disc0_nnected
j8c25uq
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>[object Object] is lookin pretty tame now huh<|eor|><|sor|>Suddenly multiplying a string by an object doesn't seem so absurd...<|eor|><|eols|><|endoftext|>
50
programminghorror
--Satan--
j8a18s9
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
50
programminghorror
Plokil_
j892dss
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>how did you make your cat like this?<|eor|><|eols|><|endoftext|>
48
programminghorror
orangeoliviero
j8952uh
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
48
programminghorror
scirc
j89d25b
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>Buggy compiler? Which version of clang++ does this?<|eor|><|sor|>Not a bug. The code's behavior is undefined. Infinite loops without side effects violate the C++ specification as it is...
48
programminghorror
scirc
j89bi2j
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>Buggy compiler? Which version of clang++ does this?<|eor|><|sor|>Not a bug. The code's behavior is undefined. Infinite loops without side effects violate the C++ specification as it is...
38
programminghorror
pelegs
j8980hr
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>I'm not a c/c++ programmer, so... is there a good reason to prefer clang over gcc?<|eor|><|eols|><|endoftext|>
37
programminghorror
fuj1n
j8a9swp
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
37
programminghorror
--Satan--
j8bczh2
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
35
programminghorror
scirc
j89e4m2
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|sor|>Buggy compiler? Which version of clang++ does this?<|eor|><|sor|>Not a bug. The code's behavior is undefined. Infinite loops without side effects violate the C++ specification as it is...
32
programminghorror
Nytonial
j893383
<|sols|><|sot|>Oh, you thought that function was unreachable?<|eot|><|sol|>https://discuss.systems/@dev/109831912507817260<|eol|><|soopr|>I can't take credit for either picture, I found both at the [linked post](https://discuss.systems/@dev/109831912507817260). The reason why this code behaves the way it does is becau...
30
programminghorror
Bob-The-One
n92a2a
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|eols|><|endoftext|>
1,473
programminghorror
gintaras159753
gxln41h
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>I mean.... He's not wrong<|eor|><|eols|><|endoftext|>
299
programminghorror
schwester
gxlplnf
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|> *In order to understand recursion*, one must first understand recursion<|eor|><|eols|><|endoftext|>
299
programminghorror
Bob-The-One
gxlwcg5
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>So he commented on two issues at the same time to point to the other issue. That's not how you link issues, Alex.<|eor|><|soopr|>He just invented a new way to get rid of issues you don't feel like fixing: make two issues, mark both ...
173
programminghorror
OneTrueKingOfOOO
gxly0c8
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>*Issue closed, marked as duplicate* *Issue closed, marked as duplicate*<|eor|><|eols|><|endoftext|>
122
programminghorror
DrMaxwellEdison
gxltzti
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>So he commented on two issues at the same time to point to the other issue. That's not how you link issues, Alex.<|eor|><|eols|><|endoftext|>
106
programminghorror
carcigenicate
gxlqun8
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>Alex Miller is usually one of the best sources you can have. He must have too much going on.<|eor|><|eols|><|endoftext|>
53
programminghorror
Terrain2
gxlyr28
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|> *In order to understand recursion*, one must first understand recursion<|eor|><|sor|>And in order understand recursion, one must first understand recursion<|eor|><|sor|>In order to understand recursion, one must first understand rec...
52
programminghorror
Terrain2
gxlrmoa
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|> *In order to understand recursion*, one must first understand recursion<|eor|><|sor|>And in order understand recursion, one must first understand recursion<|eor|><|eols|><|endoftext|>
51
programminghorror
inconvenient_walrus_
gxlntvc
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>recursion<|eor|><|eols|><|endoftext|>
44
programminghorror
DrMaxwellEdison
gxmcqib
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>So he commented on two issues at the same time to point to the other issue. That's not how you link issues, Alex.<|eor|><|sor|>Why not?<|eor|><|sor|>Because Jira has a literal [linking feature](https://support.atlassian.com/jira-sof...
43
programminghorror
VisibleSignificance
gxmilt6
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>*Issue closed, marked as duplicate* *Issue closed, marked as duplicate*<|eor|><|sor|>How many task trackers would actually do a check when closing "A because it duplicates B" and refuse if B was closed because "B duplicates A"? Not ...
36
programminghorror
Dragenby
gxlxj5t
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>I actually have [this kind of problem](https://www.reddit.com/r/programminghorror/comments/n92a2a/same_problem/gxlxj5t/?utm_source=reddit&utm_medium=web2x&context=3)<|eor|><|eols|><|endoftext|>
31
programminghorror
CaydendW
gxltrdn
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|> *In order to understand recursion*, one must first understand recursion<|eor|><|sor|>And in order understand recursion, one must first understand recursion<|eor|><|sor|>In order to understand recursion, one must first understand rec...
27
programminghorror
mushr0om
gxlotl9
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>recursion<|eor|><|sor|>The last link is probably to stack overflow<|eor|><|eols|><|endoftext|>
19
programminghorror
PQCraft
gxlx2vf
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|> *In order to understand recursion*, one must first understand recursion<|eor|><|sor|>And in order understand recursion, one must first understand recursion<|eor|><|sor|>In order to understand recursion, one must first understand rec...
18
programminghorror
VisibleSignificance
gxmhxyk
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>So he commented on two issues at the same time to point to the other issue. That's not how you link issues, Alex.<|eor|><|sor|>Why not?<|eor|><|sor|>Because Jira has a literal [linking feature](https://support.atlassian.com/jira-sof...
13
programminghorror
monopolyman900
gxmicfg
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>Pretty sure he did this on purpose - look at the timestamp. I've done this before just so that when I go back to look at an issue a year or two later I have that much more context.<|eor|><|eols|><|endoftext|>
11
programminghorror
Septias
gxlvze4
<|sols|><|sot|>same problem.<|eot|><|sol|>https://v.redd.it/yt6oe2q54ay61<|eol|><|sor|>Error: max recursion depth reached<|eor|><|eols|><|endoftext|>
9
programminghorror
Iain05
k3e4l8
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|eols|><|endoftext|>
1,470
programminghorror
hasbroslasher
ge28xwr
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>what's a variable what's a loop what's "j"<|eor|><|eols|><|endoftext|>
241
programminghorror
pkarlmann
ge2be9q
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>What is a screenshot?<|eor|><|eols|><|endoftext|>
188
programminghorror
Sennheisenberg
ge2elc6
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>What is a screenshot?<|eor|><|soopr|>This is my friends so naturally I had to snap a pic xD<|eoopr|><|sor|>you can still screenshot<|eor|><|sor|>"Hey can you screenshot that and send it to me so I can post it on the internet ...
154
programminghorror
Iain05
ge2bjco
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>What is a screenshot?<|eor|><|soopr|>This is my friends so naturally I had to snap a pic xD<|eoopr|><|eols|><|endoftext|>
84
programminghorror
Nall-ohki
ge2asi2
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Python list comprehension should have been right associative to allow linear chaining like F#.<|eor|><|eols|><|endoftext|>
72
programminghorror
DurianExecutioner
ge2dgn3
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>what's a variable what's a loop what's "j"<|eor|><|sor|>Procedural programming <|eor|><|eols|><|endoftext|>
65
programminghorror
TheBlacktom
ge3nvy3
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>what's a variable what's a loop what's "j"<|eor|><|sor|>I suspect the person wrote many Excel functions before trying programming here.<|eor|><|eols|><|endoftext|>
64
programminghorror
pkarlmann
ge2fh2e
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>What is a screenshot?<|eor|><|soopr|>This is my friends so naturally I had to snap a pic xD<|eoopr|><|sor|>you can still screenshot<|eor|><|sor|>"Hey can you screenshot that and send it to me so I can post it on the internet ...
54
programminghorror
Iain05
ge2dlpd
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Could this code be any more readable?<|eor|><|soopr|>Readable is a relative term<|eoopr|><|eols|><|endoftext|>
43
programminghorror
NinjeBlaze
ge2dhlt
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Could this code be any more readable?<|eor|><|eols|><|endoftext|>
36
programminghorror
nonpondo
ge2fcdl
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Y'all laughing but this is just what clojure looks like all the time<|eor|><|eols|><|endoftext|>
27
programminghorror
Hypothible
ge2cprg
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Whats an enter key<|eor|><|eols|><|endoftext|>
27
programminghorror
Haztec2750
ge2kjw8
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>What I see when someone says you can do it as a "one liner"<|eor|><|eols|><|endoftext|>
23
programminghorror
UnrelatedString
ge2me1r
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Y'all laughing but this is just what clojure looks like all the time<|eor|><|sor|>And it actually looks and feels great because you actually indent it Whatever the fuck this code is trying to do, I might unironically write i...
22
programminghorror
Iain05
ge2q0f1
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Not sure if Im reading this right, but do they have a triple nested for-loop? Their big O is gonna be, well, big.<|eor|><|soopr|>Its called big O for a reason<|eoopr|><|eols|><|endoftext|>
15
programminghorror
Nall-ohki
ge3mqze
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Python list comprehension should have been right associative to allow linear chaining like F#.<|eor|><|sor|>Can you link me to somewhere I can learn about what youre talking about? I think Im finding the wrong thing. Looked u...
14
programminghorror
TheBlacktom
ge3no5d
<|sols|><|sot|>Whats a function?<|eot|><|sol|>https://i.redd.it/ow57jnsnz7261.jpg<|eol|><|sor|>Could this code be any more readable?<|eor|><|soopr|>Readable is a relative term<|eoopr|><|sor|>You are writing it for the computer to read after all.<|eor|><|eols|><|endoftext|>
13
programminghorror
R0DR160HM
n9wjdh
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|eols|><|endoftext|>
1,467
programminghorror
YM_Industries
gxq7qcb
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>This has to have been done intentionally, right? As a joke? It demonstrates too much knowledge of TS and JS to be this stupid. As in, the correct way to do this is far more obvious, and ...
432
programminghorror
R0DR160HM
gxq80ui
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>This has to have been done intentionally, right? As a joke? It demonstrates too much knowledge of TS and JS to be this stupid. As in, the correct way to do this is far more obvious, and ...
322
programminghorror
adrynalyne
gxq4j1e
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>I.but.. Yeah I got nothing. WTF.<|eor|><|eols|><|endoftext|>
151
programminghorror
hornietzsche
gxq6ci6
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>pay per lines?<|eor|><|eols|><|endoftext|>
123
programminghorror
tateisukannanirase
gxqgo1o
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>OK I found the problem: *Time of commit: 03:17am*<|eor|><|eols|><|endoftext|>
119
programminghorror
DawnOfTheRachael
gxqjng8
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>This has to have been done intentionally, right? As a joke? It demonstrates too much knowledge of TS and JS to be this stupid. As in, the correct way to do this is far more obvious, and ...
100
programminghorror
rscarson
gxq9r61
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>Fixed your flair<|eor|><|eols|><|endoftext|>
98
programminghorror
Katana__
gxqafff
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>It's only Typescript if it's written in Redmond, WA. Otherwise, it's just sparkling Javascript. Thus, nobody ever really needs the Typescript flair.<|eor|><|eols|><|endoftext|>
92
programminghorror
ZedTT
gxquk3e
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>This has to have been done intentionally, right? As a joke? It demonstrates too much knowledge of TS and JS to be this stupid. As in, the correct way to do this is far more obvious, and ...
89
programminghorror
RichCorinthian
gxq74qx
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>They left out FileNotFound [https://thedailywtf.com/articles/what\_is\_truth\_0x3f\_](https://thedailywtf.com/articles/what_is_truth_0x3f_)<|eor|><|eols|><|endoftext|>
53
programminghorror
cmd-t
gxq5sjo
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>TS is just JS wearing a fancy statically typed hat<|eor|><|eols|><|endoftext|>
50
programminghorror
R0DR160HM
gxq5vam
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>TS is just JS wearing a fancy statically typed hat<|eor|><|soopr|>The hat of chadness<|eoopr|><|eols|><|endoftext|>
47
programminghorror
ryan676767
gxs1dgu
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>This has to have been done intentionally, right? As a joke? It demonstrates too much knowledge of TS and JS to be this stupid. As in, the correct way to do this is far more obvious, and ...
47
programminghorror
NabrenX
gxr51bs
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>OK I found the problem: *Time of commit: 03:17am*<|eor|><|sor|>Number of beers: 5<|eor|><|eols|><|endoftext|>
45
programminghorror
Javascript_above_all
gxq95tc
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>If I'm not mistaken the three first lines of the function are completely useless, right?<|eor|><|eols|><|endoftext|>
44
programminghorror
Wessel-O
gxqafpd
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>If I'm not mistaken the three first lines of the function are completely useless, right?<|eor|><|sor|>Yes, this would have been exactly the same: ` if (numberOfLayers) { for(let i=0...
36
programminghorror
0xc0ba17
gxqo7m2
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>Fixed your flair<|eor|><|sor|>Yup, only the loop was needed, assuming that you only pass numbers to this function.<|eor|><|sor|>Since you set a default value of `1` to `numberOfLayers`, ...
36
programminghorror
Javascript_above_all
gxqd50p
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>If I'm not mistaken the three first lines of the function are completely useless, right?<|eor|><|sor|>Yes, this would have been exactly the same: ` if (numberOfLayers) { for(let i=0...
33
programminghorror
Javascript_above_all
gxqbuqt
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>If I'm not mistaken the three first lines of the function are completely useless, right?<|eor|><|sor|>Yes, this would have been exactly the same: ` if (numberOfLayers) { for(let i=0...
31
programminghorror
noop_noob
gxqai96
<|sols|><|sot|>I have so many questions (btw, why there's no TS flair?)<|eot|><|sol|>https://i.redd.it/sqnupbl2phy61.png<|eol|><|sor|>Fixed your flair<|eor|><|sor|>Yup, only the loop was needed, assuming that you only pass numbers to this function.<|eor|><|eols|><|endoftext|>
29
programminghorror
huacyntus
qwpt4c
<|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|eols|><|endoftext|>
1,465
programminghorror
Mamertine
hl4apw3
<|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|eols|><|endoftext|>
1,130
programminghorror
huacyntus
hl4bqow
<|sols|><|sot|>Sooo my younger brother made this for homework<|eot|><|sol|>https://i.redd.it/jxnkru3nwc081.png<|eol|><|sor|>I thought there was a rule against shaming beginners for trying to learn how to code?<|eor|><|soopr|>I'm not shaming him. I just thought this way was funny. I showed him how it should be done<|eoo...
398