Lesson 4: Writing Simple Code
Lesson 4: Writing Simple Code
At the end of this lesson, you'll get a chance to actually start writing simple code not just editing something that's already there!
At the end of this lesson, you'll get a chance to actually start writing simple code — not just editing something that's already there!
At the end of this lesson, you'll get a chance to actually start writing simple code — not just editing something that's already there!
But first, a little more info.
What Good Programmers Do (Instead of Remembering)
An experienced programmer will make notes in the code that are not actually part of the program, but comments about what they did or why they did it. When the program runs, these comments are ignored, but the programmer's notes, called code comments or just comments, stay in the code.
Code Comments
Writing code comments is good practice in general, but is especially useful when you're just starting to program and figuring things out as you go. These comments can be really helpful when you try to understand why you (or someone else) did something.
The simplest way to write a code comment is to put a # in front of the comment, but there are also other ways to do it:
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.