[OSM-dev] java applet reformatted

Immanuel Scholz immanuel.scholz at gmx.de
Tue Feb 21 17:50:34 GMT 2006


Hi,

I finished reformatting and commenting the applet.

For future editing of the java applet, I want YOU to respect some of the
java coding standards ;-)

- Tab size is 4
- For naming, abbreviations are treated like words. GpxParser, not
GPXParser. OsmApplet, not OSMApplet etc...
- Javadoc comments are cool!
- Dead code stinks! Remove it instead of comment it out. It can be revived
from Subversion anyway.

Some tecnical hints:

- Use base classes or interfaces instead of the concrete objects, if
possible. Collection instead of Vector, Map instead of Hashtable...
- Use the most restricting modifier that fit. "private" is more
restricting than no modifier at all (default).
- Iterator is better than Enumeration.


Ciao, Imi.






More information about the dev mailing list