• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code Formating in SCJD

 
Luiz Reginaldo Curado
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I have a question before submitting my assignment. Are you using some code conventions about the size of one line of code, etc? Are you using the default Java conventions of 80 columns per line?

What do you think? Am I being paranoic about this???

[ April 23, 2007: Message edited by: Luiz Reginaldo Curado ]
 
Lucy Hummel
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I just use the default seetings for Eclipse to format my java-files and hoping that is fine with Sun.
 
Luiz Reginaldo Curado
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hummel,

My assignment say nothing about code conventions... Because of this I wanted to listen some other opinion before submit it.

Ok, I will work to format the code.

Thanks!
 
Lucy Hummel
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my opinion:

Code Convention is a not mentioned requirement that should be full filled.
 
Arno Reper
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My opinion is : its a Sun certification and its implicit that we have to respect the javabeans and the good way of programming(writing) java.

Arno


ps: is it so warm in your place? Damn weather...27� here in Brussel
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People,

the exam name is sun certified java tra la la. So this give us two clues
1.it comes from sun
2.it is about java

And now let's try to combine them : sun - java code convetions(http://java.sun.com/docs/codeconv/).

For the "Eclipse" pepope (I am aslo one of them)
The default eclipse formatter is "Eclipse Build in ..." and this is not 100% the java style - I recommend to take the java formatter and to adapt it to your needs.

Regards M.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic