![]() Topic awaiting preservation: Coding Style (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Florida |
![]() I've been meaning to poll you guys concerning coding style for awhile. code: <?php
code: <?php
code: <?php
|
Maniac (V) Inmate From: there...no..there..... |
![]() not a big programmer really (just mess around with it), but I like the Java Style the best. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() drawback of java style: You have to actually count the braces. Ok, any decent editor does this for you. still easier when you can just view where they line up. I prefer the c style. Also helps when you got 'bad' developers on your team that have lot's of nested levels and long methods... |
Paranoid (IV) Inmate From: New Jersey, USA |
![]() I started out using c-style but ended up being more comfortable with the java style, and although the VB-style is more economical I think it makes the code very hard to read. |
Maniac (V) Inmate From: under the bed |
![]() |
Maniac (V) Inmate From: Florida |
![]() Thanks for your input guys, btw I personally use a program called Beautify PHP which outputs in either C-Style or Java-Style with proper spacing/tabs which I find very handy for large bodies of code. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Didn't we have this thread before? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() hmm apparently it works in php, still don't like it though |
Maniac (V) Inmate From: Seoul, Korea |
![]() C style for me. I like my code to be both effective and aesthetically pleasing. I seek balance and harmony in all things. |
Maniac (V) Mad Scientist From: :morF |
![]() Definatley a C style coder. I don't have any problems with braces matching becuase I've gotten into the habit of whenever I open a bracket or open a brace I immediatley close it again. Saves counting the braces. I always know they're closed. |
Paranoid (IV) Inmate From: Milwaukee |
![]() This is relevant. |
Paranoid (IV) Inmate From: A graveyard of dreams |
![]() I prefer the Java-style (called K&R in the Jargon File). I've never had to count the brackets since I close them as soon as I open them, so I know that every thing is closed. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() I have to use the "Java-Style" if I don't my mind blows up. I like it as opposed to the C-Style because I don't have a waste line with a bracket ({) in it, and I find the "Java-Style" far more readable, XEmacs also follows "Java-Style" conventions by default, which I don't bother changing. |