Java for Humans {Comments}

Lincoln W Daniel
ModernNerd Code
Published in
4 min readDec 18, 2015

--

View Table of Contents | Download Supporting Code | Subscribe to ModernNerd Youtube Channel for Coding Videos | By Lincoln W Daniel

If you have the best memory in the world, you might be able to remember everything you do, why you do it, how you do it, and when you do it. You may even be able to tell people about your experiences when you are near them. If that is the case, you are very much fortunate. However, what about when you’re not nearby? How will you and others remember what you did to get a line of code to work and what it’s supposed to do? Queue the computer.

Why Comments are Important & Useful

Computers are the best at remembering information you give it and sharing that information with others when you’re not around. The folks who designed Java put this principle to good use for the sake of efficient programming. Java allows you to make comments in your code to help you and your team remember what your code does. It is very useful for every bit of code that people may have a hard time understanding. The best part of comments is that they will not be compiled by the compiler. In other words, comments don’t affect the execution of your code. They are like thought bubbles.

Your goal as a programmer is to write clean, effective, and human understandable code. Comments will help you more easily accomplish writing human understandable code. As you get better at coding and begin building large projects with complex algorithms, you will want to make…

--

--

Lincoln W Daniel
ModernNerd Code

Chief Bull @ BullAcademy.org ® Elevating writers @ ManyStories.com. Author @JavaForHumans Ex: Editor in Chief MarkGrowth (acq.), Engineer @Medium @GoPuff