News for hackers. Stuff that matters.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by earleybird on Thursday June 20, 2019 @07:58PM (#20238674)
To abuse Greenspun's 10th - Every untyped codebase contains ad-hoc, informally specified, bug-ridden, slow implementation of types (written as unit tests).

edit: as pointed out - I need type checking on my words

Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by crdoconnor on Friday June 21, 2019 @01:06AM (#20240007)
This "unit tests substitute for static types" is a common straw man. Asserts catch similar kinds of bugs to static type checkers with a similar level of effectiveness and cost.

Moreover, they're typically able to do more sophisticated checks than most languages (e.g. similar to the kind of sophistication of Haskell's type system).

(yes, I know what is going to be replied... IME, they actually fail in prod vanishingly rarely)

Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by jolmg on Thursday June 20, 2019 @08:03PM (#20238700)
I think you meant "types as unit tests", not the other way around.