in reply to Re^5: Yet another config file editing programme : Tell me how to make it better !
in thread Yet another config file editing programme : Tell me how to make it better !
I am not a professional programmer. I don't work with or for any professional programmers ... The thing that attracted me to Perl was the extensive library of modules. Lego blocks that I could join together to get things done. Not a new concept. I was using Coral66 back in the 1980's ...
Interesting to learn your programming history! Hadn't heard of Coral 66 before.
Queen Elizabeth II sent the first email from a head of state from the Royal Signals and Radar Establishment over the ARPANET on March 26, 1976. The message read "This message to all ARPANET users announces the availability on ARPANET of the Coral 66 compiler provided by the GEC 4080 computer at the Royal Signals and Radar Establishment, Malvern, England, ... Coral 66 is the standard real-time high level language adopted by the Ministry of Defence"
-- CORAL (wikipedia)
Notwithstanding Coral66 being a fine language for its time -- even endorsed by Her Majesty Elizabeth II I see (rare for a programming language) -- I don't agree with your expectation that programming with Perl and its vast CPAN library is as easy as playing with Lego blocks (besides, it's Jenga not Lego ;).
Update: In addition to endorsing Coral 66, Her Majesty Elizabeth II adores the Perl programming language - which she subtly reveals by wearing a pearl necklace time and time again (as in her wikipedia photo).
Though using CPAN modules may seem "free", there are many pitfalls for the unwary (as noted at Writing Solid CPAN Modules):
Note that many of the points above apply not just to the module you are using but to all of its dependencies too. See also Dependency hell (wikipedia).
So, if faced with your problem, I would roll my own code (without using the dreaded Switch! ;). I would probably roll my own code even if a CPAN module were available, to avoid paying the dependency costs described above.
As already discussed to death, I'd focus on Maintainability, tybalt89 on Conciseness, you on Readability. TMTOWTDI! :)
Updated: expanded last bullet point based on Perl Monks poll: I am most likely to install a new module from CPAN if:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Yet another config file editing programme : Tell me how to make it better !
by hippo (Archbishop) on Sep 06, 2021 at 10:22 UTC | |
Re^7: Yet another config file editing programme : Tell me how to make it better !
by dazz (Beadle) on Sep 07, 2021 at 23:45 UTC |