subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
Fitbot5000
gnru4go
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>My favorite react library: jquery.<|eor|><|sor|>import { jQuery } from my-nightmares<|eor|><|eols|><|endoftext|>
184
programminghorror
mohragk
gnrj81c
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>Why set the inner HTML while you can just, you know, use HTML?<|eor|><|eols|><|endoftext|>
165
programminghorror
bigorangemachine
gnrkg22
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>This is what happens when a junior developer uses code snippets from a project manager<|eor|><|eols|><|endoftext|>
158
programminghorror
Karnex
gnsc8i9
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>My favorite react library: jquery.<|eor|><|sor|>import { jQuery } from my-nightmares<|eor|><|sor|>Why import when you can `require()` to make things worse<|eor|><|sor|...
93
programminghorror
dunko5
gnrjz5q
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>Why set the inner HTML while you can just, you know, use HTML?<|eor|><|sor|>Flexonem.<|eor|><|eols|><|endoftext|>
78
programminghorror
Rawrplus
gns2m7d
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>My favorite react library: jquery.<|eor|><|sor|>import { jQuery } from my-nightmares<|eor|><|sor|>Why import when you can `require()` to make things worse<|eor|><|eols...
61
programminghorror
SovAtman
gnsd2gx
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>Could someone explain why this is bad? I dont know react<|eor|><|sor|>[deleted]<|eor|><|sor|>Yeah it basically seems like someone was told to program in React that .....
55
programminghorror
16bitash
gnrnesp
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>Why set the inner HTML while you can just, you know, use HTML?<|eor|><|sor|>Flexonem.<|eor|><|sor|>Sometimes you do it for performance reasons. When trying to render a...
51
programminghorror
kai58
gns5n1x
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>Could someone explain why this is bad? I dont know react<|eor|><|eols|><|endoftext|>
46
programminghorror
sir_pedr
gnrgg5c
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|soopr|>[Twitter post](https://twitter.com/bernam92/status/1361380064974303241) here &#x200B; *Edit: just to clarify, it's not my intention to make fun of anyone, I'm just...
32
programminghorror
VoidNode
gnro1d8
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>I don't see how this is a problem, probably due to being new to react and not working with it. Could you please explain why this is a horror?<|eor|><|sor|>This code is...
32
programminghorror
mypetocean
gnro94z
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>I don't see how this is a problem, probably due to being new to react and not working with it. Could you please explain why this is a horror?<|eor|><|sor|>It's horror ...
31
programminghorror
Soremwar
gnrufco
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>There are a surprising amount of comments defending this on Twitter.<|eor|><|sor|>Now we know what devs are doing this in their React code<|eor|><|eols|><|endoftext|>
30
programminghorror
Fitbot5000
gnt38aq
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>My favorite react library: jquery.<|eor|><|sor|>import { jQuery } from my-nightmares<|eor|><|sor|>Is jQuery really that bad?<|eor|><|sor|>Nah. Its just outlived its pe...
30
programminghorror
blahbah
gnsei9h
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>My favorite react library: jquery.<|eor|><|sor|>import { jQuery } from my-nightmares<|eor|><|sor|>Why import when you can `require()` to make things worse<|eor|><|sor|...
30
programminghorror
Eiim
gns37jz
<|sols|><|sot|>Found this on twitter, by @bernam92 (link to original post in the comments)<|eot|><|sol|>https://i.redd.it/c2m1e0poi1i61.jpg<|eol|><|sor|>Why set the inner HTML while you can just, you know, use HTML?<|eor|><|sor|>Flexonem.<|eor|><|sor|>Sometimes you do it for performance reasons. When trying to render a...
29
programminghorror
parkotron
epivtb
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|eols|><|endoftext|>
906
programminghorror
josephblade
fejqmm1
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
179
programminghorror
parkotron
fejpnyt
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|soopr|>I guess it's not clear from the screenshot (and ...
100
programminghorror
parkotron
fejqxnc
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
90
programminghorror
Wissam24
fek7ms4
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>Oh god. That ui... my eyes are burning<|eor|><|sor|>Yeah blurring the entry fields makes it virtually unusable.<|eor|><|eols|><|endoftext|>
53
programminghorror
josephblade
fejr9ny
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
49
programminghorror
parkotron
fejsfc5
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
45
programminghorror
not_your_mate
feju5h0
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|soopr|>I guess it's not clear from the screenshot (and ...
43
programminghorror
_PM_ME_PANGOLINS_
fejoghw
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|eols|><|endoftext|>
33
programminghorror
MyNameIsRichardCS54
fejozim
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|sor|>Email address **AND PASSWORD** is just plain weird...
24
programminghorror
_PM_ME_PANGOLINS_
fejq5yu
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|soopr|>I guess it's not clear from the screenshot (and ...
19
programminghorror
Al3xre
fejs3ap
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|soopr|>I guess it's not clear from the screenshot (and ...
12
programminghorror
mr_hard_name
fejptgl
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|sor|>It's another vector of attack for the same reason ...
9
programminghorror
RuthBaderBelieveIt
fekv7yb
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
9
programminghorror
josephblade
fejquyp
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|sor|>You should not give away sensitive information to ...
8
programminghorror
sentles
fel9z44
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
8
programminghorror
josephblade
fekx213
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>I once was told I wasn't allowed to use a password because it was already in use ... by another user.... Limiting accounts to 1 per email is fair enough (though weirdly...
8
programminghorror
partybynight
fejt7ur
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>What's the problem exactly? The error message? The exact same information is available via the login form.<|eor|><|soopr|>I guess it's not clear from the screenshot (and ...
7
programminghorror
Miner_ChAI
fekh36c
<|sols|><|sot|>Umm... huh. I guess I'll just put a '2' at the end of the password then?<|eot|><|sol|>https://i.redd.it/t5jrb2mtz4b41.png<|eol|><|sor|>This password is already in use by Patrick2109<|eor|><|eols|><|endoftext|>
6
programminghorror
wulkanat
dygu8k
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|eols|><|endoftext|>
903
programminghorror
osrs_oke
f813gj5
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|eols|><|endoftext|>
243
programminghorror
sim642
f815n0l
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Can't you create your own nodes which internally are implemented via other nodes, just like how functions exist in normal programming?<|eor|><|eols|><|endoftext|>
101
programminghorror
GlobalIncident
f819xd1
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>Looks like visual scripting. Unity or Godot or Unreal or something.<|eor|><|eols|><|endoftext|>
75
programminghorror
dewakaputo
f8179pi
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>I don't know as well, but I hope that what I'm seeing is not a visual representation of a project with a microservice architechtur...
62
programminghorror
wulkanat
f815wo0
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>What's the software you're using to see these interconnections?<|eor|><|soopr|>It's the Blender Shader editor.<|eoopr|><|eols|><|endoftext|>
52
programminghorror
_LhgS_
f81bqf6
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>Looks like visual scripting. Unity or Godot or Unreal or something.<|eor|><|sor|>Looks like unreal to me. They all suck at that th...
49
programminghorror
Karnex
f816b1c
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>What's the software you're using to see these interconnections?<|eor|><|soopr|>It's the Blender Shader editor.<|eoopr|><|sor|>You can make sub nodes (or whatever it's called, I forgot) though. ...
45
programminghorror
deceze
f814cyv
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>That's a lotta nodes on that spaceship.<|eor|><|eols|><|endoftext|>
39
programminghorror
Avereniect
f82ilvx
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>Looks like visual scripting. Unity or Godot or Unreal or something.<|eor|><|sor|>Looks like unreal to me. They all suck at that th...
36
programminghorror
CommunistElf
f814ref
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>What's the software you're using to see these interconnections?<|eor|><|eols|><|endoftext|>
28
programminghorror
Direwolf202
f81lt0i
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>This is someone who doesnt organise their nodes properly. Ive seen some really heavy duty VFX stuff, it was so much bigger, so much more complex, but because of the way that it had been organis...
27
programminghorror
wulkanat
f81bsij
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>What's the software you're using to see these interconnections?<|eor|><|soopr|>It's the Blender Shader editor.<|eoopr|><|sor|>In guessing this is a particularly complicated example. What does i...
27
programminghorror
Thann
f81vam2
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>npm dependency graph maybe?<|eor|><|sor|>Too small and clean for that<|eor|><|eols|><|endoftext|>
19
programminghorror
hiljusti
f8192g5
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>npm dependency graph maybe?<|eor|><|eols|><|endoftext|>
17
programminghorror
SV-97
f816gzb
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Can't you create your own nodes which internally are implemented via other nodes, just like how functions exist in normal programming?<|eor|><|sor|>[deleted]<|eor|><|sor|>It's nodes all the way...
17
programminghorror
jemand2001
f81dg0s
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>What's the software you're using to see these interconnections?<|eor|><|soopr|>It's the Blender Shader editor.<|eoopr|><|sor|>You can make sub nodes (or whatever it's called, I forgot) though. ...
17
programminghorror
squidred
f821nsn
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>Looks like visual scripting. Unity or Godot or Unreal or something.<|eor|><|sor|>~~Unity doesn't have a visual scripting system as...
16
programminghorror
Sentr-E
f81slil
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>This is blender node modifier oh god the horror this is so badly constructed<|eor|><|eols|><|endoftext|>
12
programminghorror
Pelkot
f825wo0
<|sols|><|sot|>Node based programming really doesn't scale well.<|eot|><|sol|>https://i.redd.it/cnu59ldvalz31.png<|eol|><|sor|>Not sure what I'm looking at but I've seen worse.<|eor|><|sor|>Looks like visual scripting. Unity or Godot or Unreal or something.<|eor|><|sor|>~~Unity doesn't have a visual scripting system as...
11
programminghorror
Fabulous_Mister_6460
13dlsip
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|eols|><|endoftext|>
900
programminghorror
strict_mistyping
jjl7g48
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
454
programminghorror
strict_mistyping
jjl8tay
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
148
programminghorror
protokoul
jjl2b10
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>I love to read comments like these that are so specific in nature.<|eor|><|eols|><|endoftext|>
81
programminghorror
TunaAlert
jjl8d1m
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
66
programminghorror
strict_mistyping
jjloszx
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
50
programminghorror
strict_mistyping
jjlemcu
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
46
programminghorror
MIP_PL
jjl5yya
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>At least its docummented<|eor|><|eols|><|endoftext|>
43
programminghorror
tias
jjltyzn
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>The reasoning is so specific,it seems more like a r/programminghumor content<|eor|><|sor|>Nope, it's definitely /r/programminghorror. The comment would not have needed to be there if the developer took the time to debug the code...
31
programminghorror
afiefh
jjmt4jf
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
31
programminghorror
souravtxt
jjl4sld
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>The reasoning is so specific,it seems more like a r/programminghumor content<|eor|><|eols|><|endoftext|>
26
programminghorror
GasolinePizza
jjlm0mv
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
23
programminghorror
theScrapBook
jjln4vj
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>it happens only sometimes is why you need logging.. the horror here is they found an intermittent problem and added notes instead of logging smh<|eor|><|sor|>How TF do you do logging in a disconnected microcontroller?<|eor|><|eo...
19
programminghorror
strict_mistyping
jjlio1t
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
18
programminghorror
Skoparov
jjmmta5
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
16
programminghorror
_Simian
jjllh67
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>What is that syntax `{false}`? I've never seen that.<|eor|><|sor|>Just a different way to initialize a value. float a = 5.0f; float b { 5.0f }; struct foo_t { foo_t(int in_bar) : bar(in_bar) {} ...
15
programminghorror
strict_mistyping
jjnm3c0
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
13
programminghorror
bnl1
jjldmea
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
12
programminghorror
pigeon768
jjnkp85
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
10
programminghorror
tuirn
jjlwdax
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>What is that syntax `{false}`? I've never seen that.<|eor|><|sor|>Just a different way to initialize a value. float a = 5.0f; float b { 5.0f }; struct foo_t { foo_t(int in_bar) : bar(in_bar) {} ...
10
programminghorror
Fabulous_Mister_6460
jjndi3k
<|sols|><|sot|>Core 1 Paniced<|eot|><|sol|>https://i.redd.it/oelukr4cp0za1.jpg<|eol|><|sor|>bro, the answer is right there: update (virtual function, overriden in the derived class) is called from the constructor of the parent class when m\_lightData isn't yet constructed. This is C++ inheritance 101. Indeed it's inhe...
9
programminghorror
artinlines
v8ju3k
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|eols|><|endoftext|>
905
programminghorror
SirKalokal
ibqy4oo
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>The Lack of spaces is the worst part about it<|eor|><|eols|><|endoftext|>
314
programminghorror
revrenlove
ibquu4k
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>Because they just found out about ternary operators, so now they _have_ to use them.<|eor|><|eols|><|endoftext|>
196
programminghorror
PyroCatt
ibqzokk
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>What JS does to a mf<|eor|><|eols|><|endoftext|>
109
programminghorror
seriousSeb
ibrc7k2
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>The Lack of spaces is the worst part about it<|eor|><|sor|>I'm not familiar with the language, so was wondering if this spacing was normal <|eor|><|sor|>[deleted]<|eor|><|sor|>always good to have more errors than you do lines of...
90
programminghorror
yeahsick
ibqvyej
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>Great readability /s<|eor|><|eols|><|endoftext|>
82
programminghorror
SoLoDas
ibr9c0t
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>So currentAudio can be string | HTMLAudioElement | boolean. Big yikes<|eor|><|sor|>no, just `string | HTMLAudioElement`. The start is a comparison not an assignment, the false is effectively a NOOP<|eor|><|eols|><|endoftext|>
59
programminghorror
NotLyon
ibqykrf
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>So currentAudio can be string | HTMLAudioElement | boolean. Big yikes<|eor|><|eols|><|endoftext|>
58
programminghorror
al3xxx_96
ibraj1n
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>The Lack of spaces is the worst part about it<|eor|><|sor|>I'm not familiar with the language, so was wondering if this spacing was normal <|eor|><|eols|><|endoftext|>
46
programminghorror
Jacqques
ibr7j6a
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>Hang on let me fix it: currentAudio === ' '?currentAudio=audio:false There, now it's proper javascript.<|eor|><|eols|><|endoftext|>
35
programminghorror
lenxwit
ibttg0v
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>The Lack of spaces is the worst part about it<|eor|><|sor|>Really!? Lack of spaces!? How about the fact that 1) the ternarys return value isnt used 2) the ternary sets a variable after `?` instead a more standard `x = (conditio...
31
programminghorror
kenybz
ibs2i6j
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>Great readability /s<|eor|><|sor|>Self-documenting code<|eor|><|eols|><|endoftext|>
24
programminghorror
NotLyon
ibr9k28
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>So currentAudio can be string | HTMLAudioElement | boolean. Big yikes<|eor|><|sor|>no, just `string | HTMLAudioElement`. The start is a comparison not an assignment, the false is effectively a NOOP<|eor|><|sor|>Oh god you're rig...
24
programminghorror
freak_dessert2
ibr8v4g
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>Great readability /s<|eor|><|sor|>I don't know if this is ironic or not but to me its quite readable, even if its a bit silly.<|eor|><|sor|>The readability sucks compared to what it should have been<|eor|><|eols|><|endoftext|>
23
programminghorror
Lithl
ibrq2m7
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>The Lack of spaces is the worst part about it<|eor|><|sor|>I'm not familiar with the language, so was wondering if this spacing was normal <|eor|><|sor|>[deleted]<|eor|><|sor|>always good to have more errors than you do lines of...
23
programminghorror
_PM_ME_PANGOLINS_
ibrpl49
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>If you really want a one-liner to do this then it's currentAudio = currentAudio || audio; otherwise if (!currentAudio) { currentAudio = audio } Yes, that handles e.g. `null` differently to the original, b...
17
programminghorror
Pining
ibrx6dw
<|sols|><|sot|>Why? Just why?<|eot|><|sol|>https://i.redd.it/150n6jz6am491.jpg<|eol|><|sor|>If you really want a one-liner to do this then it's currentAudio = currentAudio || audio; otherwise if (!currentAudio) { currentAudio = audio } Yes, that handles e.g. `null` differently to the original, b...
16
programminghorror
Tornado547
tfigw9
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|eols|><|endoftext|>
903
programminghorror
Firesrest
i0vwuu9
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Writing your own would be way faster and less painful<|eor|><|eols|><|endoftext|>
422
programminghorror
omg_drd4_bbq
i0w4r9i
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Why not use a for loop and just go through the amount of entries in the array, counted by some "array.length()" function or whatever it is called in that langu...
340
programminghorror
BurningPenguin
i0w1hrd
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Why not use a for loop and just go through the amount of entries in the array, counted by some "array.length()" function or whatever it is called in that langu...
235
programminghorror
dead_alchemy
i0w5hwp
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>You're sending code patches over Discord too, aren't you? As others have stated, you would have been better off just writing the utility function. However, I ...
143
programminghorror
Shot_Calendar_7373
i0w8x4h
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Writing your own would be way faster and less painful<|eor|><|soopr|>Not by much lol. We'd have to hardcode in that list anyway<|eoopr|><|sor|>Next time you wa...
137
programminghorror
reverendsteveii
i0w7s8m
<|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Why not use a for loop and just go through the amount of entries in the array, counted by some "array.length()" function or whatever it is called in that langu...
135