Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (15)
As of 2014-08-27 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (252 votes), past polls