Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Worst thing you ever made with Perl

by Abigail-II (Bishop)
on Sep 28, 2003 at 23:04 UTC ( #294825=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Worst thing you ever made with Perl
in thread Worst thing you ever made with Perl

However for the many people out there I imagine it is hard to stick with The Right Way(tm) to do it when faced with time-line pressures or simply laziness. While the benefits of doing it The Right Way(tm) far out weigh the initial time invested that doesn't make it any easier to stick to it.

I fail to see how deviating from "the right way" would mean you program faster. Does it really save time not to do proper indentation? (If you set ':set ai' in vi, most of the work is done for you anyway). Do you save significant time not using properly scoped variables? Saving time using symbolic references is something I find hard to believe. I'm not taking any future consideration into account, I'm talking about programming right now, with a 5 pm deadline.

Abigail


Comment on Re: Worst thing you ever made with Perl
Re: Re: Worst thing you ever made with Perl
by Anonymous Monk on Sep 28, 2003 at 23:46 UTC

    Good practices that take more time:

    • Writing tests. Either after the code, or doing TDD.
    • Proper modularization of code. It's faster to just throw together procedural code than create a new module.
    • Documentation. Everything from proper comments to user docs takes time to write.
    • Quality assurance of third-party modules. Grabbing something off cpan and assuming it works is a lot faster (short-term) than testing it.

    Those are what immediately come to mind. There are plenty more. As for your points: indentation takes no time so no excuses there but many times global variables can speed things up development (think instead of passing args and returning values from subs) this is however a very tricky process and rarely (but still sometimes) the best approach.

Re: Re: Worst thing you ever made with Perl
by trs80 (Priest) on Sep 29, 2003 at 00:49 UTC
    The Right Way(tm) elements are far more then just indenting , improperly scoped varibales, etc.
    Elements central to the ideas behind my original point are:
    • The initial time it takes to learn what The Right Way(tm) is
    • Remembering and applying The Right Way(tm)
    • Fully understanding concepts and the ramifications of not doing it The Right Way(tm), before you move the knowledge from the mind (private space) to the physical (public space)
    This goes beyond programming and extends into any discipline. However, the shared realtiy of life is that the above does not work because if we all remained inactive until we comprehended then we would remain inactive. We must crawl, walk, run.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://294825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-28 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls