Over Engineering, Wheel Re-Invention, and Other Diseases

Over Engineering, Wheel Re-Invention, and Other Diseases

Writing code from scratch, without any prior design or plan, is a very bad programming practice. However, the opposite, namely over-engineering, can be just as harmful. In essence, over engineering is the use of costly, redundant or “cute” features that are not truly necessary. A good example of this is using exception handling as an alternative to ordinary control constructs such as loops and while statements. Likewise, templatizing a class that is never used for more than a single type is an expensive and totally redundant task. Excessive typedef’s and classes that simply replace built-in data types are other instances over enthusiastic code scribbling. Finally, “cute” features and puns such as the use of bitwise operators, macro tricks, or function pointers can also result in unreadable code. However, the worst bad habit is re-inventing the wheel. Writing custom container classes and algorithms instead of using the ones that already exist in C++ (in the form of STL) is a very expensive, bug prone, and totally uncalled for practice. One of the phases of design review and code review should consist of catching and sifting such instances of over-engineering, wheel re-invention, and “poetry”.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes