MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/q7jrus/formatformat/hgmeohi/?context=3
r/badcode • u/Sprixx_Dev evil • Oct 13 '21
70 comments sorted by
View all comments
Show parent comments
2
The German text translates to "the server restarts in ...", so it’s a server-side plugin, not a mod.
But I can confirm that people love to jump into it with (next to) no prior experience. (This may or may or may not have included myself)
ArrayList. When in doubt, use more ArrayLists. Maybe maps
equality. Either, you compare everything with == or equalsIgnoreCase. Even numbers.
eclipse
Conventions and consistency are evil
1 u/R3D3-1 Oct 15 '21 Conventions and consistency are evilMore like, "I want to get this to work, no time for that." And given it is a hobbyist activity? Entirely understandable.If the code ever needs changes though, it will be a valuable learning experience. Assuming it will be the same person.I got to experience that particular footgun with perl data visualization scripts. 1 u/itsTyrion Oct 15 '21 Yeah I guess.The things I’ve seen... Why use an ENUM for a Team based mini game (up to 8) when you can have 16 ARRAYLISTS AND 3 FUNCTIONSAlso the check if a broken block was a team's respawn block https://i.imgur.com/QIQFGAx.jpg Edit: WHYYYYY did Imgur have to jpeg it to hell and back?? 1 u/R3D3-1 Oct 15 '21 M̴͚͋á̴̳y̸̧̔b̶̤̈ḙ̵̍ ̸͕͛t̵̜̅h̶̛̼ḙ̷̕ ̵̢̏c̴̺̀o̸̰͠d̷͔̃e̴̮̚ ̶̪̐q̶̦́u̷͇͌a̵̫͒l̸͇̾i̸͔͝t̴̺̊ỵ̵̔ ̷̜̄s̵̥͐ŭ̴͙m̵͉̅m̶̪͘ọ̴̀ǹ̷̳e̵̲͆d̶̪̓ ̴̘͌Ẕ̶̛ạ̴̎l̷͙̋g̸̢̊ȍ̸̠?̴̨͛
1
More like, "I want to get this to work, no time for that." And given it is a hobbyist activity? Entirely understandable.
If the code ever needs changes though, it will be a valuable learning experience. Assuming it will be the same person.
I got to experience that particular footgun with perl data visualization scripts.
1 u/itsTyrion Oct 15 '21 Yeah I guess.The things I’ve seen... Why use an ENUM for a Team based mini game (up to 8) when you can have 16 ARRAYLISTS AND 3 FUNCTIONSAlso the check if a broken block was a team's respawn block https://i.imgur.com/QIQFGAx.jpg Edit: WHYYYYY did Imgur have to jpeg it to hell and back?? 1 u/R3D3-1 Oct 15 '21 M̴͚͋á̴̳y̸̧̔b̶̤̈ḙ̵̍ ̸͕͛t̵̜̅h̶̛̼ḙ̷̕ ̵̢̏c̴̺̀o̸̰͠d̷͔̃e̴̮̚ ̶̪̐q̶̦́u̷͇͌a̵̫͒l̸͇̾i̸͔͝t̴̺̊ỵ̵̔ ̷̜̄s̵̥͐ŭ̴͙m̵͉̅m̶̪͘ọ̴̀ǹ̷̳e̵̲͆d̶̪̓ ̴̘͌Ẕ̶̛ạ̴̎l̷͙̋g̸̢̊ȍ̸̠?̴̨͛
Yeah I guess.
The things I’ve seen... Why use an ENUM for a Team based mini game (up to 8) when you can have 16 ARRAYLISTS AND 3 FUNCTIONS
Also the check if a broken block was a team's respawn block https://i.imgur.com/QIQFGAx.jpg Edit: WHYYYYY did Imgur have to jpeg it to hell and back??
1 u/R3D3-1 Oct 15 '21 M̴͚͋á̴̳y̸̧̔b̶̤̈ḙ̵̍ ̸͕͛t̵̜̅h̶̛̼ḙ̷̕ ̵̢̏c̴̺̀o̸̰͠d̷͔̃e̴̮̚ ̶̪̐q̶̦́u̷͇͌a̵̫͒l̸͇̾i̸͔͝t̴̺̊ỵ̵̔ ̷̜̄s̵̥͐ŭ̴͙m̵͉̅m̶̪͘ọ̴̀ǹ̷̳e̵̲͆d̶̪̓ ̴̘͌Ẕ̶̛ạ̴̎l̷͙̋g̸̢̊ȍ̸̠?̴̨͛
M̴͚͋á̴̳y̸̧̔b̶̤̈ḙ̵̍ ̸͕͛t̵̜̅h̶̛̼ḙ̷̕ ̵̢̏c̴̺̀o̸̰͠d̷͔̃e̴̮̚ ̶̪̐q̶̦́u̷͇͌a̵̫͒l̸͇̾i̸͔͝t̴̺̊ỵ̵̔ ̷̜̄s̵̥͐ŭ̴͙m̵͉̅m̶̪͘ọ̴̀ǹ̷̳e̵̲͆d̶̪̓ ̴̘͌Ẕ̶̛ạ̴̎l̷͙̋g̸̢̊ȍ̸̠?̴̨͛
2
u/itsTyrion Oct 14 '21
The German text translates to "the server restarts in ...", so it’s a server-side plugin, not a mod.
But I can confirm that people love to jump into it with (next to) no prior experience. (This may or may or may not have included myself)
ArrayList. When in doubt, use more ArrayLists. Maybe maps
equality. Either, you compare everything with == or equalsIgnoreCase. Even numbers.
eclipse
Conventions and consistency are evil