Using clean code principles for better code

Being Professional

I only covered a few of the aspects that are important for creating clean source code. If you'd like to learn more, check out Martin's book, Clean Code [1], for invaluable information.

Even though software is often created with the help of tools, these tools have only a minor influence on the product's quality. The developer, on the other hand, bears the larger responsibility of delivering quality software. For that reason, it is extremely important for the developer to work efficiently and cleanly. Another book by Martin, Clean Coder, provides great insights into the developer's daily grind [2]. The book describes the typical problems in software projects and shows ways to solve them. You not only need to know how to create clean code, but also how to become a developer with a clean work approach.

Conclusions

Building programs using the clean code approach is more of a marathon than a sprint. You can't implement all these tips and rules overnight and write only clean programs. However, to paraphrase the scout rule, it is possible to program a little better every day. The advantages are obvious: Easily understandable code is easier to use and maintain. On top of that, it's also much more fun to work with clean code. Even when pottering with Raspberry Pi projects, clean code can make your life easier, so start today!

The Author

Martin Mohr has experienced the complete development of modern computer technology in real time. After completing his studies, he mainly has developed Java applications. The Raspberry Pi has rekindled his old love of electronics.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • PHP XHP Extension

    The PHP XHP extension lets you use HTML and XML tags directly in the PHP code.

  • JavaScript Alternatives

    JavaScript is the stuff of which many interactive web clients is made, but it comes with a fair amount of historical ballast. The creators of four alternative scripting languages seek to ditch the ballast.

  • Kotlin Programming Language

    Kotlin, a small island in the Gulf of Finland, is also the name of a new programming language that aims to become a modern alternative to Java.

  • Rails Framework

    Most web libraries make 90 percent of the job simple and the rest impossible. Rails,an open source framework programmed in Ruby,is flexible enough to succeed with that remaining 10 percent.

  • GPIO on Linux Devices

    The general purpose input/output interface is not just for small-board computers anymore: You can use GPIO on your Linux desktop or laptop, too, through the USB port.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News