804 karma · joined May 4, 2017 (9y ago) · 695 submissions
comment 7y ago · link · parent
(What people don't care about is the size of libraries that are scoped for the test context only, and don't even impact artifact size at all.)
Also, a Mockito mock is simpler in usage than a hand-written and normally instantiated test double.
comment 7y ago · link · parent
It's simple if the threshold for racism and bigotry is driven low enough that it ends up including the private beliefs of most of the country and even more of the world.
comment 7y ago · link · parent
What should be included in the set of "each other"? You're suggesting we include entities that are totally amoral, who happily destroy other sentient beings in the most painful ways, and who are incapable of reform. There is no imaginable social contract that could possibly include such monsters.
Surely there must be some element of symmetry as a condition of such a set membership. It's implied by the very phrase "each other".
comment 7y ago · link · parent
If they are, we owe them moral treatment, but then they are subject to being held accountable for their own moral failings.
If they're not, then they can't be said to accrue any moral failings, and we don't owe them moral treatment.
comment 7y ago · link · parent
Absolutely not. It means your healthy outlet will be with your friends, those mututally selected for compatibility, and in contexts where such discussions are presumably welcome.
As opposed to the workplace, with people brought together by happenstance to cooperate productively, despite personal differences that are irrelevant to the production process.
> I attribute this far more towards the current climate of virtue signalling:
In many a historical era, tiny theological or political disputes have set neighbor against neighbor, brother against brother.
In the aftermath, the solution that civilized societies evolved was: don't discuss politics or religion! It worked. Let's restore it.
comment 7y ago · link · parent
You seem to be conflating "freedom" with "safety". Often they're correlated, but in this case they conflict.
comment 7y ago · link · parent
I can only grant you the benefit of the doubt and assume you aren't quite using the word the way the rest of the industry does.
Replacing two similar code fragments with two calls to a single method is an example of refactoring. In no universe would that ever be considered any sort of kitchen fire.
comment 7y ago · link · parent
No, ease of testing is one of the reasons for OO adoption, and probably the primary reason software is much more stable than it was in the mid 90s.
> Many of those higher-level classes are “polluted” with methods and properties that are only relevant to a small number of subclasses.
Well, then it's broken and needs to be refactored.
> During my last couple years working at Google, I created a new user interface toolkit called “Quantum Wiz”
Of course, in true Google style, you wrote something from scratch instead of refactoring the old.
> composition > inheritance
Not a new finding. I learned this in 2000, at the peak of OO craze.
> Because object oriented inheritance is about organizing things into classes, it doesn’t model the real world very well; what it does model well is the way humans think about the real world.
That's the idea. Good software is written for the simplicity of those poor slobs charged with maintaining it -- often ourselves a year later.
> A physical object has many uses other than the specific purpose for which it was built. I can use a coffee cup as a paperweight or a doorstop;
The whole idea of modeling is to remove certain details! Otherwise the model would be identical to the genuine article, and would provide no benefit.
comment 7y ago · link · parent
https://en.wikipedia.org/wiki/Soviet_influence_on_the_peace_...