This month I’ve been hard at work participating in Advent of Code 2020. We’ve recently switched over to trying Cypress for our automation tool of choice at work, and the front end developers have recently switched over to using Vue.js to revitalize the front end development stack.
As of the time of this writing, I’ve solved through day 18 and only looked for help on day 13 where I got stuck thinking about cycles and remainders. I deployed the application up on Heroku and, assuming I havent hit my free limit of resources, you can see it in action here. Here are a couple of screenshots of the current state of the front end I built:
This has been a fun journey, and I’ve learned/remembered a few things along the way:
forEachloop and if you use an
forloop paramaters you can easily catch yourself in an infinite loop.
- Typecasting can be pretty easy to mess up. I constantly caught myself forgetting to
parseInton a string and only finding out pretty far down the line in nefarious ways.
- Logging to the console doesn’t always produce the desired results. Objects often display their final state when expanded rather than the state when they were logged, for example.
- I actually introduced a promise in a meaningful way which allowed me to alter the state of a Vue component and wait until my script solution completes. This felt nice after struggling so much with promises in the past.
- Vue is a pretty nice and easy to use framework, even for smaller hobby/one-off apps like this one. I really like how it separates the concerns between markup, script, data, and state.
I need to start balancing my time with studying for the Certified Kubernetes Application Developer (CKAD) and AWS certifications I purchased vouchers for to take next year, so my progress may slow a bit over the holiday. That said, I fully plan to finish the entire 25 days in the next few weeks. Stay tuned!