Re: Simplicity has a future



Le 31-05-2006, Richard Heathfield <invalid@xxxxxxxxxxxxxxx> a écrit :
Le 31-05-2006, Richard Heathfield <invalid@xxxxxxxxxxxxxxx> a écrit :
[Any] C programmer having trouble understanding the code would probably
have trouble understanding "Winnie the Pooh".

What is your definition of "C programmer" ?

Someone who understands C.

All the C99 standard ?

When did you met C beginner last time ?

Have you read this newsgroup recently?

I read very quicky... There are everyday too much
messages for me.

e My C++ solution, however, is even simpler!

extern "C" {
#include "my_c_solution's_header.h"
};

and linking in <insert library name here>.

So C++ is simpler than C: that is what I wanted to illustrate ;-)

If you say so. But C is simpler than C++, *next* time, because *next* time I
need to use such a function, I can do this:

#include "my_c_solution's_header.h"

and link in the appropriate library, without bothering with all that extern
"C" nonsense. We call it "code re-use", and I recommend it to you.

Did you see my ";-)" ? This was humor, joke, not an argument.
I am not going to argument what first was an example (reading one line)
and second a joke ("extern C" makes C++ better).

I do not arge that C++ is better than C, neither the opposite.
But I desagree with "simpler is better". Turing-like langage would
have been the better solution with such argument. There is a
'good compromise' to find between the complexity of the tool and
the complexity of the problems.

Marc Boyer
.



Relevant Pages

  • Re: Java is becoming the new Cobol
    ... Believe me, I don't have a problem with complexity, when it's warranted. ... Several years later, a programmer ... graphics data compression algorithms, including an assembly language ... Since the data backs up my impressions, ...
    (comp.lang.cobol)
  • Re: Design Patterns and Functional programming
    ... Impurity is not required, as purely functional languages do exist, but it ... not the asymptotic complexity. ... this form of static checking requires the pattern matcher to be ... Then compiler leaves it up to the programmer. ...
    (comp.object)
  • Re: Java is becoming the new Cobol
    ... Believe me, I don't have a problem with complexity, when it's warranted. ... Several years later, a programmer ... graphics data compression algorithms, including an assembly language ... Since the data backs up my impressions, ...
    (comp.lang.cobol)
  • Re: Boxing and Unboxing ??
    ... It also increases language complexity, which can increase programmer ... adding one simple parameter qualifier and removing a complex qualifier. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: advice about `correct use of decorator
    ... I'm considering the software complexity AS ... program and a programmer who is working on some task; ... different from the complexity in implementing the decorator. ... care about the details. ...
    (comp.lang.python)