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

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]
[Corion]: Yay. I've now published (at $work) that random Excel workbook where on one sheet you enter your SQL and on the other sheet, you have a button and receive the results. I'm so evil in enabling cow-orkers to self-supply ;)
[Corion]: It's close to my Perl script where you paste in the SQL and get the result as XLSX file, but I guess the Excel sheet is more user-friendly :)
[choroba]: What drivers does it support? ;-)
[erix]: sounds cool -- but now you have to give SQL lessons?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2018-07-18 13:05 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (392 votes). Check out past polls.