Object Qualification improves readability

Software AgilityCode Readability

Why you should care

Object Qualification is the process of determining whether a persistent object satisfies a set of specified conditions. It is typically performed as part of a search operation that finds a group of persistent objects based on the values of one or more of their attributes. It is tested against a candidate object and its attribute values and thus the predicate string evaluates to true or false. Without Object Qualification, the code can be unreadable causing confusion and possible bugs.

Business Impacts

It is recommended to implement object qualification as it allows the program to be read and understood easier which prevents confusion resulting in cost-reduction.

Cost
5362

How we detect

This code insight highlights that database objects should be fully qualified : prefix the object names with the owner’s name, as this improves readability and avoids any unnecessary confusion

5362

About CAST and Highlight’s Code Insights

Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.

See featuresHow it works