Archive

Software Elegance

  • The code contain too many unused private methods

    Private methods that are never executed are dead code: unnecessary, inoperative code that should be removed. Cleaning out dead code decreases the size of…

  • Boolean checks should not be inverted

    is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead. This is furthermore the case in…

  • Avoid to cover two dimensional ranges with nested for loop

    Nested for loops are not a good practice because for loops are using an increment to cover a range, and nested for loops are…

  • The code is managing too many files together

    The number of files declared in the FILE-CONTROL should not be excessive.

  • ‘switch’ statements should not be nested

    Nested switch structures are difficult to understand because you can easily confuse the cases of an inner switch as belonging to an outer statement.…

  • The code contains too many “SELECT *” requests

    This Code Insight counts one occurrence each time a β€œSELECT *” or β€œSELECT SINGLE *” query is found.

  • ,

    Avoid using complex operands

    This code insight sanctions data accesses in operands having a too high level of indirection. The level of indirection is determined by the path…

  • , , ,

    Avoid methods or function with too many local variables

    [vc_row][vc_column][vc_btn title=”SOFTWARE ELEGANCE” style=”flat” color=”juicy-pink” link=”url:https%3A%2F%2Fdoc.casthighlight.com%2Fcategory%2Fproduct%2Findicators-methodology%2Fsoftware-elegance|||”][vc_btn title=”CODE COMPLEXITY” style=”flat” color=”black” link=”url:https%3A%2F%2Fdoc.casthighlight.com%2Fcategory%2Fproduct%2Findicators-methodology%2Fhttp%3A%2F%2Fcasthighlight.wpengine.com%2Fcategory%2Fproduct%2Findicators-methodology%2Fsoftware-elegance%2Fcode-complexity%2F|||”][vc_empty_space height=”12px”][vc_column_text]This code insight counts one occurrence for each local variable in methods and…

  • , , ,

    Methods with too many parameters can be complex

    [vc_row][vc_column][nz_btn text=”Software Elegance” link=”http://casthighlight.wpengine.com/software-elegance/” target=”_self” animate=”false” animation_type=”ghost” color=”black” size=”small” shape=”rounded” type=”normal” hover_normal=”fill” hover_ghost=”fill” icon=”icon-dashboard”][nz_btn text=”Code Complexity” target=”_self” animate=”false” animation_type=”ghost” color=”black” size=”small” shape=”rounded” type=”ghost” hover_normal=”fill”…

  • , , ,

    Nested loops can slow down innovation

    [vc_row][vc_column][nz_btn text=”Innovation” link=”http://casthighlight.wpengine.com/category/product/indicators-methodology/innovation/” icon=”icon-office” color=”orange” shape=”rounded” hover_normal=”opacity”][nz_btn text=”Software Elegance” link=”http://casthighlight.wpengine.com/category/product/indicators-methodology/software-elegance” icon=”icon-dashboard” color=”black” size=”medium” shape=”rounded”][nz_btn text=”Code Complexity” link=”http://casthighlight.wpengine.com/category/product/indicators-methodology/software-elegance/code-complexity/” icon=”icon-code” color=”black” shape=”rounded” type=”ghost” hover_ghost=”screen”][vc_empty_space height=”12px”][vc_column_text] Nested…