Post by James KuyperPost by Scott LurndalPost by Vir CampestrisPost by Bonita Montero21 lines should be readable anyway, no matter which style.
Go find an APL programme, then tell me you still believe that.
APL was my third programming language, after Fortran II and BASIC. I
learned it and wrote several programs in it around 1977. About thirty
years later, after having done almost no programming in APL, I came
across a printout of my code that I had saved. I found it quite clear
and easy to read. I couldn't write new code without consulting a
reference manual, but I could read my old code.
Post by Scott LurndalOr pretty much any perl program. Write-once/read-never language.
I've never understood what gave perl that reputation. I worked nearly 30
years on a project that required me to occasionally write perl code and
to read perl code written by others. I didn't find it any harder to
understand than the C code we were writing. There's fancy tricks that
you can do with perl that can be very hard to follow, but for precisely
that reason, we avoided writing such code.
I think its reputation is that Perl was popular for small scripts, and
in such scripts people often have little concern for future maintenance,
code re-use, and the like. They use these "fancy tricks" and write
"write-only" code. If you later need to write a similar script, it's
usually just as fast to write it from scratch - but that's okay for
short scripts.
I haven't done any Perl programming, but I've modified a couple of Perl
programs, and had no problem with that.
These days, in most new code that at one time would have been written in
Perl, is now written in Python. It's less tempting to write
incomprehensible Python than it is to write incomprehensible Perl - it
doesn't have the same kind of tricks. But I've seen (and written)
plenty of small bits of Python that take extra thought to understand
afterwards. Not everything needs to be readable or maintainable -
sometimes it is sufficient if it just works there and then.