in reply to The inheritance of Cruft
I did figure out I ought to have done !condition the next day, though it also took me about a year to start getting comfortable with more idiomatic ways to express this:if (condition) {} else { &actually_do_something() }
Most of us have code from very early on in our learning cycles to qualify as pretty funny if not horrible. I'm pretty sure some of my code fitting these categories is still used in production settings, as well...&actually_do_something unless condition;
I shudder to think what more experienced Perl developers think/say when they come across it. It embarrasses me.
|
|---|