Are you a C, C++, or C/C++ developer?
Hello,
Do you focus on just one language or do you focus on both languages? Do you feel that they automatically go together? That they are mutually exclusive? That one doesn't necessarily imply the other? Other? |
I do not focus on one language, but in the C family it's only C (and in general it's not OOP).
|
I love C but avoid C++ like plague. I stick with Java for OO programming.
|
Whilst I occasionally use C most of my work is in OO and thus when I want a compiled end product I look towards C++.
|
I'm trying to teach myself several programming languages at once, trouble is I'm a bad teacher and a worse pupil.
|
I use C++ more than C, I just find it harder and less productive to programme without the use of such things as templates and overloading.
|
I use 100% C++ when I'm writing something with no target OS. When I write for *nix, though I generally have to use libc which is C, and I also try to make my library APIs C if they aren't an object libraries. I guess a more accurate way to say it is that if I want to write a "real" program that deals with files, threads, and processes then I'll make it for *nix because I don't want to determine what's POSIX and what's C89/99.
I generally program in terms of objects, so I use a lot of dynamic lists of objects and encapsulated or embedded objects, so I have to write those in C++. Most of my C++ sources in a dual project have both a C "include" header and a C++ local header. I'll make as many sources C as possible and I greatly prefer the C I/O API to that of C++. For one, it seems like the C++ I/O system is only designed so that one has the option to avoid classic C, and also you don't have control over low-level things such as fcntl with C++. Overloaded std::ostream operator << are extremely useful, but ultimately impractical unless you're debugging a C++ command-line tool. ta0kira |
I prefer C++ so I can do OO with objects and inheritance - makes a lot of work I do so much easier. As do namespaces and a few other goodies. Being able to do C style i/o or C++ style i/o is particularly helpful, especially if porting C code to C++. Partial ports or mixed C/C++ programming using extern "C" { .. } is a good thing as well.
However, I stay away from some C++ language "features" such as templates. I need to do both C and C++, plus php, python, xhtml. css, javascript and a bunch more, and could do without cluttering up my brain any more than necessary. |
Quote:
ta0kira |
Mixture of both. Probably something like C with classes.
I love the C++ language features (especially templates, inheritance etc.) but can easily live without stuff like e.g. the iostreams or static_cast (or even STL) which seem to me very convoluted (they have their purpose of course, but it seems only to those people who need the extra safety belt). |
Quote:
Quote:
|
Quote:
Quote:
C++ adds convenience, but also lots of ugliness. |
I learnt C++ and haven't really bothered learning C as there's no need for me to. I don't usually use classes, but I make use of STL stuff (vectors, for example).
|
C is the best, I always prefer to write in c and perl, they are the best.
|
Quote:
Code:
+--> class middle1 --+
|
All times are GMT -5. The time now is 06:35 PM. |