3 ms·
Would you rather have a single date format that switches based on an argument? Or create 20 little classes?
by sanj 19y ago
Would you rather have a single date format that switches based on an argument?
Or create 20 little classes?
- michael_dorfman 19y agoThe former, of course.
- sanj 19y agoThen you've broken your self-imposed limit of a cyclomatic complexity of 15.
- michael_dorfman 19y agoWhich is why I suggested a "guideline", instead of a hard-and-fast rule. I'm not trying to remove programmer judgment from the equation; I'm just suggesting that there are some guiding principles that can be offered (and can be said to be more than simply matters of personal preference.)