wiki:CodingConventions

Version 4 (modified by Gavin, 15 years ago) (diff)

--

Coding Conventions

Coding conventions are a preffered way of doing things.

Files

  • Although Grails can handle both dos (\r\n) and *nix (\r) line ends *nix is preffered.
  • It is project policy not to include developer names in the source files, recognition will be given in better and more visible ways.

Format

  • Please set-up your IDE or editor to use a indent of 4 spaces, with no tabs.
  • Follow the generally used formatting of code you see in Grails and the project.

Grails

  • As much as possible will keep the CRUD pages as generated by "grails generate-all"
  • For example the view show is retained as is for application administration.
  • If we want to modify the show view, create a copy called showDetail in the views and controller logic then modify those.