Beck describes the simplest code this way, in priority order:
When you are considering YAGNI (YouArentGonnaNeedIt) and DTSTTCPW (DoTheSimplestThingThatCouldPossiblyWork), you must consider these rules. Generating TheSimplestCode is not complete unless you have refactored according to the rules above.
Nearly every objection and concern about YAGNI and DTSTTCPW is about leaving cruft in the code. TheSimplestCode says you must not do that. Defense rests.
>> 4. Minimizes number of classes and methods.
One class with one method? Hmm. It would be very hard to do that, without violating rules 1. and 2. in anything but the simplest case.
How do you define what is minimal?
See also OnceAndOnlyOnce XpSimplicityRules