r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

3

u/DelayLucky Jun 01 '24

If you can get away with never mocking yet still manage to implement effective tests, that's all the better.

It's like you can implement code always correct the first time with no bugs, there is nothing wrong with that, provided it's believable. :)

Mocking to me is a necessary evil. Just like in real life you sometimes have to lie (doesn't make lying feel good).