in reply to Silly code reviews and shift
By contrast, one program I have has the first few lines of code being the following (I stripped the comments):
That's pretty much the entire logic of the program. Yeah, you can go down into my functions and into their functions, and so on and so on, but you already have a decent idea of what I'm doing. If you view the output of the program, the above code is crystal clear. It's just a matter of filling in the details. I wonder if other monks have a tendancy to post code that answers a question but demonstrates poor programming style.#!C:/perl/bin/perl.exe -w use strict; use URI::Escape; use HTML::Entities; use CGI::Pretty qw/:no_debug/; $CGI::Pretty::INDENT = "\t"; my $q = CGI->new; my $table_data = create_table_data(); my $source_code = read_source_code(); create_web_page( headers => [ 'Symbol', 'ASCII Value', 'URL encoded', +'HTML code' ], data => $table_data, code => $source_code ); exit;
I think, in future posts, I'll try to focus better on code quality in addition to accuracy.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Ovid -- Programming style - Off topic) Re: Silly code reviews and shift
by dave_aiello (Pilgrim) on Jan 20, 2001 at 10:27 UTC |