*     * splash@dei.uc.pt   26	  February	  2011	  
bonus tips
“    ”
1     Indentation1.1      Line length1.2      Wrapping lines1.3      Alignment2     White space2.1      Blank lines2.2    ...
1 - Indentation
1 - Indentation     Because it is a Java language coding       standard presented in the Java      Language Specification, ...
1 - Indentation   Because of line wrapping,    which will be explained           later on
1 - Indentation                  Because it is the                  Ruby convention
1 - Indentation                  Just because it makes                      your life easier
1 - Indentation
1.1 – Indentation – Line length    How it looks like using      90 cols per line
1.2 – Indentation – Wrapping lines
1.3 – Indentation – Alignment
1.3 – Indentation – Alignment
2.1 – White space - Blank lines
2.2 – White space - Blank spaces
2.2 – White space - Blank spaces
2.3 – White space – Trailing white space               http://andrei.gmxhome.de/anyedit/
3 – Naming conventions
3 – Naming conventions
4.1 – Declarations – Placement
5 – Dead Code
6.1 – Comments – Special comments
7 – Parenthesis   By Noel Rappin, from http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/.
7 – Parenthesis   By Noel Rappin, from http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/.
7 – Parenthesis   By Noel Rappin, from http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/.
1 – Commit messages
1   Reverting2   Messages
1 – Reverting                                                                                  DEV 1	   DEV 2	   By Taryn,...
2 – Messages  By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
1   Models2   Views3   Controllers
1 – Models  By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
1 – Models  By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
1 – Models  By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
2 – Views  By Neeraj Choudhary, from http://scribd.com/doc/2889649/Rails-coding-standards-defined.
3 – Controllers   By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
*     * splash@dei.uc.pt   26	  February	  2011	  
Coding Standards & Conventions for Java and Rails projects
Coding Standards & Conventions for Java and Rails projects
Coding Standards & Conventions for Java and Rails projects
Coding Standards & Conventions for Java and Rails projects
Upcoming SlideShare
Loading in...5
×

Coding Standards & Conventions for Java and Rails projects

2,422
-1

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,422
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
46
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Coding Standards & Conventions for Java and Rails projects

  1. 1. * * splash@dei.uc.pt 26  February  2011  
  2. 2. bonus tips
  3. 3. “ ”
  4. 4. 1 Indentation1.1 Line length1.2 Wrapping lines1.3 Alignment2 White space2.1 Blank lines2.2 Blank spaces2.3 Trailing white space3 Naming conventions4 Declarations4.1 Placement5 Dead Code6 Comments6.1 Special comments7 Parenthesis
  5. 5. 1 - Indentation
  6. 6. 1 - Indentation Because it is a Java language coding standard presented in the Java Language Specification, from Sun Microsystems
  7. 7. 1 - Indentation Because of line wrapping, which will be explained later on
  8. 8. 1 - Indentation Because it is the Ruby convention
  9. 9. 1 - Indentation Just because it makes your life easier
  10. 10. 1 - Indentation
  11. 11. 1.1 – Indentation – Line length How it looks like using 90 cols per line
  12. 12. 1.2 – Indentation – Wrapping lines
  13. 13. 1.3 – Indentation – Alignment
  14. 14. 1.3 – Indentation – Alignment
  15. 15. 2.1 – White space - Blank lines
  16. 16. 2.2 – White space - Blank spaces
  17. 17. 2.2 – White space - Blank spaces
  18. 18. 2.3 – White space – Trailing white space http://andrei.gmxhome.de/anyedit/
  19. 19. 3 – Naming conventions
  20. 20. 3 – Naming conventions
  21. 21. 4.1 – Declarations – Placement
  22. 22. 5 – Dead Code
  23. 23. 6.1 – Comments – Special comments
  24. 24. 7 – Parenthesis By Noel Rappin, from http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/.
  25. 25. 7 – Parenthesis By Noel Rappin, from http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/.
  26. 26. 7 – Parenthesis By Noel Rappin, from http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/.
  27. 27. 1 – Commit messages
  28. 28. 1 Reverting2 Messages
  29. 29. 1 – Reverting DEV 1 DEV 2 By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
  30. 30. 2 – Messages By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
  31. 31. 1 Models2 Views3 Controllers
  32. 32. 1 – Models By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
  33. 33. 1 – Models By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
  34. 34. 1 – Models By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
  35. 35. 2 – Views By Neeraj Choudhary, from http://scribd.com/doc/2889649/Rails-coding-standards-defined.
  36. 36. 3 – Controllers By Taryn, from http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html.
  37. 37. * * splash@dei.uc.pt 26  February  2011  
  1. ¿Le ha llamado la atención una diapositiva en particular?

    Recortar diapositivas es una manera útil de recopilar información importante para consultarla más tarde.

×