On Fri, 2007-08-24 at 08:15 +0000, Mark Carter wrote: > Nah ;) > > C++ couples functions and data, C decouples them. And decoupling > rocks. At least that's what the adverts say.
Coupling can be bliss or nightmare. At its best, it can sort C spaghetti into organised looms. At its worst, it can create whole new confusing layers of spaghetti. Look at GUI programming for example. Compare the raw MS Windows C API with the higher-level MFC MSVC C++ API. The former is a confusing and nit-picking nightmare. The latter is think and do, without fussing over innumerable details. Again - my strongest support is for basic C++ usage, including: - classes - inheritance - objects - methods - attributes - exceptions - templates - no smart-assed esoteric C++isms And, to make meaningful grouping of methods/attributes within classes. Cheers David > Also - and I've seen this before on a different project - if you're > doing something like handling different classes of say, file readers, > in C++ you have to resort to a lot of switches: > switch FILE_TYPE: > case MOV: file = new FileMove(); break; > case AVI: file = new FileAVI(); break; > ... > > whereas I was suggesting in a previous thread that a lot of this could > be combined in a table which one can scan through, and obtain the > polymorphism sought. The more I look at C++, the more I get to dislike > it, and I often think "oh hell, this would all just be easier in C". > > It would be nice to use a really high programming language, but we > live in a C world. > > > ----- Original Message ---- > From: David McNab <[EMAIL PROTECTED]> > To: [email protected] > Sent: Friday, 24 August, 2007 2:05:45 AM > Subject: Re: [CinCVS] Some of my thoughts on scripting > > > C++, if done right, offers enormous programming leverage: > - more readable code > - more maintainable code > - get more done in much less lines > - easy to extend > - eliminates a lot of menial and 'yak shaving' boilerplating > - create very satisfying and intuitive abstractions > > > > > > ______________________________________________________________________ > Yahoo! Answers - Get better answers from someone who knows. Try it > now. _______________________________________________ Cinelerra mailing list [email protected] https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
