Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use Java and Spring extensively. If I am in a lead role and have say over the code base I won't allow mocking frameworks to be used in tests. If you want a good way to shine a light on poorly structured code, disallow mocking frameworks.

Java added the Funcional interface in v8 making it quite easy to code to an interface and yet in Spring everyone's go to is just to slap a @Component on a concrete class.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: