Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(jeffa) Re: Simplicity vs. Doing It Right

by jeffa (Bishop)
on Oct 13, 2002 at 01:35 UTC ( [id://204840]=note: print w/replies, xml ) Need Help??


in reply to Simplicity vs. Doing It Right

You raise some very good points dws - i personally still prefer to do it "right" at the expense of building a heavier solution and over engineering the problem. Why? Because for me, 9 out of 10 times it is easier and faster for me to do so. When i first joined the Monastery, i was hesitant to search CPAN and spend time reading a module's documentation. But, after practice and experience, using modules became a lot easier, and even fun. I think they help one to focus on the mortar and not the bricks, so to speak: instead of re-inventing a wheel, just concentrate on how to use the wheel (i feel like i am preaching to the choir now ;)). This way, one can focus on the overall design - they sure helped me in this area.

UPDATE:
Had to run off to dinner - while i was gone i remembered an incident where i chose the 'right now' way instead of the right way. Recently i needed to parse some HTML that i wrote, instead of using a robust CPAN module, i quickly threw together:

my @mp3 = $html =~ /([-.\w]+\.mp3)/g;
Pretty fragile code, but i have to admit that i was able to finish my task very quickly. Of course, since i am the one who wrote the HTML that i parsing, i can get away with it. Trying to find that wonderful balance between 'being smart' and 'getting stuff done' is indeed an art. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found