←back to thread

Type checking is a symptom, not a solution

(programmingsimplicity.substack.com)
67 points mpweiher | 1 comments | | HN request time: 0s | source
Show context
Smaug123 ◴[] No.45141940[source]
> When components are designed as genuine black boxes—where what happens inside stays inside, and communication occurs only through explicit input and output ports—systems naturally become easier to reason about.

"How do you specify the shape of the input and output ports?" shouts the goose as it chases me away.

replies(2): >>45143097 #>>45160820 #
1. yencabulator ◴[] No.45160820[source]
Author's continuation article at https://programmingsimplicity.substack.com/p/type-checking-c... clearly shows that the input and output ports he can think of are all "string".

If I felt snarky, I'd say "This is your brain on Javascript".