Skip to content

Code style and conventions #3

@ethomson

Description

@ethomson

The initial stuff that's here is following the coding conventions that we use at Microsoft for Java code. (Even writing this is really amusing.)

Although now that I look at my setup closer, I don't have this enabled on one of my machines. So it's possible that the code style is half MS code style and half Eclipse default.

On previous projects, we have adopted a standard code style and enforced it rigorously, in order to prevent needless churn from things like whitespace changes or brace changes. We use:

  • A well defined set of whitespace / code formatting rules
  • Save actions that apply these rules (eg, run Source -> Format) as well as some other rules (cleanup imports and - at least on some projects - add final where appropriate).

This has been great for us.

But then, I'm an Eclipse user (and work on a team with all Eclipse users.) If other people are using IntelliJ or NetBeans or what not, this may not be as helpful. Do you have thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions