The correct answer would have been: “Why should I? You’re an idiot.”
The correct answer would have been: “Why should I? You’re an idiot.”
If you go back to my example, you’ll notice there is a
UserUniqueValidator
, which is meant to check for existence of a user.
Oops, right, I just glanced over the code and obviously missed the text and code had different class names. Another smell in my opinion, choosing class names that only differ in the middle. Easily missed and confusion caused.
I don’t think our opinions are too far off though. You’re just scaling the validation logic to realistic levels and I warn that in practice coders extrapolate too quickly and too often, which results in too much generic code which is naturally harder to understand and maintain than specific code.
I would argue that the validate routines be their own classes; ie
UserInputValidator
,UserPasswordValidator
, etc.
I wouldn’t. Not from this example anyway. YAGNI is an important paradigm and introducing plenty of classes upfront to implement trivial checks is overengineering typical for Java and the reason I don’t like it.
Edit: Your naming convention isn’t the best either. I’d expect UserInputValidator
to validate user input, maybe sanitize it for a database query, but not necessarily an existence check as in the example.
The popularity of casinos and lotteries say otherwise.
Oddly satisfying
Yes, AI models break down when being fed AI garbage.
deleted by creator
deleted by creator
Yeah. They usually pollinate my sweet toast in spring and my ham in late summer.
So the conclusion is venomous is a subset of poisonous and the movie totally watchable.
Can I be the house?
I just see it positively and choose to believe you’re in the process of transitioning to enlightenment (metric). ;)
If I only were twice as large I totally wouldn’t pet one
The current Wikipedia entry doesn’t even have the same picture (text checks out though).
I could’ve sworn I once had a pint but it was in a hotel lobby in Bangalore so not quite representative. I stand corrected, thanks.
India, I think. But that’s the Brits’ fault too obviously.
Removed by mod
Also whole degrees. edit: no, that’s wrong, there are thermostats that allow 1/10th of degrees (I only have old manual ones). Still, you probably are not able to tell the difference between 20 and 20.1 °C. Humidity is far more relevant.
A difference of 2 °F is 1.1 °C…
For traffic Celsius is more intuitive since temps approaching zero means slippery roads.
You’re long passed that with Fahrenheit. And on a scale from 0 very cold to 100 very hot, 32 doesn’t seem that cold. Until you see the snow outside.
I have no idea about the credibility of that news site (not American) but if I wanted to construct ragebait targeted at the left that’s exactly the kind of story I’d publish. The comments here show great engagement.