Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Coding Standards in OCMJD

 
Laurent Martin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

Just a questions about Coding Standards in OCMJD : Is the respect of the Java code Conventions a 'must' or a ‘should’ ?

Can I use m_ prefix for my instance variable names, if I justify my own convention and use it everywhere throughout my assignment ?

Thanks,

Laurent
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Laurent,

Welcome to the JavaRanch!

I don't think there is an explicit must requirement in the instructions to follow the java code conventions, so you will not fail automatically, but you might lose some points for not following them. But I guess consistent use of any convention is more important than which convention you use.
My IDE gives my instance variables another look than local variables, so no need to give them some prefix...

Kind regards,
Roel
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Laurent.

Champ, the recommendation is that the candidate should follow code conventions, preferably the ones provided by Sun. You can find them here.

Also, there are some conventions regarding JavaDocs, which I also advise you to follow. You can find them here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic