26 ms·
I think this is too strong a take. The general rule, as stated, can be useful as a way to think about systems, interfaces, architecture, etc in broad strokes as
by eyelidlessness 3y ago
I think this is too strong a take. The general rule, as stated, can be useful as a way to think about systems, interfaces, architecture, etc in broad strokes as a vector for expectations which might fall victim to this pitfall. Being general, it isn’t prescriptive about the solution… but then, type safety isn’t always (and isn’t the only) solution. It’s a way to think about problems where you explicitly scrutinize the expectations they promote and their corresponding realities. You might arrive at type safety as a measure to align those, but you might also consider a variety of other concerns in the same thought process. It’s only unuseful if the problem you’re applying it to is itself vague, or if you’re unprepared to do the thinking involved in understanding a more specific problem and what expectations you’re addressing in solving it.