subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
deathspate
i1j5dch
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Reminds me of the time I autogenerated an <xsl:choose> with 3000 cases, it was ugly but worked beautifully. Unfortunately this beauty does not seem like it was aut...
34
programminghorror
javarouleur
i1joe6t
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Why do switch statements cause people's heads to explode? Are they not a commonly taught structure? Do people not know that their entire point is to combine multipl...
31
programminghorror
clit_or_us
i1jhn9v
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Reminds me of the time I autogenerated an <xsl:choose> with 3000 cases, it was ugly but worked beautifully. Unfortunately this beauty does not seem like it was aut...
28
programminghorror
SurpriseMonday
i1k2m7l
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Why do switch statements cause people's heads to explode? Are they not a commonly taught structure? Do people not know that their entire point is to combine multipl...
27
programminghorror
fletku_mato
i1jlqia
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Reminds me of the time I autogenerated an <xsl:choose> with 3000 cases, it was ugly but worked beautifully. Unfortunately this beauty does not seem like it was aut...
23
programminghorror
R3D3-1
i1jlq53
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Not able to zoom in enough to see what the 4th screenshot is and for that I am grateful.<|eor|><|sor|>No, the screenshot is simply blurry, at 113x749 pixels.<|eor|>...
20
programminghorror
fletku_mato
i1kah4n
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Reminds me of the time I autogenerated an <xsl:choose> with 3000 cases, it was ugly but worked beautifully. Unfortunately this beauty does not seem like it was aut...
19
programminghorror
AttackOfTheThumbs
i1j7r87
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>I think the most correct way to do this is have a database with the category name, vat rate, and duty rate. Honestly, that db could just be a CSV. If you need to, ...
18
programminghorror
nosoupforyou
i1jb4m1
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>I think the most correct way to do this is have a database with the category name, vat rate, and duty rate. Honestly, that db could just be a CSV. If you need to, ...
16
programminghorror
stevarino
i1kgg2w
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Why do switch statements cause people's heads to explode? Are they not a commonly taught structure? Do people not know that their entire point is to combine multipl...
11
programminghorror
AttackOfTheThumbs
i1jetsc
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>I think the most correct way to do this is have a database with the category name, vat rate, and duty rate. Honestly, that db could just be a CSV. If you need to, ...
10
programminghorror
Dragenby
i1jhgvn
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>The last image is peak comedy! Or pure pain<|eor|><|eols|><|endoftext|>
9
programminghorror
evolseven
i1kah4y
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Reminds me of the time I autogenerated an <xsl:choose> with 3000 cases, it was ugly but worked beautifully. Unfortunately this beauty does not seem like it was aut...
9
programminghorror
CheezeyCheeze
i1k5ktt
<|sols|><|sot|>Thought this might be more suited to be posted here after thinking about it.<|eot|><|sol|>https://www.reddit.com/gallery/tjanue<|eol|><|sor|>Reminds me of the time I autogenerated an <xsl:choose> with 3000 cases, it was ugly but worked beautifully. Unfortunately this beauty does not seem like it was aut...
8
programminghorror
one_dusty_baker
l8zklw
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|eols|><|endoftext|>
739
programminghorror
TheZipCreator
glfgv8t
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>I feel bad for whoever the fuck has to fix this one<|eor|><|eols|><|endoftext|>
271
programminghorror
Farfignugen42
glfk3fz
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Lock the phone in portrait mode. Problem solved.<|eor|><|eols|><|endoftext|>
204
programminghorror
coyote_den
glg3m7g
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|eols|><|endoftext|>
142
programminghorror
baptizedbycobalt
glgabvt
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Lock the phone in portrait mode. Problem solved.<|eor|><|sor|>Wontfix<|eor|><|sor|>Has workaround: dont rotate phone Priority: low<|eor|><|eols|><|endoftext|>
136
programminghorror
officialvfd
glg7eer
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>Android dev here - can confirm. Rotation chan...
111
programminghorror
DavithD
glfq6ba
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>It's because the VPN changes the WiFi beams to horizontal from diamonds, so they're undetectable by Big Tech and the NSA. If you change your phone orientation, the VPN asks for what it thinks are horizontal rays, ...
109
programminghorror
mustang__1
glg5925
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Lock the phone in portrait mode. Problem solved.<|eor|><|sor|>Wontfix<|eor|><|eols|><|endoftext|>
94
programminghorror
coyote_den
glg7l25
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>Android dev here - can confirm. Rotation chan...
53
programminghorror
officialvfd
glgaa85
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>Android dev here - can confirm. Rotation chan...
52
programminghorror
-manabreak
glgb6ek
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>Android dev here - can confirm. Rotation chan...
49
programminghorror
Master_Sifo_Dyas
glgl0tv
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Lock the phone in portrait mode. Problem solved.<|eor|><|sor|>Wontfix<|eor|><|sor|>Has workaround: dont rotate phone Priority: low<|eor|><|sor|>The user has to implement the workaround... And I trust no user, no...
37
programminghorror
officialvfd
glgbdcw
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>Android dev here - can confirm. Rotation chan...
32
programminghorror
zerothepyro
glfik2e
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Sounds like a feature. One probably turned on by corporate in reaction to an audit. The audit was for something completely different, but they figured VPN was a buzzword.<|eor|><|eols|><|endoftext|>
31
programminghorror
LetMeUseMyEmailFfs
glglemw
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>He also said it happens with all the VPN apps...
20
programminghorror
Aatch
glga5mw
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>There was a reasonable explanation offered... rotating the screen sends an event to the app to reformat the UI. App doesnt handle it properly and crashes.<|eor|><|sor|>Android dev here - can confirm. Rotation chan...
20
programminghorror
Archival00
glg27li
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Rotating probably causes the app to restart internally to handle the change in screen size.<|eor|><|eols|><|endoftext|>
16
programminghorror
netherlandsftw
glglzjs
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>The bug is called Android<|eor|><|sor|>Why is this downvoted?<|eor|><|sor|>Almost every comment in this thread is "hating" on Android. But those comments are explaining why this is happening. This comment right he...
16
programminghorror
tenent_jason
glgjcn4
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>Think about it, now u have a shortcut to terminate your connection easily in the "special situations" *Moved from bug fix to feature adding*<|eor|><|eols|><|endoftext|>
9
programminghorror
Philly4628
glfyj76
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>The bug is called Android<|eor|><|sor|>lmao<|eor|><|eols|><|endoftext|>
9
programminghorror
mustang__1
glg5as7
<|sols|><|sot|>Dear god<|eot|><|sol|>/r/VPN/comments/l8joj5/rotate_screen_on_phone_kills_vpn/<|eol|><|sor|>This is why I'm a season ticket holder. That is fucking hilariousm<|eor|><|eols|><|endoftext|>
6
programminghorror
xander2508
rkuplh
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|eols|><|endoftext|>
735
programminghorror
ZylonBane
hpc3717
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>"64,800" colors? That's not right at any bit depth.<|eor|><|eols|><|endoftext|>
309
programminghorror
mooseman3
hpcecvk
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>"64,800" colors? That's not right at any bit depth.<|eor|><|sor|>You've never heard of 5.3279-bit color?<|eor|><|eols|><|endoftext|>
298
programminghorror
ketralnis
hpcjlci
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Students should be off topic here. People who havent learned something yet dont know it. Shocking.<|eor|><|eols|><|endoftext|>
131
programminghorror
ZylonBane
hpce9lg
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>"64,800" colors? That's not right at any bit depth.<|eor|><|sor|>Yeah, it's actually over 16 million different colors.<|eor|><|sor|>It's "actually" whatever the bitdepth resolution is of the device or API they're programming for, which...
93
programminghorror
mianori
hpbvmil
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>And they say only Artificial intelligence consists of if/else logic, they havent met your friend<|eor|><|eols|><|endoftext|>
83
programminghorror
spacezombiejesus
hpcmkme
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>**I big bad** Sorry, *what*<|eor|><|eols|><|endoftext|>
53
programminghorror
chaotic_goody
hpdpv7a
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Im not really sure what mapping each value individually means, actually. Can someone explain please?<|eor|><|eols|><|endoftext|>
48
programminghorror
PenisButtuh
hpe6xkd
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Students should be off topic here. People who havent learned something yet dont know it. Shocking.<|eor|><|sor|>Nah man students are definitely okay here. It's fun to laugh at some of crazy dumb stuff you did as a student.<|eor|><|eols...
40
programminghorror
Rajarshi1993
hpequen
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>"64,800" colors? That's not right at any bit depth.<|eor|><|sor|>You've never heard of 5.3279-bit color?<|eor|><|sor|>r/theydidthemath<|eor|><|eols|><|endoftext|>
40
programminghorror
4z01235
hpe30gt
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Im not really sure what mapping each value individually means, actually. Can someone explain please?<|eor|><|sor|>I think they had integer constants or maybe an enum for each <r, g, b> tuple.<|eor|><|eols|><|endoftext|>
26
programminghorror
veryloudmonstercat
hpcpw9z
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>**I big bad** Sorry, *what*<|eor|><|sor|>Naughty naughty dev ;)<|eor|><|eols|><|endoftext|>
25
programminghorror
Rogntudjuuuu
hpctsex
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>"64,800" colors? That's not right at any bit depth.<|eor|><|sor|>Yeah, it's actually over 16 million different colors.<|eor|><|sor|>It's "actually" whatever the bitdepth resolution is of the device or API they're programming for, which...
24
programminghorror
KagakuNinja
hpcqihn
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Don't forget about the alpha channel...<|eor|><|eols|><|endoftext|>
22
programminghorror
TheRealBrockLesnar
hpdb9f5
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>I think the annoying thing here is the general cadence of the conversation. Motherfucker is talking like a 3 year old who just shat their pants.<|eor|><|eols|><|endoftext|>
19
programminghorror
ntn_98
hpem5ge
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Students should be off topic here. People who havent learned something yet dont know it. Shocking.<|eor|><|sor|>Man especially students give the most stupid and entertaining solutions. Source, am one.<|eor|><|eols|><|endoftext|>
12
programminghorror
Logical_Put_5867
hpdxukf
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Students should be off topic here. People who havent learned something yet dont know it. Shocking.<|eor|><|sor|>Well, who works with colors, and doesn't know about the primary colors of whatever medium being used? That should be the fi...
12
programminghorror
xander2508
hpef0bs
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>"64,800" colors? That's not right at any bit depth.<|eor|><|soopr|>I did post it in the horror subreddit!<|eoopr|><|eols|><|endoftext|>
9
programminghorror
ntn_98
hpem233
<|sols|><|sot|>Oh no<|eot|><|sol|>https://www.reddit.com/gallery/rkuplh<|eol|><|sor|>Im not really sure what mapping each value individually means, actually. Can someone explain please?<|eor|><|sor|>I think they had integer constants or maybe an enum for each <r, g, b> tuple.<|eor|><|sor|>Or they were putting everythin...
9
programminghorror
matbiz01
kz5zfe
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|eols|><|endoftext|>
738
programminghorror
shayhtfc
gjlggf6
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You could make a method where you pass in the neighbours object/array and an array of cells you want to set to true or fal...
362
programminghorror
Meaxis
gjnlwpn
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You could make a method where you pass in the neighbours object/array and an array of cells you want to set to true or fal...
217
programminghorror
wijsneus
gjlabn1
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
127
programminghorror
HaMMeReD
gjn9kue
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You could make a method where you pass in the neighbours object/array and an array of cells you want to set to true or fal...
102
programminghorror
matbiz01
gjkwldc
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
80
programminghorror
bonafidebob
gjo28jd
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You could make a method where you pass in the neighbours object/array and an array of cells you want to set to true or fal...
43
programminghorror
Equixels
gjlfvxc
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>Well, I have done a lot of code for this type of things myself and I can tell you having a lot of ifs is innevitable cause...
40
programminghorror
T4gman
gjo1l13
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
31
programminghorror
Ixaire
gjnefi5
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
31
programminghorror
BlueMarble007
gjnsq7n
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You could make a method where you pass in the neighbours object/array and an array of cells you want to set to true or fal...
30
programminghorror
matbiz01
gjm20ow
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>Well, I have done a lot of code for this type of things myself and I can tell you having a lot of ifs is innevitable cause...
24
programminghorror
djcraze
gjncy6m
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>Ive seen worse.<|eor|><|eols|><|endoftext|>
11
programminghorror
Ixaire
gjmekms
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You can simplify the conditions. For example, the last one includes everything from the first one and modifies neighbours ...
10
programminghorror
Kengaro
gjn712s
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>You could nest the && into the outer if's, and hence have 4 cases with 4 subcases instead of 8.<|eor|><|eols|><|endoftext|...
8
programminghorror
Sarke1
gjnv2wt
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
7
programminghorror
MattVanAndel
gjob12x
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
7
programminghorror
LeifDTO
gjl4425
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
6
programminghorror
matbiz01
gjn63bk
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>If you're making a grid based game, it's better to have an underlying notion of cells and cell positions. For instance, I ...
6
programminghorror
TheMasterCado
gjovk1i
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|soopr|>At first [this](https://gyazo.com/4ad3dc68832b2574907807c343cd52c1) was my solution. But later on I've realised that it ...
6
programminghorror
Equixels
gjm2e5n
<|sols|><|sot|>I've tried to dynamically activate and deactivate chunks in my game and have ended up with this nightmare of a solution.<|eot|><|sol|>https://i.redd.it/u377gppw3wb61.png<|eol|><|sor|>Well, I have done a lot of code for this type of things myself and I can tell you having a lot of ifs is innevitable cause...
6
programminghorror
charguyblue
g5378z
<|sols|><|sot|>Something something blame mechanical<|eot|><|sol|>https://i.redd.it/vp4quhak81u41.jpg<|eol|><|eols|><|endoftext|>
736
programminghorror
mpinnegar
fo21ddu
<|sols|><|sot|>Something something blame mechanical<|eot|><|sol|>https://i.redd.it/vp4quhak81u41.jpg<|eol|><|sor|>This isn't programming horror it's programming truth.<|eor|><|eols|><|endoftext|>
103
programminghorror
captaincarmnlg
fo2imro
<|sols|><|sot|>Something something blame mechanical<|eot|><|sol|>https://i.redd.it/vp4quhak81u41.jpg<|eol|><|sor|>Only private repos i have are questionable legaly Or at least i dont know if it is fully legal<|eor|><|eols|><|endoftext|>
31
programminghorror
poldi1405
fo2hgcw
<|sols|><|sot|>Something something blame mechanical<|eot|><|sol|>https://i.redd.it/vp4quhak81u41.jpg<|eol|><|sor|>This isn't programming horror it's programming truth.<|eor|><|sor|>Hard to swallow pill<|eor|><|eols|><|endoftext|>
19
programminghorror
trwolfe13
fo3314y
<|sols|><|sot|>Something something blame mechanical<|eot|><|sol|>https://i.redd.it/vp4quhak81u41.jpg<|eol|><|sor|>Only private repos i have are questionable legaly Or at least i dont know if it is fully legal<|eor|><|sor|>Yeah, I started working on an image recognition aimbot for a game that I kept private for obvious ...
12
programminghorror
yogeshdcool
11fz1bm
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|eols|><|endoftext|>
738
programminghorror
plg94
jam73ka
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>to be fair, the for-else construct is highly debated and even a lot of seasoned python devs think it's bad s...
534
programminghorror
SkinnyJoshPeck
jamep9h
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>to be fair, the for-else construct is highly debated and even a lot of seasoned python devs think it's bad s...
274
programminghorror
glieseg
jalsv9f
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>"only correct way"? I'm reminded of the saying "those who can't do, teach".<|eor|><|eols|><|endoftext|>
221
programminghorror
EONRaider
jaluop2
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>Wait until you tell her that the first iteration can be replaced with a set comprehension<|eor|><|eols|><|en...
165
programminghorror
SquidsAlien
jam5t5o
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>I think for-else conditional loops are particularly confusing, to be honest.<|eor|><|eols|><|endoftext|>
156
programminghorror
csandazoltan
jalvjbi
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>I have learned in my 15+ years in programming, that there is no one good way to solve a problem. There are a...
135
programminghorror
Tdoflamingo
jan957y
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>What the fuck is for-else<|eor|><|eols|><|endoftext|>
96
programminghorror
mikeystocks100
jampjjw
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>What about fr-elise loops?<|eor|><|eols|><|endoftext|>
80
programminghorror
xadun
jam0sr1
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>"only correct way"? I'm reminded of the saying "those who can't do, teach".<|eor|><|sor|>and those that can...
60
programminghorror
EONRaider
jalv5de
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>Wait until you tell her that the first iteration can be replaced with a set comprehension<|eor|><|soopr|>I'm...
53
programminghorror
marxist-reaganomics
jamm0wd
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>I have learned in my 15+ years in programming, that there is no one good way to solve a problem. There are a...
45
programminghorror
yogeshdcool
jalutek
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>Wait until you tell her that the first iteration can be replaced with a set comprehension<|eor|><|soopr|>I'm...
44
programminghorror
MoarCurekt
jamti4k
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>I have learned in my 15+ years in programming, that there is no one good way to solve a problem. There are a...
43
programminghorror
Ran4
jam84mz
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>Wait until you tell her that the first iteration can be replaced with a set comprehension<|eor|><|sor|>tbh i...
41
programminghorror
ColdPorridge
jamkocl
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>to be fair, the for-else construct is highly debated and even a lot of seasoned python devs think it's bad s...
40
programminghorror
BarfingOnYourFace
jao1lx3
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>to be fair, the for-else construct is highly debated and even a lot of seasoned python devs think it's bad s...
40
programminghorror
Sceptix
jan5cs4
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>to be fair, the for-else construct is highly debated and even a lot of seasoned python devs think it's bad s...
37
programminghorror
Zymoox
jam98jh
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>Wait until you tell her that the first iteration can be replaced with a set comprehension<|eor|><|soopr|>I'm...
33
programminghorror
Konkichi21
jamdcts
<|sols|><|sot|>My teacher who teaches us python does not allow me to use for-else in my final exam and sent me this and said this is the only correct way<|eot|><|sol|>https://i.imgur.com/0NK9T4e.jpg<|eol|><|sor|>I think for-else conditional loops are particularly confusing, to be honest.<|eor|><|sor|>Yeah, looking at i...
28