I had a great Thanksgiving long-weekend, thanks for asking! It was full of food and friends and a little bit of daily coding here and there. Except for oneeee tiny thing…
I missed a day of the 21-Day Coding Challenge 😦
I am just as disappointed as you probably are. I know. It’s bad!!! See what happened was on Saturday, I hosted a Friendsgiving dinner and in all the cleaning, cooking, and hosting hubbub, I got lost in the gravy sauce and simply … forgot to do the challenge …… which sets me back a day. The 21-Day Coding Challenge waits for NO ONE, not even beloved Lighthouse staff. I am now 1 day behind.

But let’s backtrack a bit first and reflect on Day 5: Friday.
Day 5
Friday was okay. I looked at the challenge earlier in the day and got super intimidated by it from the get-go, so put it off until the very end of the day right before bedtime. I was stuck on it for a looong time but after a few Google searches and a nudge in the right direction from my developer friend, I finally flashed back to COMP 202 at McGill and how we touched on Unicode/ASCII and then I solved it! I LOVE when the thousands of dollars I have in student loans actually pays off in a real life situation!

The only thing that I find myself repeatedly doing though, is putting in extra code that absolutely does not need to be there. For example, the solution that I submitted for Day 5 was this:
function convertColumn(coordinate){
coordinate.split(“”);
var n = coordinate[0].charCodeAt(0) – 65;
return n;
}
See, I KNOW that the split was totally unnecessary. But I didn’t realize until it was too late and now I cannot remove it. But I’m glad I can reflect back on it and realize the mistake. It’s all part of the journey!
Day 6
The Day It All Went Wrong. It completely slipped my mind in the midst of all the Thanksgiving commotion, which obviously indicates that I have not succeeded in making coding a daily habit yet. Once I did tackle it though on the day after, I had one of those moments where I thought I had the correct code and so I kept submitting it but it would not run. And I could not for the life of me figure out what went wrong! I was so convinced that it was right. After a frustrating 100 attempts, I finally figured out that I had forgotten to suBTRACT 1. And then it worked. And then I was happy again.
Day 7
I was so confident going into the seventh challenge on Monday (instead of Sunday, because, you know, did I mention I missed a day? 😦 ). I submitted my answer within 2 minutes and cheered out loud at the sight of that sweet sweet red text saying “Congratulations”. However, after triumphantly showing my developer friend my answer, that victory high quickly wore off when he informed me that a lot of the code I had was – like Day 5 – again, completely unnecessary and apparently there is a way more efficient way to solve it.
My code:
function isRock(coordinate){
if(lightCell(coordinate) === ‘^’){
return true;
}else{
return false;
}
}
Maybe I just like writing out If statements because they’re FUN okay? Any chance that I get to flex my coding knowledge with loops and if statements, I will jump at. Oh well, at least I solved it! ¯\_(ツ)_/¯
Day 8
Very pleased that Challenge #8 was extremely similar to Challenge #7, so I was able to practice code efficiency this time and repent from yesterday. This is the refined code I submitted:
function isCurrent(coordinate){
return lightCell(coordinate) === ‘~’;
}
*Mic drop*

That wraps up my coding long-weekend! I can’t believe the challenge has already been going on for a week now! Overall I know that I am still traveling on the long road to efficiency but I’m determined to get there, and I am also determined to never miss another day!
Bye for now!
-Rachel










