Coding style

1 view
Skip to first unread message

Björn Lindberg

unread,
Apr 7, 2010, 5:43:56 PM4/7/10
to session-teste...@googlegroups.com
Hi,

Should we try to agree on a coding style for the project?
Stuff like:

* tab-length of four spaces, use spaces instead of tabs
* max. 80 characters per line
* how and what to javadoc, etc.

I can put something up on the wiki tomorrow if there is any interest.

/bjorn

JonathanKohl

unread,
Apr 7, 2010, 6:59:55 PM4/7/10
to Session Tester Development
Those sound good.
* TODO in areas that require attention

Henrik Almegren

unread,
Apr 9, 2010, 12:45:49 AM4/9/10
to session-teste...@googlegroups.com
Hi
A good proposal I think, except for the curly braces. Placing them on new lines deviates to much, in my taste, from the original Java Code Conventions from Sun. I believe the current Session Tester code is closer to the Sun conventions.

However, this is an old and somewhat ridicules discussion and it will never end. My suggestion is to remove this item from the convention and let it be a per file convention, so the reading is not disturbed by varying style within one file.

/Henrik

On 8 apr 2010, at 22.15, Björn Lindberg wrote:

> Hiya,
>
> I've added a suggestion for a few style rules at
> ... > Session Tester ... > Development > Coding Conventions.
>
> Please take a look and butcher anything you don't like.
>
> /bjorn

>> --
>> To unsubscribe, reply using "remove me" as the subject.
>

Jared Quinert

unread,
Apr 9, 2010, 12:53:18 AM4/9/10
to session-teste...@googlegroups.com
Awesome!  Only this morning I was dreaming about the curly braces war that was going to come when we started talking about coding conventions, and now it's here!
 
I think this makes us a real project now :)
 
 
Jared

Henrik Almegren

unread,
Apr 9, 2010, 1:15:49 AM4/9/10
to session-teste...@googlegroups.com
Hi again
I'm glad I could contribute. Let's not waste energy on it. I just couldn't let Björn get away with it.

/Henrik


Sent from my iPhone

Martin Jansson

unread,
Apr 9, 2010, 1:24:42 AM4/9/10
to session-teste...@googlegroups.com
We have similar wars in testing. Can't we just vote on the curly braces? =)
 
I am pro björn-style, btw.

Henrik Almegren

unread,
Apr 9, 2010, 1:45:29 AM4/9/10
to session-teste...@googlegroups.com
Amazing! I tried to state my opinion about those braces without starting up the old war but I guess that is just not possible. Sorry for this. But as Jared said, now it is a real project.

/Henrik  

Sent from my iPhone

Martin Jansson

unread,
Apr 9, 2010, 2:12:22 AM4/9/10
to session-teste...@googlegroups.com
Don't forget that by discussing something that many of you think is unnecissary we will get to know each other in the process.
 
I've had an ongoing debate/war with Rikard Edgren on whether you should start with a capital letter or not in the subject/synopsis of a bug.
 
Welcome the war!

JonathanKohl

unread,
Apr 9, 2010, 6:04:16 PM4/9/10
to Session Tester Development

Don't force me to make the judgment of Solomon here... ;)

Great discussion though, keep it up. As Jared said, finally we are a
real project. :-)

-Jonathan

Reply all
Reply to author
Forward
0 new messages