7 karma · joined Aug 12, 2017 (9y ago) · 9 submissions
comment 3mo ago · link · parent
comment 2y ago · link · parent
I'm not sure why so many laymen devs you mention (who, incidentally, tend to have an affinity for learning music and other "esoteric" skills) seem to apply that same logic. Like, why not learn and try the basics before throwing your hands up and saying it's too hard. It isn't... although it is very, very different.
comment 2y ago · link · parent
comment 6y ago · link · parent
This isn't really okay. It's fine if you disagree, but I don't get why such aggression is needed.
comment 9y ago · link · parent
You have one case branch that looks like:
GotUserList (Ok userList) -> ...
and another that looks like: GotUserList (Err _) -> ...
Since we need to pattern match on both types of the Result structure in our update cycle, there isn't really an opportunity to implicitly gloss over a failure to parse. Of course you can try to make the decoder super permissive, but this is harder than doing it the right way. If you're REALLY lazy, you can throw in "Debug.crash" in the failure case, but there's no general solution for throwing grenades at your foot :D