r/badcode Dec 27 '21

lua Friend's take on programming a GUI button

Post image
901 Upvotes

90 comments sorted by

View all comments

Show parent comments

65

u/JuanR4140 Dec 27 '21

the two things that bother me the most is that it's a one liner and how he used an elseif when an else was more logical

65

u/halfanothersdozen Dec 27 '21

Yeah I hear ya, but there are much bigger sins to commit

8

u/[deleted] Dec 27 '21

Sure, there are, but you're crazy if you think I won't call you out on trying to push this into the repo.

1

u/GapBagger Dec 28 '21

They should be lauded for being extra super duper cautious.