Why Knowing Code Conventions Matters: Tips for Clean, Readable Code

Published: 02 May 2025
on channel: HenrikM Dev
215
6

What are coding conventions and why do they matter? In this video, you’ll learn the best coding convention tips every beginner should know.
📘 Watch my FREE Capstone Project Workshop here:
https://henrikmdev.com/capstone

Need 1-on-1 coaching?
💻Click below to learn more about my mentoring program:
https://henrikmdev.com/coaching/

Something you'll realize when you start coding is that there are many ways that you can code the same thing.

For example, when it comes to indentation, instead of using spaces, you can use tabs—or vice versa, instead of tabs, you can use spaces. When you write your for loop, your while loop, or your if statements, you can place your braces in different ways. The compiler doesn’t really care—it’s still going to run your code the same way.

There are also different ways that you can name your variables. The compiler doesn’t care how you name them because it’s all up to you.

And lastly, there are so many ways that you can comment your code. Like I keep saying, the compiler doesn’t really care about what kinds of comments you put in your code.

These kinds of things are really up to you. The compiler doesn’t care, and your program is going to run the same way. But it’s still important to care about these minor things.

When you're starting to learn how to code, you may not worry about these things. But when you start working with a team or building larger and larger projects, it becomes important to make sure that you're consistent in how you format your code. This is all so that you can have better readability and make it easier for yourself and others to understand your code.

This kind of thing is called, in just one phrase—coding conventions.

So in this video, I'm going to be talking about what coding conventions are, why they're important, and I’m going to share some coding convention tips that I learned in university. These are tips that I’ve taken with me into my career and use every day at work.

I'm going to be sharing those tips and showing how I apply them to an example. I’ll go through an example and apply these coding convention ideas and principles to it.

Then, at the end of the video, I’m going to share some final comments about coding conventions and how I've seen them play out in my career.

=================================================
📚 Stay Tuned for More:
If you found this video helpful, make sure to like and subscribe to our channel for more programming tutorials and tips. We have a lot more exciting content in store for you, so stay tuned!
   / @henrikmdev  

👨‍💻 Have Questions?
If you have any questions or want to suggest topics for future videos, please leave a comment below. We love hearing from our viewers and are here to help!

🔔 Turn on Notifications:
Don't forget to ring the notification bell so you never miss an update from us. Stay ahead in your programming journey!

=================================================
💡 Coding Tutorials:
   • Coding tutorials  

💡 Git Tutorials:
   • Git tutorials  

💡 Dev Tool Tutorials:
   • Dev tools  

📁 Sample Code:
Find the sample code used in our tutorials on our GitHub page:
https://github.com/henrikmdev/

=================================================
📚 Books
C Programming Language: https://amzn.to/4etzNE5
Learning the bash Shell: https://amzn.to/483dvGN

⚙️ Gear
Webcam - Logitec Brio: https://amzn.to/3zUqfTG
Lighting - Ring Light Clip: https://amzn.to/3Y23yoj
Microphone - AKG Pro Audio P220: https://amzn.to/40hunIf
Audio Interface - Focusrite Scarlett 2i2: https://amzn.to/4gVTpSX

Thank you for watching, and happy coding! 💻🧡
-Henrik

Disclaimer: Some of these links are referral links. I may earn a commission if you use them, at no extra cost to you. You're not obligated to use these links, but it would be appreciated. Thanks!


On this page of the site you can watch the video online Why Knowing Code Conventions Matters: Tips for Clean, Readable Code with a duration of hours minute second in good quality, which was uploaded by the user HenrikM Dev 02 May 2025, share the link with friends and acquaintances, this video has already been watched 215 times on youtube and it was liked by 6 viewers. Enjoy your viewing!