3 ms·
Modal behavior should implemented through subclassing, not switches or if tests. This has the property of consolidating all code for a class in the same code fi
by peter303 10y ago
Modal behavior should implemented through subclassing, not switches or if tests. This has the property of consolidating all code for a class in the same code file and not scattered among larger pieces of code. Much easier to maintain and extend.
- kwhitefoot 10y agoWhat classes? This is C not C++ or C#. I don't dispute that one can use C for class based coding but it isn't common.