Re:How I Learned to Stop Worrying and Love the State Machine
by seanmcdirmid on Monday February 26, 2018 @08:54PM
(#16470566)
The antithesis is when inheritance should be used but isn't. Inexperienced programmers tend to ideological extremes in either camp.
Re:How I Learned to Stop Worrying and Love the State Machine
by tzahola on Monday February 26, 2018 @06:53PM
(#16470045)
Inheritance considered harmful. Go got this right.
Re:How I Learned to Stop Worrying and Love the State Machine
by mcguire on Monday February 26, 2018 @08:14PM
(#16470401)
Inheritance is a way of relating two or more pieces of code; it's a programming abstraction. If you try to apply it to the problem domain, by "modeling" things, for example, you're in for a bad time.
I am suspicious any time I see inheritance in my C# code base. It's rarely needed and causes a lot of pain when used extensively. I'm looking at you Credit Note and Invoice!