The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   sed script conundrum...sigh (http://hintsforums.macworld.com/showthread.php?t=51725)

hayne 02-21-2006 11:47 PM

Quote:

Originally Posted by acme.mail.order
Perl is often referred to as a write-only language because it can be nearly impossible to figure it out later unless the script is heavily documented.

I note that this "write-only" epithet is usually applied by people who don't know Perl. Perl programs written by competent programmers are not usually hard to understand (assuming of course that you know Perl).
And note that the original Obfuscated Code contest was for C language programs: http://en.wikipedia.org/wiki/Obfuscated_code

NovaScotian 02-22-2006 08:59 AM

Quote:

Originally Posted by hayne
Perl programs written by competent programmers are not usually hard to understand (assuming of course that you know Perl).

And the same is true of any language. It is probably fairer to say that AppleScript is verbose, than to characterize it as read-only, but folks who think Perl is "write-only" have never had to try to decipher a poorly commented program in any language that supported goto.

acme.mail.order 02-22-2006 09:59 AM

Apple ][ BASIC wasn't too bad. But with <30kb usable memory it couldn't get too complicated. I think GOTO and GOSUB were the only loop options other than FOR-NEXT. I hope my school's CompSci teacher didn't need too much therapy after our class. (We drove the Gr.10 algebra teacher to a nervous breakdown).
6502 assembly code did goto, comments were maybe 20 characters each, but then no one expects machine code to be easy to read later. I'll stop now before I date myself too much :D

NovaScotian 02-22-2006 10:32 AM

The first machine I ever wrote code for was a Royal McBee LGP30 - a hard dating to beat, I suspect. Its memory was a rotating drum with 80 read heads on it, 4096 words in total.
http://www.users.nwark.com/~rcmahq/jclark/lgp30.jpg


All times are GMT -5. The time now is 05:29 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.