It's very costly though.
30 karma · joined October 31, 2021
It's very costly though.
[0] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
What value does this MVP offered, bookkeeping orders? Couldn't the restaurants just contact the courier directly too? Looks like the restaurants were already doing it.
I'm assuming the burden of filling up the web form would be the same as contacting the courier. In many places couriers will use their own cash to pay for the order, so the restaurant gets the payment immediately.
Since we are talking about single-threaded single stack context, immutability wouldn't have saved you here, even with immutability you could have receive the wrong value/data from some function in another module down the call stack. The problem was not mutation but a function returning bad output.
You are implying some code modified data underneath you, which can't happen in a single thread.
One could answer, "Sure, but that will take away time from current things that need attention."
Sure Clojure is a better language but not better enough to justify the additional abstraction layer IMO.