News for hackers. Stuff that matters.
Re:A Regular Expression Matcher (2007) by revskill on Thursday August 25, 2022 @03:01AM (#32590501)
My "rules" to have simple code that works:

- Implement the concrete, simplest use case.

- Parameterize first step with function.

- Try to add another use case with another function

- Try to compose 1st and 2nd use case.

Anyone try to bring OOP + Inheritance breaks the simple rules. So composition is the key here.

There are no comments on this comment yet.