100 Days of Code: Day 58
100 Days of Code, Round 1
Well… Sort of. I ran into a bug in one of the ES6 problems, but everything else is complete. I know my solution is also correct for the problem that isn’t technically submitted yet, so once I receive word that the bug has been fixed, I can go back in, submit, and make it 100% official.
The good thing is I don’t have to wait to get started on the projects. SO that’s exactly what I plan to do tomorrow!
Another Important Lesson
Today I learned another really important lesson about naming conventions for functions. One of the algorithm challenges that I had left required me to create a function that accepts two arguments and returns the sum of those arguments. If the second argument wasn’t provided, I had to instead call another function that would take an argument and return the sum of the two numbers.
I must have been feeling cheeky when I decided to name that second function. The name was so close to the original function that I ended up accidentally mistyping it, which caused a massive infinite loop when I tried to run the tests. When I say massive, I mean I completely crashed Chrome, it would not allow me to refresh the page, and even with my debugger, it took at least 45 minutes to finally get it to stop so I could fix my typo.
Did I learn from my mistake right away? Of course not! Just for the fun of it, I did it all over again 20 minutes later.
Afterward, I renamed the function entirely and made sure I double-checked that I hadn’t typed the other name before running any further testing.
My Thoughts on ES6