2/20/2023 0 Comments Look deeper synonym![]() ![]() ![]() Lazy class/freeloader: a class that does too little.Refused bequest: a class that overrides a method of a base class in such a way that the contract of the base class is not honored by the derived class.Inappropriate intimacy: a class that has dependencies on implementation details of another class.Feature envy: a class that uses methods of another class excessively.Large class: a class that contains too many types or contains many unrelated methods.Boolean blindness: easy to assert on the opposite value and still type checks.Variable mutations: mutations that vary widely enough that refactoring the code becomes increasingly difficult, due to the actual value's status as unpredictable and hard to reason about.Uncontrolled side effects: side effects of coding that commonly cause runtime exceptions, with unit tests unable to capture the exact cause of the problem.Shotgun surgery: a single change that needs to be applied to multiple classes at the same time.Contrived complexity: forced usage of overcomplicated design patterns where simpler design patterns would suffice.Duplicated code: identical or very similar code that exists in more than one location.Mysterious Name: functions, modules, variables or classes that are named in a way that does not communicate what they do or how to use them.( May 2020) ( Learn how and when to remove this template message) Statements consisting only of original research should be removed. Please improve it by verifying the claims made and adding inline citations. This section possibly contains original research. Tools such as Checkstyle, PMD, FindBugs, and SonarQube can automatically identify code smells. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |