Re:Ultratestable Coding Style
by awinder on Tuesday June 09, 2015 @09:27AM
(#9685756)
Honest question: how do you validate business rules are adhered to without defect in FRP and how does FRP differ from OOP in that regard?
[ Parent
| on HN ]
Stolen from Wikipedia: "FRP is a paradigm using the building blocks of functional programming." I doubt OP was referring to FRP.
In any case: in a functional programming language, you'd just unit test the building blocks (functions). Assuming every function is pure and total, these unit tests should be succinct and mirror your business logic quite closely.
Re:Ultratestable Coding Style
by ignorabilis on Wednesday June 10, 2015 @05:35AM
(#9690844)
Actually the OP uses Clojure in his project.
Re:Ultratestable Coding Style
by marcosdumay on Tuesday June 09, 2015 @12:56PM
(#9687015)
Not with unity tests, that's a certainty. Unity tests do not test business logic.
Yes, when people say that no tests are needed, it's hyperbolic. Tests are always needed, but you do not need to test all corner cases, just the ones created by business logic.