3 ms·
> I'd prioritize readability over DRY. Yes. Especially at the beginning when it's critical to ensure that the logic is correct. You can then go back and DRY i
by insane_dreamer 2y ago
> I'd prioritize readability over DRY.
Yes. Especially at the beginning when it's critical to ensure that the logic is correct.
You can then go back and DRY it up while making sure your unit tests (you did write those, right?) still pass.
PS: same applies to "fancy" snippets that save you a few lines; write it the "long way" first and then make it fancy once you're sure it runs the way it's supposed to
- kitkat_new 2y ago> You can then go back and DRY it up while making sure your unit tests (you did write those, right?) still pass. not gonna happen once merged