Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
just some thoughts:
regarding reinventing the wheel - i've written a template-system once (now i don't use it anymore, there are much better ones), i've written my own XML::Simple extension which did something extra (i could have just used another module because XML::Simple is designed to be simple), and i'm writing my own framework now although there are already some (well i started to do this before there were really usable frameworks).
i think it's necessary that people are reinventing the wheel. they learn, and maybe they learn that it's just better to use an existing solution. maybe the write a better solution, and that's good.
without people doing that there wouldn't be so much solutions to choose from. usually at some point there are three or four solutions which come out as a standard, e.g. use HTML::Template, if you want an easy solution which is easy in both using the module and coding the template.

when i'm coding something, even if it's a small program, it also helps me to encapsulate things in modules (especially in OO). i don't do uml specs (when i'm coding alone), so i think about what functionality i want, and create a class. if i want more functionality i usually first use it in the main script like $object->do_unexisting_functionality() and then add this method to the class. i just find it more maintainable. but maybe that's just a personal preference. just my 2 cents.

Update: about too much modules - i recently installed Maypole. i did perl Makefile.PL etc. for every single PREREQ_PM. i didn't count how much modules i installed recursively on that afternoon, but it was incredible. lots of the required modules were probably just optional but were in PREREQ_PM, so i maybe installed 20 modules i will never use. but hey, disk space is cheap ;-)


In reply to Re: Modules, Frameworks, and Reinventing the Wheel by tinita
in thread Modules, Frameworks, and Reinventing the Wheel by Velaki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2024-04-23 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found