Game Update: Implementing Advanced Frequency Counter into Level 2
2 days ago, I made an Advanced Frequency Counter component. Today, I implemented it into Level 2 of my game.
Sounds easy enough, right? All I had to do was type in the component name, pass its props, and be done. Right?
Wrong.
After I implemented it, I came across a number of errors that I had to solve. While solving these errors, I also realized how untidy my code had become, which made the debugging process even harder. One of my functions was so bulky and cluttered, I had to split it up into 3. I tidied up the code and eventually rooted out the errors.
I learned 2 very important lessons from that experience. One, make sure to test your code more regularly, or you’ll end up with a heap of errors you’ll need to solve. Two, keep your code clean, or getting rid of bugs will be even more of a pain than it already is.