Nice review. I've been thinking a little about interfaces too,
recently, in particular the Mozilla embedding API, which I've
tried to understand for the last...year or so. That has to be
one of the worst ever, though I'm sure the developers think
it's a shining example of...something.
I think the ideas for interfaces you pointed out
should be extended to all code, not just modules.
One of the things that takes me the longest in writing
even relatively one-off scripts is that I spend a lot
of time worrying about how much sense the script makes
for whoever will eventually maintain it.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|