Support

Forums

Contact Me

Posts Tagged 'guideline'

Guideline

A guideline is a statement by which to determine a course of action. A guideline aims to streamline particular processes according to a set routine or sound practice. [http://en.wikipedia.org/wiki/Guideline]

EVERY developer is convince that his code is better

  • "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 
Articles tagged

Read more: EVERY developer is convince that his code is better

Better readability of source code

I just activated the mambots Geshi (standard in Mambo 4.5.2 ) on my Homepage, now all code in my pages (between <pre> and </pre> ) will be automaticaly highlighted and colored. More than 38 languages are now supported on my homepage!

actionscript - ada - apache - asm - asp - bash - c - c_mac - caddcl - cadlisp - cpp - csharp - css - delphi - html4strict - java - javascript - lisp - lua - mpasm - nsis - objc - oobas - oracle8 - pascal - perl - php-brief - php - python - qbasic - smarty - sql - vb - vbnet - visualfoxpro - xml

I will post later post an update for Mambo 4.5.2, instead of Geshi 1.0.4 You will soon be able to use Geshi 1.0.7 and an extended Mambot for Your personal use.

Enjoy ;-)

private long startStatistics() {
		long before = System.currentTimeMillis();
		if (logger.isDebugEnabled()) {
			logger.debug("Start conversion " );
		}
		return before;
	}

Donations

Thank You for supporting my work