Re:Happy Birthday, Ruby
by joelbluminator on Friday January 11, 2019 @01:26AM
(#18881431)
It's not just code bloat, typed languags and frameworks like spring have to dance through hoops to allow for easy testability. Spring is founded on the idea of dependency injection that's supposed to overcome that. In Rails/Python and friends you just don't need that, and consequently things have much less bloat.
[ Parent
| on HN ]
...at the cost of globals all over the place and significantly fewer code-to-interface (rather than code-to-implementatation) moments.
I'd rather test a well-factored JVM or .NET application than I would any Ruby application I've ever seen in my life, to be frank. I've never, not once, had to write a mock (awful) for a test in a JVM or a .NET application, and the quality of my tests reflect that.
Re:Happy Birthday, Ruby
by TechFiend101 on Friday January 11, 2019 @01:52PM
(#18885826)
Yeah you just end up with race conditions everywhere causing corruption and data loss. See active-model-serializers 0.10.8 release that just found a race condition where serializers would share state across threads making the default Rails web server (puma) completely unsafe.