Re: [vox] Why C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vox] Why C?
Options:
1a. C pros:
- Portable across many systems.
- Low-level power at high-level syntax.
- Few rules to remember -> takes little time to learn everything
1b. C cons:
- The low-level nature requires lots of thinking and care.
2a. C++ pros:
- C compatibility
- OOP *or* procedural *or* hybrid programming
- Options, options, options...
2b. C++ cons:
- Too complex, which means:
- Takes forever to learn the syntax
- Takes forever to learn to use the features correctly
- Not very portable [at the moment] if you use advanced features
3a. PERL pros:
- Portable, if PERL is available on the system
- Scripted *or* compiled
- Options, options, options...
- Loads of libraries
3b. PERL cons:
- Syntax allows too many programming styles
-> difficult to read others' codes
- Maintainability is difficult if you're not careful
4. Python - I don't write in it, but it appears to be a cleaner-syntax
version of PERL with fewer libraries.
PERL is probably most useful in day-to-day tasks of solving problems. At
least it is for me. I use C (or sometimes C/C++ hybrid) when I want to
write a clean, reliable program I plan on using for a long time and will
be updating as time goes. Of course, which one you wanna learn first
depends on what you wanna do.
Something Micah said about C++:
> almost as many of its idioms and concepts get in my way as facilitate
That's absolutely true. It takes a long time to learn how to use the C++
features properly. I'm still working on mine (I've been using C/C++ for
about 8 years). To make things easier, I try to do as much of it in C
syntax, and use C++ features only if it greatly improves the program
reliability or readability, and that policy has worked very well for me.
-Mark
--
Mark K. Kim
http://www.cbreak.org/
PGP key available upon request.
_______________________________________________
vox mailing list
vox@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox
|