SLUG Mailing List Archives
Re: [SLUG] C Gurus
- To: O Plameras <oscarp@xxxxxxxxxxx>
- Subject: Re: [SLUG] C Gurus
- From: Benno <benjl@xxxxxxxxxxxxxxx>
- Date: Tue, 22 Nov 2005 19:13:06 +1100
- Cc: slug@xxxxxxxxxxx
- User-agent: Mutt/1.5.9i
On Tue Nov 22, 2005 at 18:55:24 +1100, O Plameras wrote:
>The problem with this statement is you generalize your point as if it is
>written in stone for most people to put into their heads, which is
>newbies out there are smarter than you think and given the right
>they will be able to learn about Linux in particular and Open Source in
>general quicker than you and me have.
Everything is a generalisation. (See that was a joke for the humour impaired).
I said peopel should learn C, what is the problem? Those that learn
it really well, will learn all the pitfalls, and will start to yearn
for higher level abstraction to the problems they encounter. And then
they will learn a higher level langauge.
>Some people find it difficult to conceptualize pointers and pointer
>which includes yourself I suppose because you kept on saying these are
>to learn. You keep on telling yourself it is extremely difficult; and it
Hey, I'm the one that found the pointer arithmetic bug in your code. I don't
have a problem with pointers. I use them every day, they aren't scary.
Being a good programmer in any language means understanding pointers.
*But* there are better ways to refer to abstract data types
than through pointers. Really.
>The reality of it all is anyone can learn C in one day and master it in
That is total crap. Having gone through a C programming course, and taught
one at university I know that to be plainly untrue.
>By this I mean, after one week anyone will be able to read anyone's C code
>provided it is written correctly.
Not a chance. Don't believe you. And besides you are making generalisations,
which are bad.
>>>C is extremely good because many OSes and Compilers are written in C
>>>including Linux itself
>>>and many tools in Linux.
>>I would say C is good despite that ;). I never said C is bad, I said
>>it was difficult to program in well.
>It is your mental attitude that makes you believe it is difficult.
My mental attitude? *Right*. We just saw evidence on the mailing
list of people screwing up little things that would either not
be either syntacticly or semanticaly correct in more strongly typed
languages. It seems that getting this right in a different langauge is
easier, because given a mistake you might actually know about it in
advance of running it. (I'm waiting for Eric to have a go at weakly
type scripting languages here ;).
>>>Open Source is notoriously lacking in documentations. Unless you know C
>>>you are lost and
>>>you hardly can't proceed if you are doing a project.
>>That is simply untrue. There are many projects written purely in python,
>Try writing a PHP module in these languages.
Right I give in, you can't write a php module in any of those languages. Now
I'm not exactly a PHP expert, but i am guessing you can program a PHP module,
in say, PHP?
And even if I need C to write a PHP module, or a device driver, or a kernel,
or a compiler, the open source landscape is way bigger than that, and you don't
need to know C to be a part of it.
>><snip my previous solution>
>I do not know if you heard about the seven blind men who went to visit
>in order to describe what an elephant is.
I have heard something along those lines before, they all started touching
it up and got different ideas as to what it would be. Or maybe that
was some other story. Anyway, I think the point of it was that they
couldn't see the forest for the trees? Or maybe that the trees looked like
dinosaurs. That would be cooler.
In any case I couldn't agree more, learning how to program doesn't mean you
have to be an elephant.