MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/11awrx3/_/
r/badcode • u/ParticularSoil2425 • Feb 24 '23
28 comments sorted by
61
original post
44 u/gay_for_glaceons Feb 24 '23 I saw that post earlier, and was worried this post was related to it...The added context only makes that original post so much worse.
44
I saw that post earlier, and was worried this post was related to it...
The added context only makes that original post so much worse.
126
why do I feel there's a
answer = user.input() runtime.exec(answer + "()")
hiding somewhere..
15 u/itsTyrion Feb 25 '23 You can do that in C#? 20 u/Fortune117 Feb 25 '23 yeah you can use reflection for that 4 u/O_X_E_Y Feb 25 '23 oh lord i think you might be right 2 u/greenhaveproblemexe Feb 25 '23 Vulnerability potential 2 u/ExistedDim4 Feb 26 '23 They put a fucking eval() into C#
15
You can do that in C#?
20 u/Fortune117 Feb 25 '23 yeah you can use reflection for that
20
yeah you can use reflection for that
4
oh lord i think you might be right
2
Vulnerability potential
2 u/ExistedDim4 Feb 26 '23 They put a fucking eval() into C#
They put a fucking eval() into C#
38
Image Transcription: Code
//----------- // french wrong answers //----------- private void baton() { myFX.PlayOneShot(wrongFx); // wrong sound } private void bate() { myFX.PlayOneShot(wrongFx); // wrong soun } private void automatic() { myFX.PlayOneShot(wrongFx); // wrong soun } private void automobile() { myFX.PlayOneShot(wrongFx); // wrong sound } private void motor() { myFX.PlayOneShot(wrongFx); // wrong sound } private void motion() { myFX.PlayOneShot(wrongFx); // wrong sound } private void cream() { myFX.PlayOneShot(wrongFx); // wrong sound } private void skateboard() { myFX.PlayOneShot(wrongFx); // wrong sound }
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
3 u/YourAverageNutcase Feb 25 '23 Good human
3
Good human
36
cream()
15 u/Bryan-343 Feb 25 '23 cum()
cum()
This hurts.
Honestly code like this just makes me feel tired. Imagine trying to keep this up to date.
7
Reminds me of the shit I found in some cucumber step definitions once.
3 u/HereComesCunty Feb 25 '23 cucumber stepKeeps repeating on you?
cucumber step
Keeps repeating on you?
Who needs data structures, when the code can be your data structure.
[Mind-blowing.gif]
Lol no caption needed
Ok OP you convinced me. I sort of defended the author in original post but yeah… you’re right, this is not good. And I imagine there’s more of this haha
1
Without context I wouldn't call it bad code. Could be a facade class or placeholder sound effects.
The audio code of our technical artist looks very familiar...
2 u/picl33 Feb 25 '23 Why's your tech artist writing audio code? 😅
Why's your tech artist writing audio code? 😅
They need cutting edge else technology
else
1 u/SarahC Feb 25 '23 The speed of the block of code then changes each run through! 1 u/Silly-Freak Feb 26 '23 oh, the original code indeed used switch. I'm honestly surprised! Cutting edge default technology then.
The speed of the block of code then changes each run through!
1 u/Silly-Freak Feb 26 '23 oh, the original code indeed used switch. I'm honestly surprised! Cutting edge default technology then.
oh, the original code indeed used switch. I'm honestly surprised! Cutting edge default technology then.
default
for (int i = 0; int < myFx.Length; i++) { Debug.Log("wtf?"); }
LGTM 🚢🚢
61
u/ParticularSoil2425 Feb 24 '23
original post
126
u/iEliteTester Feb 24 '23
why do I feel there's a
hiding somewhere..
38
u/[deleted] Feb 24 '23 edited Feb 24 '23
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
36
u/Vivid-Sherbet Feb 24 '23
cream()
15
u/[deleted] Feb 24 '23
This hurts.
15
u/scrappy-paradox Feb 24 '23
Honestly code like this just makes me feel tired. Imagine trying to keep this up to date.
7
u/ThatNextAggravation Feb 25 '23
Reminds me of the shit I found in some cucumber step definitions once.
7
u/Franks2000inchTV Feb 25 '23
Who needs data structures, when the code can be your data structure.
[Mind-blowing.gif]
3
u/domtriestocode public static Feb 24 '23
Lol no caption needed
2
u/Exotic-Poetry4219 Feb 25 '23
Ok OP you convinced me. I sort of defended the author in original post but yeah… you’re right, this is not good. And I imagine there’s more of this haha
1
u/randall131 Feb 25 '23
Without context I wouldn't call it bad code. Could be a facade class or placeholder sound effects.
1
u/Impossible_Average_1 Feb 25 '23
The audio code of our technical artist looks very familiar...
1
u/Silly-Freak Feb 25 '23
They need cutting edge
elsetechnology1
u/shanster925 Feb 25 '23
1
u/[deleted] Feb 26 '23
LGTM 🚢🚢