Next task in the kata is to allow arbitrary delimiters in our sequence of numbers. Delimiters are specified by an (optional) prefix in the string. Hence, we need some logic to split and interpret both parts. First, I get it to work, then, I refactor to clean up.
► All Kata Episodes: http://goo.gl/xicl9c
► Let’s Develop! http://letsdeveloper.com
► Don’t Miss an Episode: http://goo.gl/whzDi1
► Kata: http://osherove.com/tdd-kata-1/
► The Code: https://github.com/letsdeveloper/Lets-Develop-Code-Kata
«Code Kata»
Code Kata are small and simple programming problems that we execute to practice software engineering methods, like TDD or pair programming. The term is derived from Japanese martial arts.
«Other Series»
► Let’s Develop Conway’s Game of Life: http://goo.gl/xc59GX
► Let’s Refactor MovieRental: http://goo.gl/f7Yf21
Share this: | Follow me: