32 ms·
Think of a circle with a dot at the center. When you define things positively - "do this, do that" - you're saying "get to the center dot, and come from anywhe
by RangerScience 10y ago
Think of a circle with a dot at the center.
When you define things positively - "do this, do that" - you're saying "get to the center dot, and come from anywhere on the circle".
When you define things negatively - "don't do this, don't do that" - you're saying "get to anywhere on the circle, and come from the dot."
"Test your code". Your code could be library code, it could be core language features, it could be framework patterns, it could be executable utilities. Ends up all the same - tested code. From anywhere, to somewhere specific.
"Don't test controller actions". You can test requests, you can test at a feature level, you can test the models and functions used by the controllers. Ends up all kinds of different - no tested controllers. From somewhere specific, to anywhere.
Something telling to do or not do something doesn't mean it's positive or negative; that comes from tone and presentation, not content.