4 ms·
It's 100% as useful, but much more difficult to mock and inject.
by voodootrucker 8y ago
It's 100% as useful, but much more difficult to mock and inject.
- lancerkind 8y agoThe static typing makes mocking harder (Java, C#). Working in Javascript makes mocking so easy you don’t need a mocking framework. TDD is an awesome practice in all languages, strongly types or not.
- paulddraper 8y ago> much more difficult to mock and inject Isn't it just the opposite? The whole reason of Mokito ( https://site.mockito.org/ https://site.mockito.org/ ) is to make Java mocks easier by adding dynamic typing.
- jacques_chester 8y agoWhat you write in your tests, how you test, how you design the software and so on are altered by the language you work in. This is as it should be. If I have a type system that prevents certain classes of defects, I gleefully accept that bounty. If I have a type system that simplifies certain classes of tests, I gleefully accept that bounty. I will happily rant and complain about all of them, but I will also try to program to the strengths of what I'm using. Wishing one language was a different language is a waste of everyone's time.