Preserved Topic: Coding Style |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: Florida |
posted 04-01-2003 16:05
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..... |
posted 04-01-2003 16:23
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 |
posted 04-01-2003 16:24
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 |
posted 04-01-2003 16:51
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 |
posted 04-01-2003 17:05 |
Maniac (V) Inmate From: Florida |
posted 04-01-2003 20:08
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 |
posted 04-01-2003 20:31
Didn't we have this thread before? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-01-2003 20:34
hmm apparently it works in php, still don't like it though |
Maniac (V) Inmate From: Seoul, Korea |
posted 04-01-2003 23:49
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 |
posted 04-02-2003 01:25
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 |
posted 04-02-2003 02:22
This is relevant. |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 04-02-2003 09:48
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 |
posted 04-02-2003 15:44
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. |