4 ms·
While I agree with most if not all your points. Let's agree that "should" is a strong word for what is basically our opinion. These are all debatable. For exam
by hu3 3y ago
While I agree with most if not all your points. Let's agree that "should" is a strong word for what is basically our opinion. These are all debatable.
For example:
- Prefixing everything with "on" adds noise. It's debatably intuitive enough as it is.
- Demanding timezone arguments on these methods also adds noise. More often than not you just want to use system default noise since it is such an important thing that you want to control at a higher level anyway.
- It can be okay to allow edge/confusing states if the tradeoff is to keep implementation simpler. One can always rely on unit tests to keep expectations in check.