As everybody who programs knows, there is a rainbow array of different programming styles. Some are for minimalists, and others are for ‘readability’; or to be almost like reading a book. Although, some are very under developed and lack consistency. Which is why I’m making this thread.
Tell us about your style, why you do it, or the benefits of using it. I’ll share my opinion on semicolons first.
I usually program with Java, so I’m used to using semicolons. I’ll use semicolons in Lua because I’m just so used to it that it happens without me thinking about it. Although semicolons aren’t required in any way when using Lua, I prefer them because they give me a sense of completion in the line. I feel like snippets such as
[lua]local var = 0[/lua]
don’t quite end at zero, but continue on to the wrest of the lines. I know in my head they don’t, but I interpret it as I would other languages I’m more familiar with. (C/C++/Java)
[lua]local var = 0;[/lua]
Ah now it feels complete. You can all complain about how it’s dumb and adds extra bytes to the file size now.