Twitter, lend me your thoughts: Why is it hard to write quality software?
-
-
Replying to @DRMacIver
OK, follow up to attempts to reject the question: Why is it hard to ship bug-free software?
5 replies 1 retweet 0 likes -
Replying to @DRMacIver
@DRMacIver There is one happy path, and a million unhappy ones. We can test "it does x" but can we test "it doesn't do anything else"?2 replies 1 retweet 2 likes -
Replying to @jessitron
@jessitron@DRMacIver this is why I like types and immutability. You can exclude a meaningful number of paths by construction.1 reply 1 retweet 2 likes -
Replying to @nuttycom
@nuttycom@DRMacIver True. There's also event-driven style: if all your code can do is emit events, you can test that what wasn't emitted4 replies 0 retweets 0 likes -
Replying to @jessitron
@jessitron@DRMacIver Can you elaborate? I'm not sure what such a test looks like from this description.3 replies 0 retweets 1 like -
Replying to @nuttycom
@nuttycom@DRMacIver code is [Event] -> [Event], so one can assert "only these events were emitted"1 reply 0 retweets 0 likes
@jessitron @nuttycom @DRMacIver Shouldn't we define what an "event" is to distinguish this from just any program? How is input constrained?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.