DEV Community

Code Smells Series' Articles

Back to Maxi Contieri's Series
Code Smell 01 - Anemic Models
Cover image for Code Smell 01 - Anemic Models

Code Smell 01 - Anemic Models

63
Comments 12
2 min read
Code Smell 02 - Constants and Magic Numbers
Cover image for Code Smell 02 - Constants and Magic Numbers

Code Smell 02 - Constants and Magic Numbers

27
Comments 1
1 min read
Code Smell 03 - Functions Are Too Long
Cover image for Code Smell 03 - Functions Are Too Long

Code Smell 03 - Functions Are Too Long

7
Comments 4
1 min read
Code Smell 04 - String Abusers
Cover image for Code Smell 04 - String Abusers

Code Smell 04 - String Abusers

12
Comments
1 min read
Code Smell 05 - Comment Abusers
Cover image for Code Smell 05 - Comment Abusers

Code Smell 05 - Comment Abusers

5
Comments 11
2 min read
Code Smell 06 - Too Clever Programmer
Cover image for Code Smell 06 - Too Clever Programmer

Code Smell 06 - Too Clever Programmer

10
Comments 7
2 min read
Code Smell 07 - Boolean Variables
Cover image for Code Smell 07 - Boolean Variables

Code Smell 07 - Boolean Variables

8
Comments 2
2 min read
Code Smell 08 - Long Chains Of Collaborations
Cover image for Code Smell 08 - Long Chains Of Collaborations

Code Smell 08 - Long Chains Of Collaborations

4
Comments
1 min read
Code Smell 09 - Dead Code
Cover image for Code Smell 09 - Dead Code

Code Smell 09 - Dead Code

2
Comments
1 min read
Code Smell 10 - Too Many Arguments
Cover image for Code Smell 10 - Too Many Arguments

Code Smell 10 - Too Many Arguments

3
Comments 1
2 min read
Code Smell 11 - Subclassification for Code Reuse
Cover image for Code Smell 11 - Subclassification for Code Reuse

Code Smell 11 - Subclassification for Code Reuse

1
Comments 1
2 min read
Code Smell 12 - Null
Cover image for Code Smell 12 - Null

Code Smell 12 - Null

4
Comments 3
2 min read
Code Smell 13 - Empty Constructors
Cover image for Code Smell 13 - Empty Constructors

Code Smell 13 - Empty Constructors

1
Comments
2 min read
Code Smell 14 - God Objects
Cover image for Code Smell 14 - God Objects

Code Smell 14 - God Objects

3
Comments 2
1 min read
Code Smell 15 - Missed Preconditions
Cover image for Code Smell 15 - Missed Preconditions

Code Smell 15 - Missed Preconditions

1
Comments
2 min read
Code Smell 16 - Ripple Effect
Cover image for Code Smell 16 - Ripple Effect

Code Smell 16 - Ripple Effect

1
Comments
2 min read
Code Smell 17 - Global Functions
Cover image for Code Smell 17 - Global Functions

Code Smell 17 - Global Functions

1
Comments
1 min read
Code Smell 18 — Static Functions
Cover image for Code Smell 18 — Static Functions

Code Smell 18 — Static Functions

2
Comments 4
2 min read
Code Smell 19 — Optional Arguments
Cover image for Code Smell 19 — Optional Arguments

Code Smell 19 — Optional Arguments

5
Comments
2 min read
Code Smell 20 - Premature Optimization
Cover image for Code Smell 20 - Premature Optimization

Code Smell 20 - Premature Optimization

3
Comments
2 min read
Code Smell 21 - Anonymous Functions Abusers
Cover image for Code Smell 21 - Anonymous Functions Abusers

Code Smell 21 - Anonymous Functions Abusers

6
Comments 8
2 min read
Code Smell 22 - Helpers
Cover image for Code Smell 22 - Helpers

Code Smell 22 - Helpers

10
Comments 4
2 min read
Code Smell 23 - Instance Type Checking
Cover image for Code Smell 23 - Instance Type Checking

Code Smell 23 - Instance Type Checking

4
Comments 3
2 min read
Code Smell 24 - Boolean Coercions
Cover image for Code Smell 24 - Boolean Coercions

Code Smell 24 - Boolean Coercions

12
Comments 30
2 min read
Code Smell 25 - Pattern Abusers
Cover image for Code Smell 25 - Pattern Abusers

Code Smell 25 - Pattern Abusers

4
Comments
2 min read
Code Smell 26 - Exceptions Polluting
Cover image for Code Smell 26 - Exceptions Polluting

Code Smell 26 - Exceptions Polluting

3
Comments
2 min read
Code Smell 27 - Associative Arrays
Cover image for Code Smell 27 - Associative Arrays

Code Smell 27 - Associative Arrays

2
Comments
2 min read
Code Smell 28 - Setters
Cover image for Code Smell 28 - Setters

Code Smell 28 - Setters

5
Comments
2 min read
Code Smell 29 - Settings/Configs

Code Smell 29 - Settings/Configs

7
Comments 4
2 min read
Code Smell 30 - Mocking Business
Cover image for Code Smell 30 - Mocking Business

Code Smell 30 - Mocking Business

3
Comments
1 min read
Code Smell 31 - Accidental Methods on Business Objects
Cover image for Code Smell 31 - Accidental Methods on Business Objects

Code Smell 31 - Accidental Methods on Business Objects

4
Comments
1 min read
Code Smell 32 - Singletons
Cover image for Code Smell 32 - Singletons

Code Smell 32 - Singletons

6
Comments 2
2 min read
Code Smell 33 - Abbreviations
Cover image for Code Smell 33 - Abbreviations

Code Smell 33 - Abbreviations

7
Comments 5
2 min read
Code Smell 34 - Too Many Attributes
Cover image for Code Smell 34 - Too Many Attributes

Code Smell 34 - Too Many Attributes

13
Comments 7
1 min read
Code Smell 35 - State as Properties
Cover image for Code Smell 35 - State as Properties

Code Smell 35 - State as Properties

11
Comments 2
1 min read
Code Smell 36 - Switch/case/elseif/else/if statements
Cover image for Code Smell 36 - Switch/case/elseif/else/if statements

Code Smell 36 - Switch/case/elseif/else/if statements

9
Comments 3
1 min read
Code Smell 37 - Protected Attributes
Cover image for Code Smell 37 - Protected Attributes

Code Smell 37 - Protected Attributes

4
Comments 1
2 min read
Code Smell 38 - Abstract Names
Cover image for Code Smell 38 - Abstract Names

Code Smell 38 - Abstract Names

3
Comments
1 min read
Code Smell 39 - new Date()
Cover image for Code Smell 39 - new Date()

Code Smell 39 - new Date()

5
Comments
1 min read
Code Smell 40 - DTOs
Cover image for Code Smell 40 - DTOs

Code Smell 40 - DTOs

4
Comments
2 min read
Code Smell 41 - Regular Expression Abusers
Cover image for Code Smell 41 - Regular Expression Abusers

Code Smell 41 - Regular Expression Abusers

7
Comments
1 min read
Code Smell 42 - Warnings/Strict Mode Off
Cover image for Code Smell 42 - Warnings/Strict Mode Off

Code Smell 42 - Warnings/Strict Mode Off

3
Comments 3
2 min read
Code Smell 43 - Concrete Classes Subclassified
Cover image for Code Smell 43 - Concrete Classes Subclassified

Code Smell 43 - Concrete Classes Subclassified

6
Comments
1 min read
Code Smell 44 - Magic Corrections
Cover image for Code Smell 44 - Magic Corrections

Code Smell 44 - Magic Corrections

4
Comments
1 min read
Code Smell 45 - Not Polymorphic
Cover image for Code Smell 45 - Not Polymorphic

Code Smell 45 - Not Polymorphic

2
Comments
1 min read
Code Smell 46 - Repeated Code
Cover image for Code Smell 46 - Repeated Code

Code Smell 46 - Repeated Code

4
Comments
1 min read
Code Smell 47 - Diagrams
Cover image for Code Smell 47 - Diagrams

Code Smell 47 - Diagrams

7
Comments 1
2 min read
Code Smell 48 - Code Without Standards
Cover image for Code Smell 48 - Code Without Standards

Code Smell 48 - Code Without Standards

4
Comments 1
1 min read
Code Smell 49 - Caches
Cover image for Code Smell 49 - Caches

Code Smell 49 - Caches

1
Comments
1 min read
Code Smell 50 - Object Keys
Cover image for Code Smell 50 - Object Keys

Code Smell 50 - Object Keys

11
Comments 2
2 min read
Code Smell 51 - Double Negatives
Cover image for Code Smell 51 - Double Negatives

Code Smell 51 - Double Negatives

7
Comments 5
1 min read
Code Smell 52 - Fragile Tests
Cover image for Code Smell 52 - Fragile Tests

Code Smell 52 - Fragile Tests

Comments 1
2 min read
Code Smell 53 - Explicit Iteration
Cover image for Code Smell 53 - Explicit Iteration

Code Smell 53 - Explicit Iteration

15
Comments 15
2 min read
Code Smell 54 - Anchor Boats
Cover image for Code Smell 54 - Anchor Boats

Code Smell 54 - Anchor Boats

4
Comments 2
2 min read
Code Smell 55 - Object Orgy
Cover image for Code Smell 55 - Object Orgy

Code Smell 55 - Object Orgy

Comments
2 min read
Code Smell 56 - Preprocessors
Cover image for Code Smell 56 - Preprocessors

Code Smell 56 - Preprocessors

Comments 5
2 min read
Code Smell 57 - Versioned Functions
Cover image for Code Smell 57 - Versioned Functions

Code Smell 57 - Versioned Functions

2
Comments 3
1 min read
Code Smell 58 - Yo-yo Problem
Cover image for Code Smell 58 - Yo-yo Problem

Code Smell 58 - Yo-yo Problem

2
Comments
2 min read
Code Smell 59 - Basic / Do Functions
Cover image for Code Smell 59 - Basic / Do Functions

Code Smell 59 - Basic / Do Functions

5
Comments
2 min read
Code Smell 60 - Global Classes
Cover image for Code Smell 60 - Global Classes

Code Smell 60 - Global Classes

3
Comments 3
2 min read
Code Smell 61 - Coupling to Classes
Cover image for Code Smell 61 - Coupling to Classes

Code Smell 61 - Coupling to Classes

6
Comments 5
2 min read
Code Smell 62 - Flag Variables
Cover image for Code Smell 62 - Flag Variables

Code Smell 62 - Flag Variables

1
Comments 1
1 min read
Code Smell 63 - Feature Envy
Cover image for Code Smell 63 - Feature Envy

Code Smell 63 - Feature Envy

6
Comments 2
2 min read
Code Smell 64 - Inappropriate Intimacy
Cover image for Code Smell 64 - Inappropriate Intimacy

Code Smell 64 - Inappropriate Intimacy

7
Comments
1 min read
Code Smell 65 - Variables Named After Types
Cover image for Code Smell 65 - Variables Named After Types

Code Smell 65 - Variables Named After Types

5
Comments 1
1 min read
Code Smell 66 - Shotgun Surgery
Cover image for Code Smell 66 - Shotgun Surgery

Code Smell 66 - Shotgun Surgery

4
Comments 5
2 min read
Code Smell 67 - Middle Man
Cover image for Code Smell 67 - Middle Man

Code Smell 67 - Middle Man

2
Comments
1 min read
Code Smell 68 - Getters
Cover image for Code Smell 68 - Getters

Code Smell 68 - Getters

3
Comments 2
2 min read
Code Smell 69 - Big Bang (JavaScript Ridiculous Castings)
Cover image for Code Smell 69 - Big Bang (JavaScript Ridiculous Castings)

Code Smell 69 - Big Bang (JavaScript Ridiculous Castings)

4
Comments
2 min read
Code Smell 70 - Anemic Model Generators
Cover image for Code Smell 70 - Anemic Model Generators

Code Smell 70 - Anemic Model Generators

5
Comments
2 min read
Code Smell 71 - Magic Floats Disguised as Decimals
Cover image for Code Smell 71 - Magic Floats Disguised as Decimals

Code Smell 71 - Magic Floats Disguised as Decimals

3
Comments
2 min read
Code Smell 72 - Return Codes
Cover image for Code Smell 72 - Return Codes

Code Smell 72 - Return Codes

2
Comments 4
2 min read
Code Smell 73 - Exceptions for Expected Cases
Cover image for Code Smell 73 - Exceptions for Expected Cases

Code Smell 73 - Exceptions for Expected Cases

6
Comments
2 min read
Code Smell 74 - Empty Lines
Cover image for Code Smell 74 - Empty Lines

Code Smell 74 - Empty Lines

4
Comments 4
1 min read
Code Smell 75 - Comments Inside a Method
Cover image for Code Smell 75 - Comments Inside a Method

Code Smell 75 - Comments Inside a Method

6
Comments
2 min read
Code Smell 76 - Generic Assertions
Cover image for Code Smell 76 - Generic Assertions

Code Smell 76 - Generic Assertions

5
Comments
2 min read
Code Smell 77 - Timestamps
Cover image for Code Smell 77 - Timestamps

Code Smell 77 - Timestamps

4
Comments
2 min read
Code Smell 78 - Callback Hell
Cover image for Code Smell 78 - Callback Hell

Code Smell 78 - Callback Hell

2
Comments
2 min read
Code Smell 79 - TheResult
Cover image for Code Smell 79 - TheResult

Code Smell 79 - TheResult

4
Comments
1 min read
Code Smell 80 - Nested Try/Catch
Cover image for Code Smell 80 - Nested Try/Catch

Code Smell 80 - Nested Try/Catch

5
Comments
2 min read
Code Smell 81 - Result
Cover image for Code Smell 81 - Result

Code Smell 81 - Result

6
Comments 6
1 min read
Code Smell 82 - Tests Violating Encapsulation
Cover image for Code Smell 82 - Tests Violating Encapsulation

Code Smell 82 - Tests Violating Encapsulation

5
Comments 6
2 min read
Code Smell 83 - Variables Reassignment
Cover image for Code Smell 83 - Variables Reassignment

Code Smell 83 - Variables Reassignment

Comments
2 min read
Code Smell 84 - Max < Min (Javascript)
Cover image for Code Smell 84 - Max < Min (Javascript)

Code Smell 84 - Max < Min (Javascript)

2
Comments
2 min read
Code Smell 85 - And Functions
Cover image for Code Smell 85 - And Functions

Code Smell 85 - And Functions

4
Comments
1 min read
Code Smell 86 - Mutable Const Arrays

Code Smell 86 - Mutable Const Arrays

2
Comments
1 min read
Code Smell 87 - Inconsistent Parameters Sorting
Cover image for Code Smell 87 - Inconsistent Parameters Sorting

Code Smell 87 - Inconsistent Parameters Sorting

4
Comments 1
1 min read
Code Smell 88 - Lazy Initialization
Cover image for Code Smell 88 - Lazy Initialization

Code Smell 88 - Lazy Initialization

5
Comments
2 min read
Code Smell 89 - Math Feature Envy
Cover image for Code Smell 89 - Math Feature Envy

Code Smell 89 - Math Feature Envy

6
Comments 4
2 min read
Code Smell 90 - Implementative Callback Events
Cover image for Code Smell 90 - Implementative Callback Events

Code Smell 90 - Implementative Callback Events

4
Comments
1 min read
Code Smell 91 - Test Asserts without Description
Cover image for Code Smell 91 - Test Asserts without Description

Code Smell 91 - Test Asserts without Description

1
Comments
1 min read
Code Smell 92 - Isolated Subclasses Names
Cover image for Code Smell 92 - Isolated Subclasses Names

Code Smell 92 - Isolated Subclasses Names

5
Comments
2 min read
Code Smell 93 - Send me Anything
Cover image for Code Smell 93 - Send me Anything

Code Smell 93 - Send me Anything

6
Comments 1
2 min read
Code Smell 94 - Too Many imports
Cover image for Code Smell 94 - Too Many imports

Code Smell 94 - Too Many imports

6
Comments
2 min read
Code Smell 95 - Premature Classification
Cover image for Code Smell 95 - Premature Classification

Code Smell 95 - Premature Classification

5
Comments
2 min read
Code Smell 96 - My Objects
Cover image for Code Smell 96 - My Objects

Code Smell 96 - My Objects

6
Comments
1 min read
Code Smell 97 - Error Messages Without Empathy
Cover image for Code Smell 97 - Error Messages Without Empathy

Code Smell 97 - Error Messages Without Empathy

6
Comments
1 min read
Code Smell 98 - Speling Mistakes
Cover image for Code Smell 98 - Speling Mistakes

Code Smell 98 - Speling Mistakes

5
Comments
1 min read
Code Smell 99 - First Second
Cover image for Code Smell 99 - First Second

Code Smell 99 - First Second

6
Comments
1 min read
Code Smell 100 - GoTo
Cover image for Code Smell 100 - GoTo

Code Smell 100 - GoTo

7
Comments
2 min read
Code Smell 101 - Comparison Against Booleans
Cover image for Code Smell 101 - Comparison Against Booleans

Code Smell 101 - Comparison Against Booleans

6
Comments
2 min read
Code Smell 102 - Arrow Code
Cover image for Code Smell 102 - Arrow Code

Code Smell 102 - Arrow Code

6
Comments
2 min read
Code Smell 103 - Double Encapsulation
Cover image for Code Smell 103 - Double Encapsulation

Code Smell 103 - Double Encapsulation

3
Comments
2 min read
Code Smell 104 - Assert True
Cover image for Code Smell 104 - Assert True

Code Smell 104 - Assert True

4
Comments
2 min read
Code Smell 105 - Comedian Methods
Cover image for Code Smell 105 - Comedian Methods

Code Smell 105 - Comedian Methods

2
Comments 4
2 min read
Code Smell 106 - Production Dependent Code
Cover image for Code Smell 106 - Production Dependent Code

Code Smell 106 - Production Dependent Code

1
Comments
2 min read
Code Smell 107 - Variables Reuse
Cover image for Code Smell 107 - Variables Reuse

Code Smell 107 - Variables Reuse

5
Comments 1
2 min read
Code Smell 108 - Float Assertions
Cover image for Code Smell 108 - Float Assertions

Code Smell 108 - Float Assertions

4
Comments
2 min read
Code Smell 109 - Automatic Properties
Cover image for Code Smell 109 - Automatic Properties

Code Smell 109 - Automatic Properties

6
Comments 6
2 min read
Code Smell 110 - Switches With Defaults
Cover image for Code Smell 110 - Switches With Defaults

Code Smell 110 - Switches With Defaults

7
Comments
2 min read
Code Smell 111 - Modifying Collections While Traversing
Cover image for Code Smell 111 - Modifying Collections While Traversing

Code Smell 111 - Modifying Collections While Traversing

6
Comments
2 min read
Code Smell 112 - Testing Private Methods
Cover image for Code Smell 112 - Testing Private Methods

Code Smell 112 - Testing Private Methods

5
Comments
2 min read
Code Smell 113 - Data Naming
Cover image for Code Smell 113 - Data Naming

Code Smell 113 - Data Naming

5
Comments
2 min read
Code Smell 114 - Empty Class
Cover image for Code Smell 114 - Empty Class

Code Smell 114 - Empty Class

6
Comments
2 min read
Code Smell 115 - Return True
Cover image for Code Smell 115 - Return True

Code Smell 115 - Return True

7
Comments 1
2 min read
Code Smell 116 - Variables Declared With 'var'
Cover image for Code Smell 116 - Variables Declared With 'var'

Code Smell 116 - Variables Declared With 'var'

6
Comments
2 min read
Code Smell 117 - Unrealistic Data
Cover image for Code Smell 117 - Unrealistic Data

Code Smell 117 - Unrealistic Data

4
Comments
3 min read
Code Smell 118 - Return False
Cover image for Code Smell 118 - Return False

Code Smell 118 - Return False

6
Comments 5
2 min read
Code Smell 119 - Stairs Code
Cover image for Code Smell 119 - Stairs Code

Code Smell 119 - Stairs Code

5
Comments
2 min read
Code Smell 120 - Sequential IDs
Cover image for Code Smell 120 - Sequential IDs

Code Smell 120 - Sequential IDs

6
Comments 2
2 min read
Code Smell 121 - String Validations
Cover image for Code Smell 121 - String Validations

Code Smell 121 - String Validations

6
Comments
3 min read
Code Smell 122 - Primitive Obsession
Cover image for Code Smell 122 - Primitive Obsession

Code Smell 122 - Primitive Obsession

11
Comments
2 min read
Code Smell 123 - Mixed 'What' and 'How'
Cover image for Code Smell 123 - Mixed 'What' and 'How'

Code Smell 123 - Mixed 'What' and 'How'

7
Comments
2 min read
Code Smell 124 - Divergent Change
Cover image for Code Smell 124 - Divergent Change

Code Smell 124 - Divergent Change

6
Comments
2 min read
Code Smell 125 - 'IS-A' Relationship
Cover image for Code Smell 125 - 'IS-A' Relationship

Code Smell 125 - 'IS-A' Relationship

8
Comments 4
3 min read
Code Smell 126 - Fake Null Object
Cover image for Code Smell 126 - Fake Null Object

Code Smell 126 - Fake Null Object

11
Comments
3 min read
Code Smell 127 - Mutable Constants
Cover image for Code Smell 127 - Mutable Constants

Code Smell 127 - Mutable Constants

7
Comments
2 min read
Code Smell 128 - Non English Coding
Cover image for Code Smell 128 - Non English Coding

Code Smell 128 - Non English Coding

6
Comments 3
2 min read
Code Smell 129 - Structural Optimizations
Cover image for Code Smell 129 - Structural Optimizations

Code Smell 129 - Structural Optimizations

7
Comments
2 min read
Code Smell 130 - AddressImpl
Cover image for Code Smell 130 - AddressImpl

Code Smell 130 - AddressImpl

9
Comments
2 min read
Code Smell 131 - Zero Argument Constructor
Cover image for Code Smell 131 - Zero Argument Constructor

Code Smell 131 - Zero Argument Constructor

10
Comments
2 min read
Code Smell 132 - Exception Try Too Broad
Cover image for Code Smell 132 - Exception Try Too Broad

Code Smell 132 - Exception Try Too Broad

17
Comments 6
2 min read
Code Smell 133 - Hardcoded IF Conditions
Cover image for Code Smell 133 - Hardcoded IF Conditions

Code Smell 133 - Hardcoded IF Conditions

7
Comments
2 min read
Code Smell 134 - Specialized Business Collections
Cover image for Code Smell 134 - Specialized Business Collections

Code Smell 134 - Specialized Business Collections

9
Comments 12
2 min read
Code Smell 135 - Interfaces With just One Realization
Cover image for Code Smell 135 - Interfaces With just One Realization

Code Smell 135 - Interfaces With just One Realization

30
Comments 22
2 min read
Code Smell 136 - Classes With just One Subclass
Cover image for Code Smell 136 - Classes With just One Subclass

Code Smell 136 - Classes With just One Subclass

5
Comments
2 min read
Code Smell 137 - Inheritance Tree Too Deep
Cover image for Code Smell 137 - Inheritance Tree Too Deep

Code Smell 137 - Inheritance Tree Too Deep

10
Comments
2 min read
Code Smell 138 - Packages Dependency
Cover image for Code Smell 138 - Packages Dependency

Code Smell 138 - Packages Dependency

7
Comments
2 min read
Code Smell 139 - Business Code in the User Interface
Cover image for Code Smell 139 - Business Code in the User Interface

Code Smell 139 - Business Code in the User Interface

9
Comments 1
3 min read
Code Smell 140 - Short Circuit Evaluation
Cover image for Code Smell 140 - Short Circuit Evaluation

Code Smell 140 - Short Circuit Evaluation

8
Comments
2 min read
Code Smell 141 - IEngine , AVehicle, ImplCar
Cover image for Code Smell 141 - IEngine , AVehicle, ImplCar

Code Smell 141 - IEngine , AVehicle, ImplCar

21
Comments
2 min read
Code Smell 142 - Queries in Constructors
Cover image for Code Smell 142 - Queries in Constructors

Code Smell 142 - Queries in Constructors

23
Comments
2 min read
Code Smell 143 - Data Clumps
Cover image for Code Smell 143 - Data Clumps

Code Smell 143 - Data Clumps

11
Comments
2 min read
Code Smell 144 - Fungible Objects
Cover image for Code Smell 144 - Fungible Objects

Code Smell 144 - Fungible Objects

6
Comments 1
2 min read
Code Smell 145 - Short Circuit Hack
Cover image for Code Smell 145 - Short Circuit Hack

Code Smell 145 - Short Circuit Hack

37
Comments 13
2 min read
Code Smell 146 - Getter Comments
Cover image for Code Smell 146 - Getter Comments

Code Smell 146 - Getter Comments

7
Comments 5
2 min read
Code Smell 147 - Too Many Methods
Cover image for Code Smell 147 - Too Many Methods

Code Smell 147 - Too Many Methods

8
Comments 11
2 min read
Code Smell 148 - ToDos
Cover image for Code Smell 148 - ToDos

Code Smell 148 - ToDos

5
Comments
2 min read
Code Smell 149 - Optional Chaining
Cover image for Code Smell 149 - Optional Chaining

Code Smell 149 - Optional Chaining

12
Comments 29
2 min read
Code Smell 150 - Equal Comparison
Cover image for Code Smell 150 - Equal Comparison

Code Smell 150 - Equal Comparison

8
Comments
2 min read
Code Smell 151 - Commented Code
Cover image for Code Smell 151 - Commented Code

Code Smell 151 - Commented Code

6
Comments 1
2 min read
Code Smell 152 - Logical Comment
Cover image for Code Smell 152 - Logical Comment

Code Smell 152 - Logical Comment

6
Comments
2 min read
Code Smell 153 - Too Long Names
Cover image for Code Smell 153 - Too Long Names

Code Smell 153 - Too Long Names

3
Comments
2 min read
Code Smell 154 - Too Many Variables
Cover image for Code Smell 154 - Too Many Variables

Code Smell 154 - Too Many Variables

8
Comments 4
2 min read
Code Smell 155 - Multiple Promises
Cover image for Code Smell 155 - Multiple Promises

Code Smell 155 - Multiple Promises

6
Comments 2
2 min read
Code Smell 156 - Implicit Else
Cover image for Code Smell 156 - Implicit Else

Code Smell 156 - Implicit Else

4
Comments 4
2 min read
Code Smell 157 - Balance at 0
Cover image for Code Smell 157 - Balance at 0

Code Smell 157 - Balance at 0

12
Comments 5
2 min read
Code Smell 158 - Variables not Variable
Cover image for Code Smell 158 - Variables not Variable

Code Smell 158 - Variables not Variable

3
Comments
2 min read
CoDe SmElL 159 - mIxEd_cASe
Cover image for CoDe SmElL 159 - mIxEd_cASe

CoDe SmElL 159 - mIxEd_cASe

2
Comments
2 min read
Code Smell 160 - Invalid Id = 9999
Cover image for Code Smell 160 - Invalid Id = 9999

Code Smell 160 - Invalid Id = 9999

2
Comments
2 min read
Code Smell 161 - Abstract/Final/Undefined Classes
Cover image for Code Smell 161 - Abstract/Final/Undefined Classes

Code Smell 161 - Abstract/Final/Undefined Classes

3
Comments
2 min read
Code Smell 162 - Too Many Parentheses
Cover image for Code Smell 162 - Too Many Parentheses

Code Smell 162 - Too Many Parentheses

17
Comments 3
1 min read
Code Smell 163 - Collection in Name
Cover image for Code Smell 163 - Collection in Name

Code Smell 163 - Collection in Name

7
Comments
2 min read
Code Smell 164 - Mixed Indentations
Cover image for Code Smell 164 - Mixed Indentations

Code Smell 164 - Mixed Indentations

3
Comments
2 min read
Code Smell 165 - Empty Exception Blocks
Cover image for Code Smell 165 - Empty Exception Blocks

Code Smell 165 - Empty Exception Blocks

7
Comments
2 min read
Code Smell 166 - Low-Level Errors on User Interface
Cover image for Code Smell 166 - Low-Level Errors on User Interface

Code Smell 166 - Low-Level Errors on User Interface

4
Comments
2 min read
Code Smell 167 - Hashing Comparison
Cover image for Code Smell 167 - Hashing Comparison

Code Smell 167 - Hashing Comparison

4
Comments 1
2 min read
Code Smell 168 - Undocumented Decisions
Cover image for Code Smell 168 - Undocumented Decisions

Code Smell 168 - Undocumented Decisions

7
Comments 2
1 min read
Code Smell 169 - Glued Methods
Cover image for Code Smell 169 - Glued Methods

Code Smell 169 - Glued Methods

5
Comments
1 min read
Code Smell 170 - Refactor with Functional Changes
Cover image for Code Smell 170 - Refactor with Functional Changes

Code Smell 170 - Refactor with Functional Changes

6
Comments
2 min read
Code Smell 171 - Plural Classes
Cover image for Code Smell 171 - Plural Classes

Code Smell 171 - Plural Classes

11
Comments 2
1 min read
Code Smell 172 - Default Argument Values Not Last
Cover image for Code Smell 172 - Default Argument Values Not Last

Code Smell 172 - Default Argument Values Not Last

13
Comments
2 min read
Code Smell 173 - Broken Windows
Cover image for Code Smell 173 - Broken Windows

Code Smell 173 - Broken Windows

7
Comments
2 min read
Code Smell 174 - Class Name in Attributes
Cover image for Code Smell 174 - Class Name in Attributes

Code Smell 174 - Class Name in Attributes

16
Comments 2
2 min read
Code Smell 175 - Changes Without Coverage
Cover image for Code Smell 175 - Changes Without Coverage

Code Smell 175 - Changes Without Coverage

9
Comments
2 min read
Code Smell 176 - Changes in Essence
Cover image for Code Smell 176 - Changes in Essence

Code Smell 176 - Changes in Essence

8
Comments
2 min read
Code Smell 177 - Missing Small Objects
Cover image for Code Smell 177 - Missing Small Objects

Code Smell 177 - Missing Small Objects

17
Comments 1
2 min read
Code Smell 178 - Subsets Violation
Cover image for Code Smell 178 - Subsets Violation

Code Smell 178 - Subsets Violation

8
Comments 1
2 min read
Code Smell 179 - Known Bugs
Cover image for Code Smell 179 - Known Bugs

Code Smell 179 - Known Bugs

18
Comments 1
2 min read
Code Smell 180 - BitWise Optimizations
Cover image for Code Smell 180 - BitWise Optimizations

Code Smell 180 - BitWise Optimizations

28
Comments 29
2 min read
Code Smell 181 - Nested Classes
Cover image for Code Smell 181 - Nested Classes

Code Smell 181 - Nested Classes

8
Comments
2 min read
Code Smell 182 - Over Generalization
Cover image for Code Smell 182 - Over Generalization

Code Smell 182 - Over Generalization

1
Comments
2 min read
Code Smell 183 - Obsolete Comments
Cover image for Code Smell 183 - Obsolete Comments

Code Smell 183 - Obsolete Comments

2
Comments
2 min read
Code Smell 184 - Exception Arrow Code
Cover image for Code Smell 184 - Exception Arrow Code

Code Smell 184 - Exception Arrow Code

6
Comments 3
2 min read
Code Smell 185 - Evil Regular Expressions
Cover image for Code Smell 185 - Evil Regular Expressions

Code Smell 185 - Evil Regular Expressions

10
Comments 1
2 min read
Code Smell 186 - Hardcoded Business Conditions
Cover image for Code Smell 186 - Hardcoded Business Conditions

Code Smell 186 - Hardcoded Business Conditions

3
Comments
2 min read
ㄥ8Ɩ llǝɯS ǝpoƆ - spɹɐʍʞɔɐq ǝslƎ/ℲI
Cover image for ㄥ8Ɩ llǝɯS ǝpoƆ - spɹɐʍʞɔɐq ǝslƎ/ℲI

ㄥ8Ɩ llǝɯS ǝpoƆ - spɹɐʍʞɔɐq ǝslƎ/ℲI

8
Comments 12
2 min read
Code Smell 188 - Redundant Parameter Names
Cover image for Code Smell 188 - Redundant Parameter Names

Code Smell 188 - Redundant Parameter Names

3
Comments
1 min read
Code Smell 189 - Not Sanitized Input
Cover image for Code Smell 189 - Not Sanitized Input

Code Smell 189 - Not Sanitized Input

8
Comments 2
2 min read
Code Smell 190 - Unnecessary Properties
Cover image for Code Smell 190 - Unnecessary Properties

Code Smell 190 - Unnecessary Properties

5
Comments 2
2 min read
Code Smell 191 - Misplaced Responsibility
Cover image for Code Smell 191 - Misplaced Responsibility

Code Smell 191 - Misplaced Responsibility

2
Comments
2 min read
Code Smell 192 - Optional Attributes
Cover image for Code Smell 192 - Optional Attributes

Code Smell 192 - Optional Attributes

4
Comments
2 min read
Code Smell 193 - Switch Instead of Formula
Cover image for Code Smell 193 - Switch Instead of Formula

Code Smell 193 - Switch Instead of Formula

6
Comments 8
2 min read
Code Smell 194 - Missing Interval
Cover image for Code Smell 194 - Missing Interval

Code Smell 194 - Missing Interval

3
Comments
2 min read
Code Smell 195 - Yoda Conditions
Cover image for Code Smell 195 - Yoda Conditions

Code Smell 195 - Yoda Conditions

6
Comments
1 min read
Code Smell 196 - Javascript Array Constructors
Cover image for Code Smell 196 - Javascript Array Constructors

Code Smell 196 - Javascript Array Constructors

4
Comments
2 min read
Code Smell 197 - Gratuitous Context
Cover image for Code Smell 197 - Gratuitous Context

Code Smell 197 - Gratuitous Context

2
Comments
2 min read
Code Smell 198 - Hidden Assumptions
Cover image for Code Smell 198 - Hidden Assumptions

Code Smell 198 - Hidden Assumptions

3
Comments
2 min read
Code Smell 199 - Gratuitous Booleans
Cover image for Code Smell 199 - Gratuitous Booleans

Code Smell 199 - Gratuitous Booleans

5
Comments 1
2 min read
Code Smell 200 - Poltergeist
Cover image for Code Smell 200 - Poltergeist

Code Smell 200 - Poltergeist

4
Comments 2
2 min read
Code Smell 201 - Nested Ternaries
Cover image for Code Smell 201 - Nested Ternaries

Code Smell 201 - Nested Ternaries

2
Comments
2 min read
Code Smell 202 - God Constant Class
Cover image for Code Smell 202 - God Constant Class

Code Smell 202 - God Constant Class

2
Comments
2 min read
Code Smell 203 - Irrelevant Test Information
Cover image for Code Smell 203 - Irrelevant Test Information

Code Smell 203 - Irrelevant Test Information

2
Comments
2 min read
Code Smell 204 - Tests Depending on Dates
Cover image for Code Smell 204 - Tests Depending on Dates

Code Smell 204 - Tests Depending on Dates

3
Comments
2 min read
Code Smell 205 - Code in Destructors
Cover image for Code Smell 205 - Code in Destructors

Code Smell 205 - Code in Destructors

1
Comments
2 min read
Code Smell 206 - Long Ternaries
Cover image for Code Smell 206 - Long Ternaries

Code Smell 206 - Long Ternaries

2
Comments
2 min read
Code Smell 207 - Dynamic Methods
Cover image for Code Smell 207 - Dynamic Methods

Code Smell 207 - Dynamic Methods

Comments
2 min read
Code Smell 208 - Null Island
Cover image for Code Smell 208 - Null Island

Code Smell 208 - Null Island

Comments
3 min read
Code Smell 209 - Side Effects
Cover image for Code Smell 209 - Side Effects

Code Smell 209 - Side Effects

2
Comments
2 min read
Code Smell 210 - Dynamic Properties
Cover image for Code Smell 210 - Dynamic Properties

Code Smell 210 - Dynamic Properties

Comments
2 min read
Code Smell 211 - Tab over Spaces
Cover image for Code Smell 211 - Tab over Spaces

Code Smell 211 - Tab over Spaces

1
Comments 12
2 min read
Code Smell 212 - Elvis Operator
Cover image for Code Smell 212 - Elvis Operator

Code Smell 212 - Elvis Operator

2
Comments 1
2 min read
Code Smell 213 - Hoisting
Cover image for Code Smell 213 - Hoisting

Code Smell 213 - Hoisting

4
Comments
2 min read
Code Smell 214 - Duplicate Parameter Names
Cover image for Code Smell 214 - Duplicate Parameter Names

Code Smell 214 - Duplicate Parameter Names

1
Comments
2 min read
Code Smell 215 - Deserializing Object Vulnerability
Cover image for Code Smell 215 - Deserializing Object Vulnerability

Code Smell 215 - Deserializing Object Vulnerability

1
Comments
2 min read
Code Smell 216 - Fat Interface
Cover image for Code Smell 216 - Fat Interface

Code Smell 216 - Fat Interface

2
Comments
2 min read
Code Smell 217 - Empty Implementation
Cover image for Code Smell 217 - Empty Implementation

Code Smell 217 - Empty Implementation

3
Comments 1
2 min read
Code Smell 218 - Magic Concatenation
Cover image for Code Smell 218 - Magic Concatenation

Code Smell 218 - Magic Concatenation

3
Comments
2 min read
Code Smell 219 - Looping from index 0
Cover image for Code Smell 219 - Looping from index 0

Code Smell 219 - Looping from index 0

2
Comments
2 min read
Code Smell 220 - Return Tuple
Cover image for Code Smell 220 - Return Tuple

Code Smell 220 - Return Tuple

7
Comments 6
2 min read
Code Smell 221 - Missing Break in Switch
Cover image for Code Smell 221 - Missing Break in Switch

Code Smell 221 - Missing Break in Switch

4
Comments
2 min read
Code Smell 222 - Comma Operator
Cover image for Code Smell 222 - Comma Operator

Code Smell 222 - Comma Operator

2
Comments
2 min read
Code Smell 223 - Racial Naming
Cover image for Code Smell 223 - Racial Naming

Code Smell 223 - Racial Naming

8
Comments 5
2 min read
Code Smell 224 - Deodorant Comments
Cover image for Code Smell 224 - Deodorant Comments

Code Smell 224 - Deodorant Comments

5
Comments 13
2 min read
Code Smell 225 - Pass by Reference
Cover image for Code Smell 225 - Pass by Reference

Code Smell 225 - Pass by Reference

3
Comments 2
3 min read
Code Smell 226 - Mixed Priorities
Cover image for Code Smell 226 - Mixed Priorities

Code Smell 226 - Mixed Priorities

3
Comments
2 min read
Code Smell 227 - Cowboy Coding
Cover image for Code Smell 227 - Cowboy Coding

Code Smell 227 - Cowboy Coding

6
Comments
2 min read
Code Smell 228 - Multiple Classes per File
Cover image for Code Smell 228 - Multiple Classes per File

Code Smell 228 - Multiple Classes per File

1
Comments 1
2 min read
Code Smell 229 - Red Tape
Cover image for Code Smell 229 - Red Tape

Code Smell 229 - Red Tape

5
Comments 1
2 min read
Code Smell 230 - Schrödinger Code
Cover image for Code Smell 230 - Schrödinger Code

Code Smell 230 - Schrödinger Code

4
Comments
2 min read
Code Smell 231 - Redundant Data
Cover image for Code Smell 231 - Redundant Data

Code Smell 231 - Redundant Data

2
Comments
3 min read
Code Smell 232 - Reusable Code
Cover image for Code Smell 232 - Reusable Code

Code Smell 232 - Reusable Code

5
Comments 5
2 min read
Code Smell 233 - Collections Count
Cover image for Code Smell 233 - Collections Count

Code Smell 233 - Collections Count

3
Comments
2 min read
Code Smell 234 - Long Circuit
Cover image for Code Smell 234 - Long Circuit

Code Smell 234 - Long Circuit

1
Comments
2 min read
Code Smell 235 - Console Side Effects
Cover image for Code Smell 235 - Console Side Effects

Code Smell 235 - Console Side Effects

5
Comments
2 min read
Code Smell 236 - Unwrapped Lines
Cover image for Code Smell 236 - Unwrapped Lines

Code Smell 236 - Unwrapped Lines

3
Comments
2 min read
Code Smell 237 - Attribute Definitions
Cover image for Code Smell 237 - Attribute Definitions

Code Smell 237 - Attribute Definitions

3
Comments
3 min read
Code Smell 238 - Entangled Code
Cover image for Code Smell 238 - Entangled Code

Code Smell 238 - Entangled Code

2
Comments
2 min read
Code Smell 239 - Big Pull Request
Cover image for Code Smell 239 - Big Pull Request

Code Smell 239 - Big Pull Request

5
Comments
2 min read
Code Smell 240 - Dead Store
Cover image for Code Smell 240 - Dead Store

Code Smell 240 - Dead Store

4
Comments
2 min read
Code Smell 241- Referential Transparency Violation
Cover image for Code Smell 241- Referential Transparency Violation

Code Smell 241- Referential Transparency Violation

7
Comments
2 min read
Code Smell 242 - Zombie Feature Flags
Cover image for Code Smell 242 - Zombie Feature Flags

Code Smell 242 - Zombie Feature Flags

5
Comments
3 min read
Code Smell 243 - Concatenated Properties
Cover image for Code Smell 243 - Concatenated Properties

Code Smell 243 - Concatenated Properties

2
Comments
2 min read
Code Smell 244 - Incomplete Error information
Cover image for Code Smell 244 - Incomplete Error information

Code Smell 244 - Incomplete Error information

8
Comments
2 min read
Code Smell 245 - exec() and eval()
Cover image for Code Smell 245 - exec() and eval()

Code Smell 245 - exec() and eval()

3
Comments
2 min read
Code Smell 246 - Expiration Date
Cover image for Code Smell 246 - Expiration Date

Code Smell 246 - Expiration Date

4
Comments 6
3 min read
Code Smell 247 - Javascript Replace
Cover image for Code Smell 247 - Javascript Replace

Code Smell 247 - Javascript Replace

6
Comments
2 min read
Code Smell 248 - Unreliable Copy
Cover image for Code Smell 248 - Unreliable Copy

Code Smell 248 - Unreliable Copy

3
Comments 2
2 min read
Code Smell 249 - Constants as Numbers
Cover image for Code Smell 249 - Constants as Numbers

Code Smell 249 - Constants as Numbers

6
Comments
2 min read
Code Smell 250 - Premature Memoization
Cover image for Code Smell 250 - Premature Memoization

Code Smell 250 - Premature Memoization

3
Comments
2 min read
Code Smell 251 - Collections Empty
Cover image for Code Smell 251 - Collections Empty

Code Smell 251 - Collections Empty

9
Comments 5
2 min read
Code Smell 252 - NullCustomer
Cover image for Code Smell 252 - NullCustomer

Code Smell 252 - NullCustomer

3
Comments
2 min read
Code Smell 253 - Silent Truncation
Cover image for Code Smell 253 - Silent Truncation

Code Smell 253 - Silent Truncation

2
Comments
4 min read
Code Smell 254 - Mystery Guest
Cover image for Code Smell 254 - Mystery Guest

Code Smell 254 - Mystery Guest

4
Comments
2 min read
Code Smell 255 - Parallel Hierarchies
Cover image for Code Smell 255 - Parallel Hierarchies

Code Smell 255 - Parallel Hierarchies

7
Comments
3 min read
Code Smell 256 - Mutable Getters
Cover image for Code Smell 256 - Mutable Getters

Code Smell 256 - Mutable Getters

3
Comments 1
2 min read
Code Smell 257 - Name With Collections
Cover image for Code Smell 257 - Name With Collections

Code Smell 257 - Name With Collections

3
Comments
2 min read
Code Smell 258 - Secrets in Code
Cover image for Code Smell 258 - Secrets in Code

Code Smell 258 - Secrets in Code

4
Comments
2 min read
Code Smell 259 - Testing with External Resources
Cover image for Code Smell 259 - Testing with External Resources

Code Smell 259 - Testing with External Resources

5
Comments 3
2 min read
Code Smell 260 - Crowdstrike NULL
Cover image for Code Smell 260 - Crowdstrike NULL

Code Smell 260 - Crowdstrike NULL

6
Comments
3 min read
Code Smell 261 - DigiCert Underscores
Cover image for Code Smell 261 - DigiCert Underscores

Code Smell 261 - DigiCert Underscores

3
Comments
2 min read
Code Smell 262 - Not Replaced Constants
Cover image for Code Smell 262 - Not Replaced Constants

Code Smell 262 - Not Replaced Constants

1
Comments
2 min read
Code Smell 263 - Squatting
Cover image for Code Smell 263 - Squatting

Code Smell 263 - Squatting

4
Comments
3 min read
Code Smell 264 - Hanlon's Razor
Cover image for Code Smell 264 - Hanlon's Razor

Code Smell 264 - Hanlon's Razor

2
Comments
3 min read
Code Smell 265 - Linguistic Confusion
Cover image for Code Smell 265 - Linguistic Confusion

Code Smell 265 - Linguistic Confusion

3
Comments
3 min read
Code Smell 266 - Collection Aliasing
Cover image for Code Smell 266 - Collection Aliasing

Code Smell 266 - Collection Aliasing

3
Comments
3 min read
Code Smell 267 - Objects Aliasing
Cover image for Code Smell 267 - Objects Aliasing

Code Smell 267 - Objects Aliasing

2
Comments 5
4 min read
Code Smell 268 - Ternary Metaprogramming
Cover image for Code Smell 268 - Ternary Metaprogramming

Code Smell 268 - Ternary Metaprogramming

4
Comments
3 min read
Code Smell 269 - Low-Level Addition
Cover image for Code Smell 269 - Low-Level Addition

Code Smell 269 - Low-Level Addition

3
Comments
4 min read
Code Smell 270 - Boolean APIs
Cover image for Code Smell 270 - Boolean APIs

Code Smell 270 - Boolean APIs

3
Comments 1
7 min read
Code Smell 271 - The Hollywood Principle
Cover image for Code Smell 271 - The Hollywood Principle

Code Smell 271 - The Hollywood Principle

4
Comments
10 min read
Code Smell 272 - API Chain
Cover image for Code Smell 272 - API Chain

Code Smell 272 - API Chain

2
Comments
7 min read
Code Smell 273 - Overengineering
Cover image for Code Smell 273 - Overengineering

Code Smell 273 - Overengineering

9
Comments 1
11 min read
Code Smell 274 - Cascaded Returns
Cover image for Code Smell 274 - Cascaded Returns

Code Smell 274 - Cascaded Returns

6
Comments
6 min read
Code Smell 275 - Missing Test Wrong Path
Cover image for Code Smell 275 - Missing Test Wrong Path

Code Smell 275 - Missing Test Wrong Path

4
Comments
7 min read
Code Smell 276 - Untested Regular Expressions
Cover image for Code Smell 276 - Untested Regular Expressions

Code Smell 276 - Untested Regular Expressions

5
Comments 1
7 min read
Code Smell 277 - UPPERCASE Acronyms
Cover image for Code Smell 277 - UPPERCASE Acronyms

Code Smell 277 - UPPERCASE Acronyms

3
Comments 4
7 min read
Code Smell 278 - DirName and File
Cover image for Code Smell 278 - DirName and File

Code Smell 278 - DirName and File

1
Comments
8 min read
Code Smell 279 - Loop Premature Optimization
Cover image for Code Smell 279 - Loop Premature Optimization

Code Smell 279 - Loop Premature Optimization

Comments 6
4 min read
Code Smell 280 - Spaghetti Code
Cover image for Code Smell 280 - Spaghetti Code

Code Smell 280 - Spaghetti Code

Comments 1
5 min read