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

"...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

Replies are listed 'Best First'.
Re^4: Legacy code question
by Your Mother (Archbishop) on May 14, 2019 at 13:50 UTC

    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.