Notifications

Day 2: It’s really dark in here…

Since this is your first piece of new code, we’ve included two versions to prove an important point. One with comments, and one without. They are 100% functionally equivalent.


Comments are ignored by the compiler and are a feature useful to YOU to help make code more readable. It may look long and daunting, but it’s mostly just useful information for you to read.

When you remove all the comments, it becomes a LOT smaller, but with less potentially useful information for the developer (you!)


The exact same code without comments:

TL;DR: Don’t be afraid of comments! Good programmers use comments. Start good habits and try adding some yourself!