Michael JasonSmith wrote:

On Wed, 2005-05-18 at 17:18 +1200, Carl Cerecke wrote:


Trivial to whom? Us yes. To a non programmer, you might as well be writing Chinese.


I suspect the non-programmer element at the talks will be fairly small,
but I was being a bit blase :) What I was trying to suggest is that any
problem that is easy to solve in C will not provide a good example of
how to solve the problem in any of the higher-level languages. The Ruby
example, for instance, is much the same as the C, albeit on one line ;)



Even to a non-C programmer, the snippet is quite enough to get a first impression of C (and probably put them off ever learning it!)


True, but writing the equivalent of "sed s/foo/bar/g" in C would do an
even better job of putting them off C! (There's an ideaâ)



Is that the well known scripting language c?

(:

Steve
Glad to see real K+R syntax employed there, although I think that technically argc should be long.

Reply via email to