October 2023
Intermediate to advanced
384 pages
9h 12m
English
Is functional programming better than programming with mutable variables? Let’s do a comparative analysis of some familiar exercises. Here, for example, is the traditional Java derivation of the Prime Factors kata using TDD, roughly as it was presented in Chapter 2 of Clean Craftsmanship.3 A related video, Prime Factors, is also available. You can access the video by registering at https://informit.com/functionaldesign.
3. Martin, Clean Craftsmanship, p. 52.
We begin with a simple test:
public class PrimeFactorsTest { @Test public void factors() throws Exception { assertThat(factorsOf(1), ...Read now
Unlock full access