|
|
|
|
|
by stevenjohns
3046 days ago
|
|
> but they want tests and for me to treat it like a real production work When hiring back-end devs, I explicitly make it clear I want at least some tests -- and the more the better. Of course I don't expect 100% test coverage but writing tests shows that 1) you understand best practices 2) you know how to write testable (readable, maintainable, clean and clear) code. If candidates chose just one module and tested that well it would be enough to get the point across. Seeing how people write their tests is also quite important for me -- if instead of using factories (or Faker or some other strong dummy data app) they instead decide to hardcode usernames and passwords, it's a huge red flag. |
|
Tests prove no such thing. Best practices aren't about output, they are about inputs. Tests determine if the expected output is the real output.
> 2) you know how to write testable (readable, maintainable, clean and clear) code.
Again, no they don't. I can test unreadable, unmaintainable dirty and unclear code.
> if instead of using factories (or Faker or some other strong dummy data app) they instead decide to hardcode usernames and passwords, it's a huge red flag.
No it doesn't. It shows that it's an arbitrary take home assignment that already took a week and they don't want to use yet another library to generate data for it.
Honestly, you put so much emphasis on testing which is odd, because it's the easiest, most mundane thing to write. It provides nothing but "busy" work and fails to test the most important aspect of any candidate: can they problem solve.