100 Days of Code Day 58
Today’s exercises where quite draining and took too long. I think I will skip Game Boy stuff today.
- Word Search: Wow, my solution is tons longer and more complicated than every one else’s. It was more lengthy than hard. I got another “try again” insult when I marked it complete.
- Variable Length Quantity: They didn’t explain this very well, I had to go to the thankfully included wikipedia link. Javascript doesn’t really want to do the bit twiddling very well (numbers are all floating point internally). I had to use the >>> operator to convince Javascript to treat things as unsigned ints (temporarily). Also there was a requirement to throw an error if incomplete that again was in the tests but not the specification. I should be writing to the specification not the test cases. Yet another rude try again message on submit. If you don’t like my code tell me why.
- Two Bucket – Three for three on exercism insulting my solutions. I mean it is long but a lot of that is comments. This one was hard to get just right. A lot of the difficulty is they didn’t really explain what they wanted very well. I spent half the time thinking we were taking turns and you could only do operations on one of the two buckets. I did still get most of the code in with that bad understanding. Instead your first move is pretty must just required to fill the starting bucket, and you can otherwise do “legal” operations on both.