News for hackers. Stuff that matters.
Re:Why Ruby Is More Readable Than Python by jez on Tuesday July 19, 2022 @09:07PM (#32160043)
Ah sure, this alternate implementation assumes that the BlogPost class is final and never subclassed.

If you plan to subclass BlogPost, the translation is not identical, as the alternate implementation would not keep track of a global count of posts across all subclasses, only of `BlogPost` instances exactly.

Re:Why Ruby Is More Readable Than Python by gmalette on Tuesday July 19, 2022 @10:20PM (#32160586)
I saw you closed my ticket on sorbet for generics + sealed + exhaustiveness, that’ll allow some very welcome code cleanup!
Re:Why Ruby Is More Readable Than Python by gmalette on Tuesday July 19, 2022 @10:17PM (#32160574)
Depends who accessed it first ;)