There are many ways one can style code...some are just uglier (and
wrong-er :3).
Such as putting brackets on their own lines. I used to do this, but I think it was GK who actually taught me not to. o_o
Putting brackets on their own lines increases line size, which isn't really a bad thing, its just unnecessary; but not necessarily wrong.
The only thing that irks me, is when people dont indent properly. >:[
PHP Code:
function onCreated() {
zomg();
}
Drives me
crazy. Put the bracket on the indentation as the function declaration!
Because, if you do that all the time, you end up with very ugly scripts, especially if its not consistent.
PHP Code:
function onCreated() {
with (findplayer("Stefan")) {
if (player.hearts > 3) {
player.chat = "Hooray!";
}
}
}
WTF is that. What. Is. That.