subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | EndR60 | if365ky | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 21 |
programminghorror | joujoubox | sq73x4 | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|eols|><|endoftext|> | 1,565 |
programminghorror | Deacon_Steel | hwjr47k | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Fun fact, there are about a dozen lookalikes of the lowercase 'o' that you can use to make this even worse.
What book or resource is... | 248 |
programminghorror | LThalle | hwkc4sk | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Fun fact, there are about a dozen lookalikes of the lowercase 'o' that you can use to make this even worse.
What book or resource is... | 101 |
programminghorror | IanisVasilev | hwk27p8 | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Cyrillic and Latin scripts have a lot of similar-looking letters, and in monospaced fonts (e.g. Noto Mono), they are often indistingu... | 95 |
programminghorror | deadbeef1a4 | hwk7gny | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Thats why I love VS Codes ambiguous character highlighting feature!<|eor|><|eols|><|endoftext|> | 63 |
programminghorror | MiataCory | hwk64sb | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|> print("Hello")
Error: Missing semicolon on line 1.
Brought to you by the Greek Question Mark:
Cousin to the missing semicol... | 58 |
programminghorror | welcome_cumin | hwk6wj1 | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Reminds me of https://www.bleepingcomputer.com/news/security/invisible-characters-could-be-hiding-backdoors-in-your-javascript-code/<... | 33 |
programminghorror | HotRodLincoln | hwk7pkz | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Fun fact, there are about a dozen lookalikes of the lowercase 'o' that you can use to make this even worse.
What book or resource is... | 26 |
programminghorror | happy_bandana | hwkua17 | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Cyrillic and Latin scripts have a lot of similar-looking letters, and in monospaced fonts (e.g. Noto Mono), they are often indistingu... | 20 |
programminghorror | SnasSn | hwl1zgp | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Thats why I love VS Codes ambiguous character highlighting feature!<|eor|><|sor|>Seems like a pain in the ass to have random characte... | 20 |
programminghorror | mszegedy | hwkmna8 | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Fun fact, there are about a dozen lookalikes of the lowercase 'o' that you can use to make this even worse.
What book or resource is... | 17 |
programminghorror | VOIPConsultant | hwklu1w | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>This is an affirmative defense for murder.
Judge: "why did you kill your coworker?"
You: "they used a Greek question mark as a var... | 14 |
programminghorror | PranshuKhandal | hwlsp2l | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Fun fact, there are about a dozen lookalikes of the lowercase 'o' that you can use to make this even worse.
What book or resource is... | 13 |
programminghorror | jamesy9868 | hwl1oeq | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>I recall a video that discusses ambiguous characters in the context of phishing emails. Not many email clients (web or local) try to ... | 12 |
programminghorror | ydoiwantreddit | hwko43w | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Fun fact, there are about a dozen lookalikes of the lowercase 'o' that you can use to make this even worse.
What book or resource is... | 11 |
programminghorror | WickedMonkeyJump | hwkysf0 | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Genuine question: what is actually the point of having unicode characters in identifiers? Why not just use ascii 256?<|eor|><|sor|>No... | 11 |
programminghorror | noman_032018 | hwlstrr | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Thats why I love VS Codes ambiguous character highlighting feature!<|eor|><|sor|>Seems like a pain in the ass to have random characte... | 10 |
programminghorror | technologyclassroom | hwl3uok | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Reminds me of https://www.bleepingcomputer.com/news/security/invisible-characters-could-be-hiding-backdoors-in-your-javascript-code/<... | 9 |
programminghorror | IanisVasilev | hwkb7et | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Cyrillic and Latin scripts have a lot of similar-looking letters, and in monospaced fonts (e.g. Noto Mono), they are often indistingu... | 9 |
programminghorror | EasyMrB | hwkk96f | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>The judge would dismiss the murder chargers, I promise you.<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | Rudxain | hwm7kfl | <|sols|><|sot|>Hope whoever has to debug this is wearing a helmet cause they'll definitely smash their head against the wall<|eot|><|sol|>https://i.redd.it/386qjaq7e7h81.png<|eol|><|sor|>Reminds me of https://www.bleepingcomputer.com/news/security/invisible-characters-could-be-hiding-backdoors-in-your-javascript-code/<... | 8 |
programminghorror | Terroractly | p6nsda | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|eols|><|endoftext|> | 1,566 |
programminghorror | alnp1987 | h9f4tsf | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>But why?<|eor|><|sor|>At times machines get too predictable for their own good and you gotta inject them some entropy to keep them in line<|eor|><|eols|><|endoftext|> | 387 |
programminghorror | Lmerz0 | h9e3xwh | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>But why?<|eor|><|eols|><|endoftext|> | 341 |
programminghorror | orclev | h9eqwf7 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>So I've heard of bogosort, but this is the first I've ever seen a bogoiterate.<|eor|><|eols|><|endoftext|> | 308 |
programminghorror | DrMaxwellEdison | h9fef15 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>But why?<|eor|><|sor|>At times machines get too predictable for their own good and you gotta inject them some entropy to keep them in line<|eor|><|sor|>Doing our part to slow down the robot uprising by consuming compute times ... | 137 |
programminghorror | D4SM4DD1N | h9eccci | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>It doesn't check for i < 0<|eor|><|sor|>assuming iterList is just an array, you don't need to check for i < 0.
accessing iterList\[-1\] gets the last item in iterList, iterList\[-2\] second to last and so on...
​
The ... | 107 |
programminghorror | orclev | h9ev6sz | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>I learned some C and ST back in the days... I tried to unterstand what is going on but don't get it...
Would anyone mid explaining it please?<|eor|><|sor|>Each pass through the loop it randomly shifts the index up or down bet... | 81 |
programminghorror | Green_Opposite | h9feqh2 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>But why?<|eor|><|sor|>At times machines get too predictable for their own good and you gotta inject them some entropy to keep them in line<|eor|><|sor|>https://esolangs.org/wiki/Entropy<|eor|><|eols|><|endoftext|> | 66 |
programminghorror | StenSoft | h9e7ev7 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>It doesn't check for i < 0<|eor|><|eols|><|endoftext|> | 65 |
programminghorror | AidanWoolley | h9egpka | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>It doesn't check for i < 0<|eor|><|sor|>assuming iterList is just an array, you don't need to check for i < 0.
accessing iterList\[-1\] gets the last item in iterList, iterList\[-2\] second to last and so on...
​
The ... | 62 |
programminghorror | Epicguru | h9eksdd | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>Have fun solving this bug if it were C or C++<|eor|><|sor|>This isn't a bug, it's just crap code.
I'd say burn it and start again regardless of language, and maybe don't write code while tripping balls next time.<|eor|><|eols|... | 52 |
programminghorror | StenSoft | h9ecicc | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>It doesn't check for i < 0<|eor|><|sor|>assuming iterList is just an array, you don't need to check for i < 0.
accessing iterList\[-1\] gets the last item in iterList, iterList\[-2\] second to last and so on...
​
The ... | 46 |
programminghorror | PrincessRTFM | h9fnc58 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>I learned some C and ST back in the days... I tried to unterstand what is going on but don't get it...
Would anyone mid explaining it please?<|eor|><|sor|>Each pass through the loop it randomly shifts the index up or down bet... | 43 |
programminghorror | Prize_Bass_5061 | h9g0l4e | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>I learned some C and ST back in the days... I tried to unterstand what is going on but don't get it...
Would anyone mid explaining it please?<|eor|><|sor|>Each pass through the loop it randomly shifts the index up or down bet... | 42 |
programminghorror | AidanWoolley | h9ep19m | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>It doesn't check for i < 0<|eor|><|sor|>assuming iterList is just an array, you don't need to check for i < 0.
accessing iterList\[-1\] gets the last item in iterList, iterList\[-2\] second to last and so on...
​
The ... | 41 |
programminghorror | Shockwave2309 | h9epqju | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>I learned some C and ST back in the days... I tried to unterstand what is going on but don't get it...
Would anyone mid explaining it please?<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | Lightfire228 | h9g0yfz | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>I learned some C and ST back in the days... I tried to unterstand what is going on but don't get it...
Would anyone mid explaining it please?<|eor|><|sor|>Each pass through the loop it randomly shifts the index up or down bet... | 32 |
programminghorror | Nevermind04 | h9fdk54 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>Is that like, a brownian motion iterator?<|eor|><|sor|>When the project director sees that commit, he'll have a brownian motion.<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | theK1ngF1sh | h9fty8n | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>But why?<|eor|><|sor|>At times machines get too predictable for their own good and you gotta inject them some entropy to keep them in line<|eor|><|sor|>https://esolangs.org/wiki/Entropy<|eor|><|sor|>Some people just want to wa... | 30 |
programminghorror | elzaidir | h9euqyh | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>Is that like, a brownian motion iterator?<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | PrincessRTFM | h9g1rw8 | <|sols|><|sot|>Cursed iterator<|eot|><|sol|>https://i.redd.it/2gvr2d7s53i71.png<|eol|><|sor|>I learned some C and ST back in the days... I tried to unterstand what is going on but don't get it...
Would anyone mid explaining it please?<|eor|><|sor|>Each pass through the loop it randomly shifts the index up or down bet... | 20 |
programminghorror | B5656 | ldcu7o | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|eols|><|endoftext|> | 1,558 |
programminghorror | glieseg | gm5c9sr | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|eols|><|endoftext|> | 390 |
programminghorror | B5656 | gm5dlz6 | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|soopr|>If I remember well,... | 290 |
programminghorror | glieseg | gm5f9vi | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|soopr|>If I remember well,... | 225 |
programminghorror | aldiprayogi | gm5bpvl | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>It'll be easy to write the test at least<|eor|><|eols|><|endoftext|> | 140 |
programminghorror | Mr_Simba | gm5i1cs | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>What's even the purpose of the switch-statement here?<|eor|><|sor|>Of course there's no point in this context, but tbh if the expectation is that more cases will be added in there I don't really see this as being a... | 101 |
programminghorror | Macambira | gm5m4pr | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>you know, it's kinda smart and futureproofed. this function can scale because all you have to do is add cases to the switch statement.<|eor|><|sor|>Or you could add the switch statement when it will be necessary, s... | 80 |
programminghorror | 5p4n911 | gm68lga | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|soopr|>If I remember well,... | 58 |
programminghorror | kuemmel234 | gm5lqdi | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>you know, it's kinda smart and futureproofed. this function can scale because all you have to do is add cases to the switch statement.<|eor|><|sor|>No, no its not.<|eor|><|sor|>Why not? A compiler is likely to just... | 55 |
programminghorror | lordofkooks | gm5f59e | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>you know, it's kinda smart and futureproofed. this function can scale because all you have to do is add cases to the switch statement.<|eor|><|eols|><|endoftext|> | 54 |
programminghorror | sellithy | gm5rhvh | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|soopr|>If I remember well,... | 36 |
programminghorror | loveshh | gm7h9w5 | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>It'll be easy to write the test at least<|eor|><|sor|>Were supposed to write tests?!<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | B5656 | gm5dn4f | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>What language is this supposed to be<|eor|><|soopr|>JavaScript<|eoopr|><|eols|><|endoftext|> | 27 |
programminghorror | Mr_Simba | gm5phto | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>What's even the purpose of the switch-statement here?<|eor|><|sor|>Of course there's no point in this context, but tbh if the expectation is that more cases will be added in there I don't really see this as being a... | 25 |
programminghorror | n0tKamui | gm5gm80 | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|soopr|>If I remember well,... | 24 |
programminghorror | Beach-Devil | gm5d7aj | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>What language is this supposed to be<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | TheJoker273 | gm5jc70 | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>you know, it's kinda smart and futureproofed. this function can scale because all you have to do is add cases to the switch statement.<|eor|><|sor|>I agree. If you expect a small number of cases to be added, this d... | 21 |
programminghorror | earthqaqe | gm7w91b | <|sols|><|sot|>When our designer try coding<|eot|><|sol|>https://i.redd.it/irtxi1196pf61.png<|eol|><|sor|>Tbh, if this was just him learning how to code and he plans to expand the switch, it's not that terrible. Yes it could be written smarter and shorter but for a beginner it's fine.<|eor|><|soopr|>If I remember well,... | 20 |
programminghorror | ZoopTEK | mgpemw | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|eols|><|endoftext|> | 1,558 |
programminghorror | 42-monkeys | gsumnlz | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|eols|><|endoftext... | 521 |
programminghorror | BurritoBooster | gsuk5jh | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|eols|><|endoftext|> | 462 |
programminghorror | NatoBoram | gsusiwc | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 396 |
programminghorror | ZoopTEK | gsuwfz7 | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 198 |
programminghorror | BurritoBooster | gsuo4im | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 196 |
programminghorror | chaosTechnician | gsumkv4 | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Are you instantiating an object during another object's `Update`? This might be your issue:
[https://docs.unity3d.com/Manual/ExecutionOrder.html](https://docs.unity3d.com/Manual/ExecutionOrder... | 180 |
programminghorror | NatoBoram | gsuxmsb | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 130 |
programminghorror | ZoopTEK | gsunl9b | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Are you instantiating an object during another object's `Update`? This might be your issue:
[https://docs.unity3d.com/Manual/ExecutionOrder.html](https://docs.unity3d.com/Manual/ExecutionOrder... | 74 |
programminghorror | Ingenrollsroyce | gsv2v9h | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 71 |
programminghorror | chaosTechnician | gsuw3dh | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Are you instantiating an object during another object's `Update`? This might be your issue:
[https://docs.unity3d.com/Manual/ExecutionOrder.html](https://docs.unity3d.com/Manual/ExecutionOrder... | 60 |
programminghorror | ZoopTEK | gsugik9 | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>I've done a little work with Unity but not extremely familiar with it... guessing that whatever sets \_isStarted to true is asynchonous and doesn't always finish executing before Update gets cal... | 55 |
programminghorror | apola | gsudvgd | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>I've done a little work with Unity but not extremely familiar with it... guessing that whatever sets \_isStarted to true is asynchonous and doesn't always finish executing before Update gets cal... | 49 |
programminghorror | lukeamaral | gsv49jr | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 46 |
programminghorror | Cerus_Freedom | gsulalh | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>I've done a little work with Unity but not extremely familiar with it... guessing that whatever sets \_isStarted to true is asynchonous and doesn't always finish executing before Update gets cal... | 34 |
programminghorror | tinyogre | gsvgj0c | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Awake will a... | 33 |
programminghorror | ZoopTEK | gsun2wg | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>I've done a little work with Unity but not extremely familiar with it... guessing that whatever sets \_isStarted to true is asynchonous and doesn't always finish executing before Update gets cal... | 31 |
programminghorror | BakuhatsuK | gsv59l5 | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Use the Awake function instead of Start. It will always be executed before the Update and Start function.<|eor|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but sta... | 23 |
programminghorror | BakuhatsuK | gsv89av | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>Yeah but start is called on the first frame the script becomes active and awake is called on initialization. So start should have a higher chance of being executed after update than awake.<|eor|... | 23 |
programminghorror | ZoopTEK | gsuvp3o | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>I've done a little work with Unity but not extremely familiar with it... guessing that whatever sets \_isStarted to true is asynchonous and doesn't always finish executing before Update gets cal... | 21 |
programminghorror | lukeamaral | gsv7w9d | <|sols|><|sot|>Unity Execution Order. Discuss among yourselves.<|eot|><|sol|>https://i.redd.it/1b6ifg5s78q61.png<|eol|><|sor|>..., except when Unity randomly decides it isn't?<|eor|><|sor|>Yeah but start is called on the first frame the script becomes active and awake is called on initialization. So start should have a... | 17 |
programminghorror | LifelessLife123 | 10ek59n | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|eols|><|endoftext|> | 1,547 |
programminghorror | consytr | j4riivd | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>... just making sure. ..<|eor|><|eols|><|endoftext|> | 460 |
programminghorror | LifelessLife123 | j4rm73g | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>... just making sure. ..<|eor|><|soopr|>Those pesky cosmic rays, just making sure.<|eoopr|><|eols|><|endoftext|> | 262 |
programminghorror | Axillent | j4rkehq | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Been there - done that. Lucky for me, I don't do things like this anymore because my IDE acutally tells me that I've done something wrong on the line and tells me there is a shorter way to fullfill the statem... | 144 |
programminghorror | Only_Explorer5896 | j4sae4v | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>... just making sure. ..<|eor|><|soopr|>Those pesky cosmic rays, just making sure.<|eoopr|><|sor|>The chance is small but never zero<|eor|><|eols|><|endoftext|> | 80 |
programminghorror | r3dditor12 | j4rmint | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>The problems is, I'm ALWAYS tired.<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | justfuckoff22 | j4ryvdb | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Been there - done that. Lucky for me, I don't do things like this anymore because my IDE acutally tells me that I've done something wrong on the line and tells me there is a shorter way to fullfill the statem... | 70 |
programminghorror | ohcomonalready | j4s9p7d | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>... just making sure. ..<|eor|><|sor|>But they arent, as the second condition wont be evaluated when the making sure is needed.<|eor|><|sor|>if argc == 4 then the second condition will be evaluated tho<|eor|>... | 54 |
programminghorror | gRagib | j4rzbei | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>argc is a generator that returns a different value every time it is called. Like /dev/urandom.<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | LifelessLife123 | j4s3lwp | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>argc is a generator that returns a different value every time it is called. Like /dev/urandom.<|eor|><|soopr|>Exactly! It's not argument counter, but
a- A
r- Random
g- Generator
c - Counter<|eoopr|><|eols... | 38 |
programminghorror | naturalizedcitizen | j4sgj56 | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Been there - done that. Lucky for me, I don't do things like this anymore because my IDE acutally tells me that I've done something wrong on the line and tells me there is a shorter way to fullfill the statem... | 30 |
programminghorror | Axillent | j4sv1n3 | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Been there - done that. Lucky for me, I don't do things like this anymore because my IDE acutally tells me that I've done something wrong on the line and tells me there is a shorter way to fullfill the statem... | 30 |
programminghorror | LifelessLife123 | j4rmstd | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>The problems is, I'm ALWAYS tired.<|eor|><|soopr|>I feel you. I can't sleep after I wake up, so if I wake up 4 AM to go to the bathroom I won't be able to sleep again.<|eoopr|><|eols|><|endoftext|> | 29 |
programminghorror | sawltrod | j4rpuih | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Youre prepared for quantum computing!<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | dgollas | j4slm55 | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>... just making sure. ..<|eor|><|sor|>But they arent, as the second condition wont be evaluated when the making sure is needed.<|eor|><|sor|>if argc == 4 then the second condition will be evaluated tho<|eor|>... | 25 |
programminghorror | naturalizedcitizen | j4sxml3 | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Been there - done that. Lucky for me, I don't do things like this anymore because my IDE acutally tells me that I've done something wrong on the line and tells me there is a shorter way to fullfill the statem... | 24 |
programminghorror | guest-unknown | j4rgdgx | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>This hurts my brain<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | bluenautilus2 | j4tvsda | <|sols|><|sot|>Don't code when you're tired, lol.<|eot|><|sol|>https://i.redd.it/ctoohnqjhnca1.png<|eol|><|sor|>Been there - done that. Lucky for me, I don't do things like this anymore because my IDE acutally tells me that I've done something wrong on the line and tells me there is a shorter way to fullfill the statem... | 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.