←back to thread

Type checking is a symptom, not a solution

(programmingsimplicity.substack.com)
67 points mpweiher | 3 comments | | HN request time: 0.427s | source
1. 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 #
2. Rohansi ◴[] No.45143097[source]
Text goes in and text comes out - simple! Works perfectly for shell scripts. /s
3. 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".