Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

[ Create a new account ]

athloi (1075845)

athloi
  (email not shown publicly)
http://technical-writing.dionysius.com/
Public Calendar: Subscribe, Download

Technical Writing Geek [dionysius.com] contracted by Dionysius Studios [dionysius.com], now working at Halliburton and blogging at User Advocacy [blogspot.com] and Bolg [chrisblanc.org].

Journal of athloi (1075845)

It's easy to write readable Perl

[ #200666 ]
Friday April 11, @02:43PM
User Journal

Perl developers have to try to write good, readable code. *

Although I respect this writer's opinion, I really have to disagree here.

It's easy to write readable Perl code, especially if you come from a C/C++ background, because you are thinking beyond a series of regular expressions.

The Perl code that ends up a nightmare is the result of either a programmer determined to prove he's clever, or a task conceptualized as a series of regular expression filters. Either can be made readable easily, and doing that re-shapes the way the brain makes code.

If you get into the practice of treating Perl like a programming language, and not a scripting language, it starts to make sense to use the un-shortcuts that make it easy to read.

All of the good Perl programmers I know write this way, because it means their code has a longer life when it leaves their hands. We all know that much of what we write will be maintained by others, so it's a matter of courtesy and good business to write it clean.

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.