Clean code #5 - Why code formatting is important!

Опубликовано: 02 Июль 2026
на канале: 100 GB
904
51

Welcome to Episode 5 of the Clean Code Series on 100GB! In this video, I delve into the importance of code formatting and its significant impact on the readability, maintainability, and long-term cost of software development. Join me as I explore the chapter on "Formatting Code" from Robert C. Martin's influential book, Clean Code.

I demonstrate the stark contrasts between poorly and well-formatted code, highlighting the need for professionalism and readability in your codebase.

The video covers both vertical and horizontal formatting techniques. In the vertical formatting section, we discuss concepts such as the newspaper metaphor, vertical openness, density, and the importance of arranging methods based on conceptual affinity. Moving on to horizontal formatting, we explore line width, horizontal openness and density, alignment, and indentation practices.

Additionally, I touch upon the crucial aspect of maintaining consistent formatting rules within a development team. I highlight the benefits of adopting a style guide from reputable open-source projects and utilizing linters and static analyzers to ensure codebase consistency.

Join me on this enlightening journey to enhance your code sense and master the art of writing clean and maintainable software. Share your thoughts and learning experiences in the comment section.

#cleancode #CodeFormatting #SoftwareDevelopment

Links:
Episode #1:    • Clean Code #1 - What is Clean Code?  
Episode #2:    • Clean Code #2 - Meaningful names  
Episode #3:    • Clean code #3 - Writing better Functions  
Episode #4:    • Clean code #4 - Why code comments are bad!  


-----------------------------------------------------------------------------------
Got questions? Reach out to me here:
Instagram:   / hundred_gb  
Telegram: https://t.me/hundred_gb
Linkedin:   / gaurav-bhola  
Twittter:   / gauravbhola_in  


--------------------------------------------------------------
My Setup details (In the US):
🖥 27 Monitor ($299) GIGABYTE M27Q 27" 170Hz with KVM switch: https://amzn.to/3oQEQGz
🦾Monitor arm - HUANUO Dual monitor arm: https://amzn.to/3OXlpq7
⌨️Keyboard: KINESIS GAMING Freestyle Edge RGB Split Mechanical Keyboard (MX Brown) ($199): https://amzn.to/3Soyv2q
📱 Phone - Pixel 5 128: https://amzn.to/3JvAXjH
🖥CPU case ($129) - SSUPD Meshlicious: https://www.ssupd.co/products/meshlic...
📸Camera - Sony a6600: https://amzn.to/3JrNLHZ
🔎Lens - Sigma 16mm 1.4: https://amzn.to/3oQi4i7
🎙️Mic - Boy BY-M1: https://amzn.to/3QbvJvS

--------------------------------------------------------------
Setup details:
Budget Table: https://amzn.to/3qe3Yql
Budget Electrical sit-stand (~₹34000): https://www.purpleark.in/products/sit...
🖥 27 Monitor (One I use) (~₹40000): https://amzn.to/2Phdpno
🖥 Best 27 Monitor(Budget) India: https://amzn.to/3gprICn
💻Old Laptop - Acer Nitro 7: https://amzn.to/3cWqfnj
📱 Phone - Pixel 5a 128: https://amzn.to/3qakGal
🍎Tablet - Chromebook duet: https://amzn.to/3vImlVM
🎧Earphones - Galaxy Buds+: https://amzn.to/3zCRc9p
🎙️Mic - Boya: https://amzn.to/2RqJCNW

On My Desk:
Cello carbon ballpen: https://amzn.to/3gMv8R1
Speed triple (₹350): https://amzn.to/2BXAE2U
Earphone pouch (₹299): https://amzn.to/2PxDY8d
Under table wire management-IKEA SIGNUM (₹1299): https://amzn.to/3i5X3Ky
Primary Keyboard: KINESIS GAMING Freestyle Edge RGB Split Mechanical Keyboard (MX Brown) ($199): https://amzn.to/3Soyv2q
Keyboard-2 : HyperX RGB Cherry MX Blue Elite (₹13000):
I bought this as a renewed one and costed me ₹8000.
Mouse: Logitech G402: https://amzn.to/2BXEAkc
MousePad (₹699): https://amzn.to/3fop2nk
6-axis Monitor Arms (Dual ₹6999) (Single ₹4999): https://amzn.to/3fq35ny
Monitor Arms (Budget) (Less flexibility) (₹2999): https://amzn.to/3fm9ArD
Dual vertical laptop Stand (₹2499) (₹2999 now): https://amzn.to/2Pj0AZE

Wire Management
Clips (₹249): https://amzn.to/3fqJzaO
Velcro cable straps (₹258): https://amzn.to/3fpQRvo
Tidy Up Wire Bin (₹599): https://amzn.to/33msKvi