3 ms·
An obvious example of that is defining named constants and referring them by name instead of repeating the same value in N places. This is also DRY and good kin
by pkolaczk 1y ago
An obvious example of that is defining named constants and referring them by name instead of repeating the same value in N places. This is also DRY and good kind of DRY.
- ryeats 1y agoThis is actually a particular pet pieve of mine because I worked with the Camel framework which has a lot of boilerplate in strings but if you start using constants for the common parts you now have an unreadable mess of constants concatenated together that buys you nothing.