Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

standardisation for coding

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Help Ranchers Please!!
Im looking for a reference or url that defines the coding standard for Java 2:
Code style eg does the brace go adjacent to the
identifier or under the identifier? re both styles acceptable in the same program?
Indenting
spaces between keywords and braces and
brackets
Comments style
Javadoc comments
What is compulsory and what is optional
Comments for methods
Design documentation. UML? which version or can you make your own using combination?
Please help as resource is required urgently.
I am preparing a standardisation for university course.
Regards,
Stephen Batsas
SCPJ2
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
 
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is also an excellent book call "Elements of Java Style". It is a wee little pocket reference but has a ton of information and guidelines beyond simple syntax standardization. We have a couple of copies that constantly circulate around the office. Check it out here
http://www.amazon.com/exec/obidos/ASIN/0521777682/ref=ase_ambysoftinc/103-6203999-2617407

Sean
 
Stephen Batsas
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ranchers!!!
Info is great help.
Regards
Stephen Batsas
SCPJ2
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is Javaranch's own Chicken Coop
 
This one time, at bandcamp, I had relations with a tiny ad.
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic