Re: Announcing new scripting/prototyping language

From: Frank J. Lhota (NOSPAM.lhota.adarose_at_verizon.net)
Date: 02/06/04


Date: Fri, 06 Feb 2004 19:17:57 GMT


"Dan Pop" <Dan.Pop@cern.ch> wrote in message
news:c00men$rdu$8@sunnews.cern.ch...
> It is perfectly possible to write Perl code that is as readable as
> well written C code. And it is perfectly possible to write C code that
> is as unreadable as badly written Perl code.
>
> It's not the tool, it's the way it's used. Unfortunately, many Perl
> tutorials encourage conciseness at the expense of readability. I started
> to like Perl only when I realised that I don't have to follow the
> tutorial's examples in my own coding.

Good point. Even APL can be written in a readable fashion. (After all, APL
started as a documentation language!) A lot of the readability problems are
due more to the culture around programming languages, rather than the
limitations of the languages itself. One wonders how much obfuscated C might
have been avoided if introductory C texts did not present the following as
an acceptable way to copy a null-terminated string:

    while( *s++ = *t++ )
        ;



Relevant Pages

  • Re: Announcing new scripting/prototyping language
    ... > is as unreadable as badly written Perl code. ... > tutorials encourage conciseness at the expense of readability. ... Even APL can be written in a readable fashion. ... limitations of the languages itself. ...
    (comp.lang.c)
  • Re: Announcing new scripting/prototyping language
    ... > is as unreadable as badly written Perl code. ... > tutorials encourage conciseness at the expense of readability. ... Even APL can be written in a readable fashion. ... limitations of the languages itself. ...
    (comp.lang.ada)
  • Re: Why is parsing your own form data a bad idea?
    ... GET and POST do not in any way add to the readability of Perl code. ... > from the O'Reilly book CGI Programming With Perl and they use their own ... If it's production code, give it the axe. ...
    (perl.beginners)
  • Re: Announcing new scripting/prototyping language
    ... > is as unreadable as badly written Perl code. ... > tutorials encourage conciseness at the expense of readability. ... Even APL can be written in a readable fashion. ... limitations of the languages itself. ...
    (comp.lang.cpp)
  • Re: "0= if" or simply "if" ???
    ... Fortran instead of "if x". ... Adopting locutions tin Forth to make it more transparent to those accustomed to other languages makes no more sense to me that adopting locutions in English for the same reason. ... I think that in your last post the readability is opaque in both cases and would need elicitation by any person not familiar with the implementation. ...
    (comp.lang.forth)