Kata and Mac
Practice Makes Perfect
After our morning standup, I drove over to Micah’s house to pick up my work laptop! Micah and I were able to talk about what the expectations were for the kata performance. This has given me a good idea of what I should be practicing on throughout this week. I’ll definitely be putting in the practice, so that the kata performance falls within the 5-10 minute range and that the theme of TDD will be displayed clearly.
Today’s Tasks
- Bowling Game Kata
- Euler #3
- Set up macbook!
Challenges
Euler
- Figuring out the correct alogrithm with a low enough runtime so that when n becomes large the program is able to run successfully.
- Figuring out how to use recursion to factorize the number.
- What data structure to hold all the factors?
- Sets, Lists, Sequences, etc.
Kata
- Figuring out the IntelliJ shortcuts to use for the kata performance
- Getting into the habit of performing the kata as TDD being the focal point.
TIL
- Difference between mod and rem in their under the hood implementation. On the surface they both have the same functionality but…
- mod:
- means Gaussian mod, so the result will always be non-negative.
- returns the difference of the first number and the biggest integer multiple of the second number that is less than the first number
- Whereas, rem:
- implements ANSI C’s % operator
- is just the remainder
user=> (mod -10 3) ;; 2 ;; The greatest integer multiple of 3 that is less than -10 is -12 ;; -10 minus -12 is 2 user=> (rem -10 3) ;; -1
- mod:
Looking Ahead
I have been pretty consistent in waking up around 4:00 - 4:15 and getting to the office around 5:15. It has been nice getting some work done and being productive before the standup. Although I have been getting up early, I need to do a better job in getting enough sleep and staying focused on getting through my daily tasks.