100 Days of Code Day 41
Today’s first exercise Clock would have been so much easier if they included some specifications. Like plus() and minus() have minutes as a parameter (why that wasn’t already set in the skeleton I don’t know). Also, the constructor takes hours and minutes as parameter but minutes is only sometimes populated so default that to zero. Back to plus() and minus(), they need to return the this parameter so that we can chain method calls. Teaching to the test is considered bad in Elementary schools, it is teaching you to pass a test, not learn. Exercism needs to figure out that coding to the test cases isn’t good either. Second exercise meetup was messy but not hard, community solutions were better than mine, and the third one ETL was just remapping a dictionary to swap the keys and values around was easy. Looks like I am now seven behind for pace to finish the track by end of 100 days of code.
For the more aspirational stuff I worked on Chapter 11 – Serial Communications in Gameboy Coding Adventure. I am not sure if I would use the serial communication or not in a game I make, but I should go through it anyway.
