this post was submitted on 08 Jun 2026
284 points (98.6% liked)

Programmer Humor

31762 readers
223 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] sudo@programming.dev 2 points 2 days ago

some problems are better solved via OOP, others through functional programming. The perfect language would be a successful blend of the two.

That was the entire goal of Scala and I would say Scala both accomplished it and is a worse language for doing so. Some OOP principles are just bad, namely subtyping. Rust genuinely does blend OOP and Functional in a better way. Instead of classes and interfaces with lambdas you have algebraic data types and type classes with for loops.