Monday, 30 July 2007
Final static fields can be initialised in static initialiser
Continuing my list of Things that I still discover about Java I anticipate a loud "feeww" from most of you java programmers. I nevertheless confess that I never used it before and just now discovered that it is at all possible. That is, just as final instance fields can be initialised in the constructor (which I use a lot), static final fields can be initialised in the static intialiser, a "static class constructor". I really like this language feature as it adds compiler checks on potential encapsulation violations:
private final static File someFile;
static {
someFile = ...;
}
Labels: java, programming, software
Thursday, 19 April 2007
AccuRev experience anyone?
For couple of days I have been evaluating AccuRev SCM software - it is a modern commercial version control system based on their unusual concepts of streams. Streams hierarchy is supposed to reflect stages in development process. The version control part of it looks solid with all necessary boxes ticked and even more. Atomic commits, native support for directory moves/renames, support for links, speed etc. But as always nothing can tell you whether the beast worth the money until you have some long term experience with it. Just by chance have anyone used AccuRev? Any pitfalls? How does this stream concept with hierarchical promotions work for you?
Labels: accurev, programming, scm, software, vcs