Subject: Exported From Confluence
Content-Type: text/html; charset=UTF-8
Anonymous SVN (Subversion)
The JANINO code repository is accessible through anonymous SVN. The loca=
tion URL is
If you want to contribute (i.e. commit files to the JANINO code reposito=
ry), turn to me.
The following guidelines must be obeyed by all contribu=
tors. (Why? Because I'm the despot, that's why.)
Stick to the existing formatting style:
- Always use four blanks to indent. NEVER use TABs.
- Fold long lines like this:
- Long lines of code are not a shame if they are properly folded and t=
hus perfectly readable.
- If a piece of code is used only once, don't put it in a method.
- If a piece of code is used more than once, put it in a method.
- Prefer simple techniques over elegant, but complicated ones. E.g. do=
n't define complex type hierarchies if a simple alternative exists.
- Don't comment the obvious.
- Comment everything that is not obvious. E.g., comment briefly what t=
he following ten complex lines of code do. Write useful JAVADOC for every p=
ublic class and member.
- Don't make changes unless there is a good reason. E.g. don't reforma=
t portions of code. Keep in mind that someone someday has to merge this cod=
- Be careful when committing. Know SVN; know what you're doing. Commit=
only code that compiles and works.
- Never commit into the main branch; this is the despot's domain!
- Discuss with the despot before creating branches.
- Write unit tests for everything you code. "tests/src/EvaluatorT=
ests.java" is a good starting point.
- Use the existing unit tests to verify that you didn't break anything=
- run "AllTests".