3 ms·
Regular patterns are usually matters of intent—being able to say "this code should have patterns X, Y, and Z" doesn't help you at all if those patterns aren't c
by derefr 17y ago
Regular patterns are usually matters of intent—being able to say "this code should have patterns X, Y, and Z" doesn't help you at all if those patterns aren't coherent to the goals of the code. However, "this code shouldn't have patterns X, Y, or Z" is useful, and therefore could be made to be checked automatically. Anti-patterns would then become like virus signatures in a codebase, found during compilation.