- "I format my code like that", yes but every developer format his code differently ...
- "Why having java collection if you can not use the directly", this speak of course against encapsulation and clear APIs...
- "I
put accessors at the end" "i want to see relevant code at the beginning
of classes and in the same order as execution" simply b... and not
object oriented at all, they do not think about object message but files
- "I never use the keywords this, it is not needed"
At
the end, You can discuss for hours, just for .... nothing, people don't
like to change, just auto format code, sort methods and most of them
are lost/complains/recommit their code on yours...
In order to force them or remove difference between coding practice, why not bringing
Checkstyle in your organization?
Checkstyle is a development tool to help programmers write Java code
that adheres to a coding standard. It automates the process of
checking Java code to spare humans of this boring (but important)
task. This makes it ideal for projects that want to enforce a coding
standard.
Checkstyle is highly configurable and can be made to support almost
any coding standard. An example configuration file is supplied
supporting the Sun Code
Conventions. As well, other sample configuration files are
supplied for other well known conventions. ¨
The best Eclipse plugin is available at http://eclipse-cs.sourceforge.net/
The only practicable way of is either to
Read more: EVERY developer is convince that his code is better
Category: Coding
Published Date
Written by Administrator
Hits: 6785