Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Legacy code question

by Your Mother (Archbishop)
on May 13, 2019 at 16:32 UTC ( [id://1233712]=note: print w/replies, xml ) Need Help??


in reply to Re: Legacy code question
in thread Legacy code question

While I agree philosophically with you and haukex, I have seen quite a fair bit of code in the wild “written” by users like bigup401. Code that never made sense, was written without use strict, often worked by side-effect or accident or only on a narrow subset of possible input, and is full of no-ops left-over from writing code by cut-and-paste testing.

Replies are listed 'Best First'.
Re^3: Legacy code question
by karlgoethebier (Abbot) on May 14, 2019 at 12:20 UTC
    "...writing code by cut-and-paste testing."

    To be honest: This was the way i coded my Java stuff the last three years i was in office.

    A funny side-effect of this practice was my my best node ever on PM.

    Best regards, Karl

    «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

      Indeed. The more confusing or the worse the documentation for a library is, the more likely I am guilty of the same thing. I endeavor however to both clean it up, attempt to enable the most strict checking, and leave tests behind after I finally understand the situation.

Log In?
Username:
Password:

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

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

    No recent polls found