View Single Post
  #71  
Old 05-04-2011, 07:01 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
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.
__________________

Reply With Quote