<html><body> Hello World! </body></html>
Then, they wanted us to do this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title></title></head>
<body>Hello World!</body>
</html>Now, who can remember <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> ? It's irrelevant! "html-4.01-en" would suffice, assuming a "strict" a default.
Now, they want more-or-less this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title></title></head>
<body>Hello World!</body>
</html>What will they want next?
As the Wallism says, the easy jobs should be easy and the hard jobs possible. Similarly, "Common operations should be 'Huffman coded.' That is, frequently used operators should be shorter than infrequently used ones." [1] This can be generalized.
What does this all mean?
use com::activestate::gsar::Data::Dumper;
No. It means
use Data::Dumper;
However, if you want to use your own obscure version of Data::Dumper that inserts random characters into the output, you might do this:
use Data::Dumper::Random;
rather than
use org::myname::Dumper::Random;
And if someone else comes along and offers a better randomized data dumper, that person might do
use Data::Dumper::VeryRandom;
This leads to the next Wallism, also generalized: "Similar classes of operators should look similar." [1] They do:
use Data::Dumper; use Data::Dumper::Random; use Data::Dumper::VeryRandom;
[1] http://dev.perl.org/perl6/apocalypse/A03.html
-davidm
A. Pagaltzis wrote:
* Chris Josephes <[EMAIL PROTECTED]> [2004-01-19 14:39]:
I think sooner or later, we're all going to have to bite the bullet and go with Java class naming conventions, like
IMO, it is of the essence that modules have descriptive names. Otherwise, searching for something specific becomes nigh impossible. If that means a vast top level, so be it.
