Cisco CloudCenter: Get the Hybrid IT Advantage


Definition - What does Cruft mean?

Cruft is a slang term for useless, redundant, or poorly written code. Cruft includes any code that is not necessary for an application to perform the task it was designed for. It also can be used in the context of code that is so poorly written, that you might as well throw it out and start from scratch.

Cruft isn't necessarily a bug, but rather makes the code harder to read and maintain. A code or piece of software suffering from cruft may be called "crufty" or "cruftier than the previous version".

Techopedia explains Cruft

Consider the following section of code in Java which illustrates the existence of code.
Class Hello
String name;
String address;
String Street;
String city;
Void someFunction(){…}

The problem associated with the above code is the redundant usage of String statements. This is a simple example of cruft. More complex forms of redundant code are not easily identified until the testing phase. By that time, a considerable amount of resources and finance of the organization has been wasted due to the processing applied on the extra redundant blocks of code.

The crufty code can include unwanted packages that are not referenced anywhere, unwanted public access methods that are not referred within the same class or a different class.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.