HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lackbeard

no profile record

comments

lackbeard
·8 yıl önce·discuss
I guess what I'm getting at is that in any non-trivial program with many external dependencies and cross-cutting concerns, almost all of your code is the "shell", so either I'm missing something, or this is stating the obvious (write pure functions where you can) in a very roundabout way. I've never seen a program written explicitly in this style that wasn't a trivial example.
lackbeard
·8 yıl önce·discuss
Know of any good open-source examples?
lackbeard
·8 yıl önce·discuss
Does anyone know of an example of a non-trivial codebase written in this style?

How do you do this cleanly when, e.g., you need to make a network call and then based on what the result returned to you is, either do something with a local database, make a different network call, or return a result to your user. Also, error handling...

It seems to me like monads must be the logical conclusion to this style of programming, or else you wind up with a mess (or just abandoning this technique.)
lackbeard
·11 yıl önce·discuss
>If I can be convinced by evidence, but you cannot be convinced by evidence, then it is you who has a religious belief, and not me.

He just stated that his belief is religious...

(Well, he didn't state that exactly, but he did state that you may as well treat it as such.)