Tech Tuesday: Coding Etiquette

To learn more about Web Design, I’m:

  • Completing the Udemy course “Build Modern Responsive Website with HTML, CSS3 & Bootstrap” by Irfan Dayan. ($10 – a steal!)
  • Continuing to practice my skills using the Brackets code editor.
  • Playing around on the Lrn app whenever I have a free moment.
  • Listening to the Code Newbie podcast.

These are not affiliate links and I was not compensated for citing these resources. My takeaways are also not comprehensive of the resources I share. If you like what you read, please support the creator.

This week, the lessons from my Udemy course focused on selecting fonts, colors, and icons for your website. While there are some incredible resources and tips in these lessons, I took away something entirely unexpected… coding etiquette.

I really appreciate how explicitly etiquette is modeled in this course. As a math teacher, syntax was incredible important, and I knew that was the case with code, but I didn’t have a resource to refer to. Now I find myself re-writing code in my website project as I learn.

Coding Etiquette

  1. Use the white space to increase readability.
    • Add blank lines between lines of code.
    • Indent. Whenever something is nested, indent it.
  2. Write comments. They’ll help you and they’ll help the others who come after you.
Example of clean HTML with blank lines, indentation, and comments. (Source)

Dayan talks about how to enter tags and code as text within lines of code, but I can’t find it in the lessons. Have you done that before? Please share!

What coding etiquette do you live by that isn’t listed here? How did you learn it?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s