realization

Jul 16, 2008 16:34

So after working on a simulation platform for my robots in Java for some time, and having done large projects in C++, I am slowly coming to the conclusion that "Java is not significantly easier than C++"

Some caveats :
  1. I am comparing templatized C++ with STL and Boost to Java with Generics. Day to day use of either language changes radically if one omits templates, generics, STL, or java.util
  2. Last time I used C++, anything that wasn't performance critical used Boost's "smart pointer" library, thus alleviating garbage collection issues. Many things that were performance critical used custom allocators, and careful avoidance of having to do too much memory management.
  3. Last time I used C++ we used a coding standard that was basically designed by former Java programmers. I do recommend using Java as a style inspiration for anyone still programming in C++
  4. I am so hooked on templates that I find java.lang to be almost unusable without the addition of Java generics.
  5. I usually get stuck on "computational geometry code" This was probably not what Java was designed to do. I also tend not to use a lot of non-trivial parallelism, but I could imagine this being much more of a problem in C++ than in Java.

  6. I have programmed in C/C++ for years. I am probably biased in ways I'm not even aware of.
Previous post Next post
Up