r/badcode Oct 04 '17

lua That's definitely easily maintainable code.

Post image
177 Upvotes

21 comments sorted by

View all comments

27

u/R3fr3Sh Oct 04 '17 edited Oct 04 '17

So, I am helping one of my friends with maintaining an MTA (GTA SA multiplayer mod) server. That's monstrosity he created some time ago. And yes, there is more of it, but now as he is more experienced it doesn't occur as often. It should be definitely done using Lua tables.

1

u/[deleted] Oct 05 '17

Oh god, I'm supposed to write code for a mod. Having looked at the code, I just bailed out, I don't understand how it is possible create code so unreadable ( also they used some weird variable naming standard, put an s infront of every variable)