News for hackers. Stuff that matters.
Re:Do-nothing scripting: the key to gradual automation by epr on Monday July 22, 2019 @09:06AM (#20497601)
"maybe"..."in the future" is the root of much object oriented evil
Re:Do-nothing scripting: the key to gradual automation by w23j on Monday July 22, 2019 @12:17PM (#20499465)
Well... that is certainly correct in 99.99% of cases. But does it really apply when you write a "Do Nothing Script"(!) with the intention of automating the steps later? If you follow the "rules" to the end you just end up deleting the file after writing it, because it has no effect.
Re:Do-nothing scripting: the key to gradual automation by ardani on Monday July 22, 2019 @12:26PM (#20499574)
Only if your intention encompasses as much detail as you're leaving out in advance. It's baggage and comes with nigh certainty of wasting your willpower.
Re:Do-nothing scripting: the key to gradual automation by pytester on Monday July 22, 2019 @04:24PM (#20501977)
"maybe in the future" are four words I've learned to dread hearing from any developer. YAGNI goes much, much deeper than most people realize.
Re:Do-nothing scripting: the key to gradual automation by shareIdeas on Monday July 22, 2019 @09:22AM (#20497731)
I don't think there is a correct answer, but I like that a developer has foresight.
Re:Do-nothing scripting: the key to gradual automation by mattnewton on Monday July 22, 2019 @12:08PM (#20499369)
The problem is you get more information in the future, but all this boilerplate is has been written before that information so the first instinct / seemingly least-resistance thing to do is to fit the new information into the old boilerplate / hierarchy.

Lots of people have OO scar tissue from getting weird impedance mismatches on newish OO systems designed this way.

Re:Do-nothing scripting: the key to gradual automation by sullyj3 on Tuesday July 23, 2019 @12:27AM (#20504388)
Real foresight is understanding the cost of unnecessary technical debt.
Re:Do-nothing scripting: the key to gradual automation by kissgyorgy on Tuesday July 23, 2019 @07:08AM (#20505815)
This is a pretty common misconception. I have yet to see a bit of perfect abstraction that has been written before the problem occured.