Skip to content

thinkdavid/PencilDurability

Repository files navigation

PencilDurability

Pencil Durability Kata for Accenture

David Becher

I chose this Kata because I had previously done the Word Search problem, the babysitter one seemed a little too easy, and I prefer pencils to vending machines. I write more than I snack

This was my first time doing Test-Driven-Development in the manner that Pillar does based on the video and so I tried to be very thorough in my test cases. The ability to quickly do regression testing allowed me to make efficiency changes with confidence that the code would continue to work.

My biggest implementation challenge was in the "edit" function, and trying to make it work with the existing "write" and "erase" functions I had written. In the spirit of DRY, I modified these functions slightly to make them more flexible and it allowed the edit function to essentially become two calls to erase, then write.

Once the implementation was to a satisfactory level I started reading the Clean Code book that was mentioned in the project write up, and made a few changes to the code to better agree with some of the principles in the book (which was an interesting read, by the way)

There are no dependencies or external libraries other than Python standard library.

To install Python

To Build And Run:

  1. git clone https://github.com/thinkdavid/PencilDurability.git
  2. cd PencilDurability/
  3. python PencilDurabilityTests.py

About

Pencil Durability Kata for Accenture - David Becher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages