Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: Re: Think for yourself.

by MarkM (Curate)
on Oct 06, 2003 at 05:47 UTC ( #296870=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Think for yourself.
in thread is the use of map in a void context deprecated ?

I don't get it. You haven't used map in void context. Also, I'm not convinced that you haven't purposefully written your code inefficiently just to prove that map is useful. Why do you have the intermediate grep when an if in the for loop would do just fine? Sure, copying lists around is *fairly* cheap, but we come to my original point: Did you actually take a step back before designing your code, to ensure that it works best? Or did you just string map and grep together until it worked the way you wanted it to?

Comment on Re: Re: Re: Think for yourself.
Re: Re: Re: Re: Think for yourself.
by tilly (Archbishop) on Oct 06, 2003 at 06:12 UTC
    Iterative development is a style where you write something and then modify it in a series of small iterations until it does what you want.

    Which means that he did indeed string maps and greps together until it worked the way he wanted to. As part of a deliberate coding style.

    I respect that style because it sometimes is mine as well. I've seen it be particularly popular among people who believe in some or all of; test-first development, dynamic programming techniques, and rapid prototyping.

    Proponents will claim that it produces more robust code in less development time. They will not claim that it produces the fastest code in the world, but then again there is no need to optimize what is already fast enough...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-11-28 21:02 GMT
Find Nodes?
    Voting Booth?

    My preferred Perl binaries come from:

    Results (200 votes), past polls