Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Efficient programming

by Erez (Priest)
on Dec 22, 2008 at 07:51 UTC ( #731984=note: print w/replies, xml ) Need Help??

in reply to Re: Efficient programming
in thread Efficient programming

OTOH, "Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be selfevident. Data structures, not algorithms, are central to programming." (Rob Pike Notes on Programming in C)

As for the OP, "efficient" is a buzzword. Make your programming simple, concise, clear, and correct. For some simple guidelines, try that URL I pasted above, it's the best article about programming practices I know.

"A core tenant of the greater Perl philosophy is to trust that the developer knows enough to solve the problem" - Jay Shirley, A case for Catalyst.

Replies are listed 'Best First'.
Re^3: Efficient programming
by ikegami (Pope) on Dec 22, 2008 at 13:57 UTC

    I agree. If it's a straightforward task as it usually is, efficiency shouldn't be a concern. Efficiency is therefore only relevant in the rare cases where there are very demanding needs. That's when you need to worry about your algorithms.

Re^3: Efficient programming
by grinder (Bishop) on Dec 22, 2008 at 21:15 UTC

    Rob Pike knows his classics:

    Show me your flowchart and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won't usually need your flowchart; it'll be obvious. -- Fred Brooks, The Mythical Man-Month

    He wrote that in 1975. It's still just as true today.

    • another intruder with the mooring in the heart of the Perl

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2019-11-21 08:20 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (104 votes). Check out past polls.