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

Re: Switch

by CountZero (Bishop)
on Aug 07, 2016 at 07:56 UTC ( #1169272=note: print w/replies, xml ) Need Help??


in reply to Switch

This is a module that was originally conceived almost 10 years ago. The last changes go back more than two years.

It says clearly in the documentation not to use it when you can use the "given ... when" keywords.

It is not part of core, so if you use it you must have installed it yourself.

I'm against an "official" deprecation mechanism for non-core modules. If one starts doing that, one must do so for each and every non-core module that has some "issues" or otherwise people will start relying on the fact that a module is not being "officially" deprecated.

Deprecation of modules should remain the author's responsibility and using non-core modules should remain the user's responsibility. This is the only sensible approach, in my opinion.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Switch
by BrowserUk (Pope) on Aug 07, 2016 at 08:39 UTC
    I'm against an "official" deprecation mechanism for non-core modules.

    I agree (eg.), but it would be nice if CPAN did some kind of page rank thing to move modules that have bad reps down the search results list.

    The problem with a module like Switch is it sounds like exactly what you want, and even appears to provide it at first; it's only once things get complicated and/or modified by others; that it suddenly starts to cause mysterious failures.

    Offering up that kind of apparently useful utility as benign, and letting every user have to discover it pitfalls for themselves, is like selling Samurai swords for cleaning your nails; its a matter of when, not if.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.
      it would be nice if CPAN did some kind of page rank thing to move modules that have bad reps down the search results list
      Indeed, but then one would have to install a "reputation" tracker first.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics

        I know it'll never happen; but it wouldn't need to be complicated.

        A simple: "Please rate your experience of this module: bad [1 2 3 4 5] good" would suffice.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
        In the absence of evidence, opinion is indistinguishable from prejudice.
        /div

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1169272]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-07-20 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (441 votes). Check out past polls.

    Notices?