News for hackers. Stuff that matters.
Re:Why Crystal Is My Next Language by kjeetgill on Monday June 11, 2018 @12:18AM (#17281752)
> Refactoring becomes not just a chore, but genuinely psychologically stressful as you begin to worry about things breaking in production. And they frequently do.

Beautifully put. The ability refactor confidently is so underrated. It's one of the places where a little bit of verbosity (i.e. Java) pays huge dividends.

> Duck typing is elegant, but it only works so far as you know the range of types to expect.

Go shines particularly well here. In Java code bases, interfaces occasionally accumulate too many methods or interfaces of interfaces start to get unwieldy. I like Go's approach of letting the function declare the relevant subinterface it really needs.

There are no comments on this comment yet.