Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: OO design: returning string and/or special value

by sundialsvc4 (Abbot)
on Oct 10, 2019 at 23:53 UTC ( #11107329=note: print w/replies, xml ) Need Help??


in reply to OO design: returning string and/or special value

(Yes, I'll sign my name to this comment ... "downvote away.")

In a case such as this, I strongly believe that you should define new method(s).   (Cribs such as Contextual::Return are, in my humble, an absolute disaster.)   When I look at a piece of source code ... and please presume that I am unfamiliar with it, because the original author just had an unfortunate encounter with a bread truck ... I need to know with certainty what it is going to do.   Each time ... every time ... no exceptions ... no magic.

My professional experience has mostly consisted of walking into blazing-fire situations and being paid to put them out.   In so doing, I've learned a lot about why software projects hit the fan.   This is one of them.   Don't you dare be clever ... please, be stupid-clear.   No tricks, no cleverness, no magic.   Nothing that might affect “the software that is in front of my eyes” that isn’t “in front of my eyes!”   Please.   Pretty please.

  • Comment on Re: OO design: returning string and/or special value

Replies are listed 'Best First'.
Re^2: OO design: returning string and/or special value
by Your Mother (Bishop) on Oct 11, 2019 at 00:54 UTC
    (Yes, I'll sign my name to this comment ... "downvote away.")

    Roger, wilco. The main reason I did is the same reason I sometimes downvote one of the best hackers here and would have downvoted an anonymonk as well: you repeated advice from days ago and didn’t acknowledge you were repeating it; from 1nickt, swl, and daxim at least. They all managed to give the rather sane guidance without jamming their résumés into the pie. Which, incidentally, in my view, is the only reason you signed-in. You thought you could dash off a promotional plug by repeating the advice of better competent hackers and signing your name to it.

    Re^4: Do not understand *sundial*

Re^2: OO design: returning string and/or special value
by karlgoethebier (Monsignor) on Oct 11, 2019 at 17:44 UTC
    "...professional experience..."

    ???

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2019-12-05 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (153 votes). Check out past polls.

    Notices?