The Why of Clean Code
Lab: Part 1 – Introduction to Modularity – Developer’s Genesis Starter Child Theme
Video Runtime: 12:47
There are two main principles which will accelerate your career in this profession: fundamentals and clean, quality coding techniques. Mastering these, incrementally building yourself up and incorporating them into your workflow and code will make you more in demand and marketable. Why? Why is clean, quality coding so important?
Clean code means quality. You are increasing the quality of the product you are producing. Why? By breaking up your code into modules, having a function do just one thing and behavior, purposefully naming variables and functions, and making your code more readable, you are reducing the maintainability costs of code. Quality increases not only the perceived value but also the realized value.
Remember that when you are fixing bugs, that task is taking you away from building projects, especially after you’ve shipped to your client. You’ve already been paid. And unless you are being paid for the actual time it takes you to find the root cause and resolve it, the money in your (or your company’s) pocket decreases. Why? Because you are not spending your valuable time on producing software solutions. Instead, you’re working on bugs in past projects.
But the reality is: bugs will exist and you will spend time on past projects. Therefore, maintainability means you can isolate to more quickly find the root cause.
Obviously, you want your code to be of the highest quality possible. Right? It is your art and a piece of you. It is a reflection of you. So quality has another side to it, as you become even more proud of the work you deliver.
For all of us, quality means we can read each other’s code and help one another resolve issues or make it better. It serves not only you, your company, and your client, but the entire ecosystem.
In this episode, you will learn more about the why of clean code, or as I call it: clean, quality coding.
There’s a time to code and …. yup, that sums it up.
Episodes
Total Lab Runtime: 03:59:03
- 1 Lab Introductionfree 05:01
- 2 What the Heck is Modularity?free 13:12
- 3 The Why of Clean Codefree 12:47
- 4 Laying Out the Theme's Architecture - Part 1pro 09:04
- 5 Laying Out the Theme's Architecture - Part 2pro 10:34
- 6 Slicing Up the Sample Theme's functions.phppro 06:44
- 7 Initialization Tasks - Theme Constantspro 14:47
- 8 Initialization Tasks - Directory Constantspro 05:49
- 9 Setup Taskspro 38:00
- 10 Refactoring Theme Supportspro 08:01
- 11 Refactoring Image Sizespro 03:52
- 12 Genesis Structural Componentspro 05:10
- 13 Load Assets (Enqueue)pro 05:56
- 14 Theme Customizer Filespro 15:43
- 15 Theme Settings Defaultspro 06:34
- 16 Autoload Modulespro 11:19
- 17 Unregister Default Genesis Callbackspro 00:00
- 18 Test & Wrap it Uppro 06:30