Sunday, 10 February 2008

Java habits

Work on OGE's core and utilities is progressing slowly but steadily. I'm currently working on a group of utility classes (Map, List and possibly Queue and Stack). For each of these, there will be a thread-safe and non thread-safe version. These probably won't be used directly in the core or the systems but are provided for faster prototyping or for users that aren't as familiar with multithreaded programming.

Over the past semester at university i've been using Java alot and didn't get alot of time to program in C++. I'm now finding various Java habits are affecting my programming. An example, i keep writing the visibility of member functions and variables with the declarations, like "public int a;" which is invalid C++ code. Another habit is writing boolean instead of bool, which is the opposite of the problem i had when starting to program in Java after using C++ alot. This is very fustrating...

No comments: