• 0 Posts
  • 14 Comments
Joined 2 months ago
cake
Cake day: December 11th, 2025

help-circle
  • I’m pretty sure that’s a sidequest in Starfield. The ECS Constant colony ship set off in 2140 to colonise a planet, arriving in 2330 at the planet Paradiso, which had become a luxury resort planet for the rich, because shortly after the ship left, humanity invented the grav drive and every ship just zoomed right past them.



  • Only if you’re going by the strict UML definition of composition, which doesn’t really apply here, since the industry has moved on a bit since UML was king.

    Either way, you can use DI to do composition in the strictest UML way, provided every single dependency is transient and creates a new instance every single time. Even then though, when most devs talk about composition, they aren’t referring to the strict UML definition.


  • If you’ve used Dependency Injection before, you’ve used the principle of composition over inheritance. So, if you’ve ever used .Net (C#), Spring Boot (Java) or Laravel (PHP), you’ve likely used it. Modern C++ also has the DI pattern.

    Rust and Go force you to use composition and don’t support inheritance at all, so if you’ve used either of those languages, you’ve followed the practice, though Go doesn’t support DI out of the box. Functional languages like Haskell also use composition over inheritance.