Skip to content

Comment on “Prime Testable” Code

Comments

It basically seems to advocate using functional programming, or at least writing pure functions for the code that you want to be testable.

Got a little bit disappointed in the content of the article. In fact, the whole article amounts to the three sentences of information "Write functional code. If it doesn't work, reorganize. Try it and let me know". I wish the author at least pointed how to convert the code to the testable state. Not to mention the "reorganization part" totally blows all the meaning out of all previous sentences -- if writing pure functions may not work, does what you say even matter?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.