News for hackers. Stuff that matters.
Re:Strong typing, a hill I'm willing to die on by sneed_chucker on Wednesday October 04, 2023 @01:13PM (#37768345)
That's not a shortcoming of strong or static typing, that's just you realizing that your initial data model was flawed and that you either needed to unify them into a single type (like you did) or utilize an abstract class/interface.

The good thing about stricter typing systems is that it forces you to handle all the cases when you're doing a refactor like this before it compiles.

When changes to the data model happen in large codebases of dynamic code, it frequently gets shipped in a non complete state and turns into a production runtime error later down the line.

There are no comments on this comment yet.