Just another Perl shrine | |
PerlMonks |
Re: noveling and software designby Ytrew (Pilgrim) |
on Nov 05, 2004 at 17:33 UTC ( [id://405563]=note: print w/replies, xml ) | Need Help?? |
A common theme of computer programming and novel writing is that of basic communication.
Novelists try to convey information to their reader. In order to be successful, they need to approximately model, if only unconciously, on how the receiving system (their intended audience) will respond to the data, and craft their work according to their expectations. Programmers usually try to convey information in two ways simultaneously. First, they try to convey configuration information to the mechanical systems (computers and associated hardware) that will receive the data, and craft the work so that the hardware responds as expected. Secondly, and simultaneously, they try to communicate the salient points required to understand their design to other programmers, and again craft this communication in a way that will be well received. In perl, I find that making the code work is usually the easy part. Making the code understandable to my intended audience is hard, especially since I don't always know who that audience will be. I try to target my code and documentation at a junior level maintainance programmer who doesn't know perl well, and may not be very familiar with my project or it's design goals. That means, I tend to trade performance considerations and development time for (hopefully) ease of understanding and maintainance. Writing a line of code, like writing a sentence, is easy. Writing the right line of code, or the right sentence, is a difficult artform. Or at least, that's what I like to tell myself, on days when I don't feel like I've accomplished much. :-)
--
In Section
Meditations
|
|