
100 Days of Code: Day 58
Goals For Today:
[ultimate_icon_list icon_size=”16″ icon_margin=”20″][ultimate_icon_list_item icon_type=”custom” icon_img=”id^4091|url^https://www.blissfullemon.com/wp-content/uploads/2018/05/done.png|caption^null|alt^null|title^done|description^null”]Finish the ES6 section of Free Code Camp[/ultimate_icon_list_item][ultimate_icon_list_item icon_type=”custom” icon_img=”id^4091|url^https://www.blissfullemon.com/wp-content/uploads/2018/05/done.png|caption^null|alt^null|title^done|description^null”]Finish the remaining JavaScript algorithms and prepare to start on the projects tomorrow[/ultimate_icon_list_item][/ultimate_icon_list]Ladies and Gentlemen, sound the trumpets. I have FINALLY finished those JavaScript algorithms and the ES6 section!
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
Now that I have finished the ES6 section, I have a much better understanding of the changes that were made from JavaScript. I even have to admit that I’ve found myself using let and const, as well as arrow functions (believe it or not) on a somewhat regular basis. I’m still not completely comfortable with a lot of it, but it’s growing on me.
Do I plan to abandon JavaScript completely and write all my code in ES6? Definitely not. Will I continue trying to learn even more so I can become more comfortable with ES6? Yes.