If a monk were to post a question about the hot new app he was developing on Bank of America's web team which started, say:
#!/usr/bin/perl open(STDERR,'<&STDOUT'); require 'cgi-lib.pl'; print &PrintHeader; if ( ! &ReadParse(*input) ) { print "Enter your name: <INPUT NAME=name>" } else { print "Your name is ", $input{name} || "Slim Shady"; }
well, you know what the responses would be like. If you don't know, I encourage you to submit such a sample and enjoy a turn on Worst Nodes.
Seriously think about how you might be tempted to jump off on someone if they posted it. Got it pictured? The unedited version before you nice it up a little.
Now consider that the majority of the HTML that appears in replies/samples here is from the cgi-lib era. And consider how much easier it is to get HTML 4.01, or better, XHTML 1.0, right than weak references or inheritance or web security... And consider the counter arguments that might be given if they were given about perl code instead.
It works the way it is so why change it? If they didn't want me to use <hr> or <center>, they shouldn't let it work. But that's how I learned to do it!
(I know that posts often include things like <font> b/c we can't, and shouldn't be allowed to, inline style and that's not what this is about; sample code should be as close to the ideal as we can manage no matter what language it's in b/c people come here to learn and will imitate what they find. And I submit this not as a critique per se but more as a call to action.)
janitored by ybiC: s/node 9488/[Worst Nodes]/
In reply to Your kung fu is excellent but what about... by Your Mother
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |