Using TypeScript solves all of those problems at compile time with full IDE support.
Descriptive names are not a solution when the data types are the same. It’s just as easy to mix up the parameters of the same type.
Descriptive names are not a solution when the data types are the same. It’s just as easy to mix up the parameters of the same type.