Re: C or C++ for FOSS/linux?
- From: Ulrich.Teichert@xxxxxx
- Date: Fri, 29 Dec 2006 15:10:59 GMT
In <en3652$bkv$1@xxxxxxxx> Jan Panteltje <pNaonStpealmtje@xxxxxxxxx> writes:
[del]
I mean it serious, yes I fail to see the beauty of C++.
I fail to see beauty in COBOL, fortran, LISP and prolog. It's just a
very subjective thing. Still, if a project requires it, or when the problem
looks like it will be easier & faster solvable with a certain language
I don't particular like, I'll do it.
Stroussup could not really program, that became clear to me after
reading his book. It needs too much text, to many :: and overloading
sucks and is for dummies.
Operator overloading is useful for template programming, IMHO. Think about
it - just for a minute ;-)
[del]
You mention Qt.
It is evil.
It (Qt4) took almost 4 hours to compile on a Duron 950.
I have no idea what it gives for that price,
You probably have to look again, no? Qt has been stuffed with all sorts
of things: SQL-libraries, screen editors, etc. pp. If you don't want
to build all that stuff, just disable it *before* running the compiler.
I use xforms,
it compiles in seconds, has only one small lib (libforms).
And has all the stuff I need and allows one to add stuff,
and is full GPL.
Because it concentrates solely on GUI. Qt contains a lot more than that
and is written as a whole platform. You are comparing apples with oranges
here. Besides, I don't really like Qt - not because it's bloated, for
which there are arguments, agreed, but because it reinvents the wheel
for basic types like strings (QString instead of STL-strings, for
instance). It does not make it faster as well.
And written in C, hasa fdesigng GUI designer to write C code for ye if
you cannot or do not want to write it yourself.
Qt 4 is the worst bloat I have seen in Linux since Linux 0.8 came out.
[del]
Maybe I should leave Qt, is KDE ported to QT4 already?
I hope not.
khexedit was about the only useful program in KDE for me.
KDE != Qt. You can use Qt for X in embedded contexts (which I have done,
yes) with a moderate (in a very modern sense) memory footprint. There's a
GPL embedded version available, too. BTW, I'm still using fvwm1.
But anyway, to respond to the original poster: if you want to code in
kernel context, C is the language of choice, because C++ is not allowed
in the kernel anyway.
For any other kind of programming under Linux, my advice would be to
choose the right language for solving the problem. This may be a scripting
language like python, perl, ruby, awk, shell scripts, etc. or a classical
compiler language like C, C++, java, mono, whatever. Study the problem,
check out what the main features of your program should be and then choose
the right language for implementing them, without any prejudices, politics
and without noticing flames from the outside world.
After all, programming open source should be fun, right?
CU,
Uli
--
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@xxxxxx
Stormweg 24 |listening to: Cauchemar (Opération S)
24539 Neumuenster, Germany|Good Looks, Big Deal (Sweatmaster)
.
- Follow-Ups:
- Qt and basic types Re: C or C++ for FOSS/linux?
- From: Rui Maciel
- Re: C or C++ for FOSS/linux?
- From: Sebastian 'lunar' Wiesner
- Qt and basic types Re: C or C++ for FOSS/linux?
- References:
- C or C++ for FOSS/linux?
- From: Beowulf
- Re: C or C++ for FOSS/linux?
- From: Jan Panteltje
- Re: C or C++ for FOSS/linux?
- From: Sebastian 'lunar' Wiesner
- Re: C or C++ for FOSS/linux?
- From: Jan Panteltje
- C or C++ for FOSS/linux?
- Prev by Date: Re: C or C++ for FOSS/linux?
- Next by Date: Re: C or C++ for FOSS/linux?
- Previous by thread: Re: C or C++ for FOSS/linux?
- Next by thread: Re: C or C++ for FOSS/linux?
- Index(es):
Relevant Pages
|