Peter Kofler gave a presentation to the Java Student User Group in April 2010 about the Prime Factors Kata coding exercise proposed by Robert C. Martin. The exercise involves writing a class with a static method that takes an integer as input and returns its prime factors. Kofler demonstrated an implementation of the Kata and emphasized the importance of code quality and software craftsmanship.
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Prime Factors Code Kata (2010)
1. Prime Factors Code Kata
Java Student User Group
April 2010
Peter Kofler, ‘Code Cop’
@codecopkofler
www.code-cop.org
Copyright Peter Kofler, licensed under CC-BY.
2. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Peter Kofler
• Ph.D. (Appl. Math.)
• Professional Software
Developer for 11 years
• Lead Developer at System One
• fanatic about code quality
7. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
The Requirements.
• Write a class named “PrimeFactors”
that has one static method: generate.
– The generate method takes an integer
argument and returns a List<Integer>.
– That list contains the prime factors in
numerical sequence.
http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata