Oddbean new post about | logout
 Look, I wrote an essay about why ramsey/uuid uses `final`. If you want to change that, it’s on you. #PHP 

https://uuid.ramsey.dev/en/stable/faq.html#why-does-ramsey-uuid-use-final 
 BTW, I don’t even remember writing any of this. Maybe that’s Covid brain? 
 @90431d67 And it's on those who come after the dev who removed "final" and are unable to revert it without given time + money. 
 @90431d67 as someone who’s not a fan of the massive overuse and of `final` everywhere, I think you actually have a very valid use case here. It is getting very frustrating that `final` is used on everything.

And, yes, I’m an advocate of composition over inheritance in most cases. Even so, I’ve run into situations where a simple, quick extension of a class that is almost perfect would be just fine and call it a day. But, it was declared `final` so that can’t be done.