2 ms·
My only requirements for "clean code" are the following: - readable (use self-describing functions, names, etc; consistent spacing...) - as little repetition
by warrenm 3y ago
My only requirements for "clean code" are the following:
- readable (use self-describing functions, names, etc; consistent spacing...)
- as little repetition as possible
- as efficient (or "clever") as can be, while not sacrificing the first two bullets
-- caveat to the last bullet: using "extra-clever" techniques is acceptable IFF, you very clearly document (in comments, code commits, etc) not only what the code is doing, but why you're doing it that way