#codeproblems — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codeproblems, aggregated by home.social.
-
Java's final classes stifling innovation
I wanted to extend Optional for seamless integration of my TypeMap library. Fluent, functional, and reflection-free. But nope, Optional is final. Now I’m stuck recreating and syncing its methods manually. Final or Private classes don’t prevent misuse, they block creativity and create more mess when copying functionalities. I love final, but not on classes.
TypeMap: https://github.com/YunaBraska/type-map#Java #Programming #Optional #FinalClass #CodeProblems #DevLife #TypeSafe #InnovationBlocked #FunctionalProgramming #CodeDesign