Re:It's probably time to stop recommending Clean Code (2020)
by hinkley on Tuesday May 25, 2021 @05:06PM
(#27282658)
I have a couple people who use a wall of boiler plate to do something 3 lines of mocks could handle, and not couple the tests to each other in the process.
Every time I have to add a feature I end up rewriting the tests. But you know, code coverage, so yay.
Re:It's probably time to stop recommending Clean Code (2020)
by Aeolun on Tuesday May 25, 2021 @07:01PM
(#27283874)
I see this with basically any Javascript test. Yes, mocking any random import is really cool and powerful, but for fucks sake, can we just use a DI container so that the tests don’t look like satans’ invocation.
Like good god, extract that boiler plate into a function. Use comments and white space to break it up and explain the workflow.