On Fri, Nov 25, 2005 at 11:59:34AM +0000, Paul wrote:
On Friday 25 November 2005 10:55, Jon Dye wrote:
In which case C++ is an odd language to have a go at. You can write non-OO apps in C++ and still benefit from using some of the other benefits like templates and the C++ (and C) standard libraries. If you'd said Java I'd have understood the argument as in Java everything has to be part of an object.
C is just a sebset of C++.. Slowly rewriting an application here using some of the features of C++ (data encapsulation, overloaded functions) and the difference in size of the final binary is minimal. I dare say if/when I start using STL things will go down hill, but fortunately there is little need for it except in perhaps one area. Using C++ gives me the oportunity to link to and use some interesting libraries to process B-Splines and also simplify the user interface.
As for Java - I don't have a good thing to say about it..
Oh I do. It frees development from those 'middle' errors.
The first layer of errors one fixes are the compiler errors, that's easy except for the odd abstruse one.
The next layer (the middle ones above) are the ones that (sometimes) cause seg faults and core dumps or just prevent your program from doing anything at all. Java prevents nearly all of these from happening, at least it stops a whole lot more of them than C/C++ does.
The final layer is the program logic errors where the program 'works' but doesn't give the right results (or not always anyway). No language will help much in fixing these errors.