There is nothing more annoying than trying to understand code that is impossible to read. Different developers have different ways of writing code and these differences cost time when new developers to a project need to understand whats going on.
One practice that I push developers on my teams to follow is to write code so that it seems like one developer wrote it. I have come across a best practice document, idiomatic, that many developers and myself use.
To add this to your Eclipse environment:
- Click Import and navigate to the idiomatic.xml file (attached in email)
- Click Apply then Ok
To apply the filter on your page you can press Ctrl+Shift+F. You can also set it up so that the filtering happens automatically on save. To do this:
- Check the first 2 checkboxes
You can download it here: idiomatic.xml