# How to Improve your Code With Easy Refactorings

> TL;DR: Let's start addressing our code smells

I have been writing a series on Code Smells for a long time.

%[https://maximilianocontieri.com/how-to-find-the-stinky-parts-of-your-code]

There are a lot of (possible) problems

Let's go for the solutions!

%[https://maximilianocontieri.com/refactoring-001-remove-setters]

%[https://maximilianocontieri.com/refactoring-002-extract-method]

%[https://maximilianocontieri.com/refactoring-003-extract-constant]

%[https://maximilianocontieri.com/refactoring-004-remove-unhandled-exceptions]

%[https://maximilianocontieri.com/refactoring-005-replace-comment-with-function-name]

%[https://maximilianocontieri.com/refactoring-006-rename-result-variables]

%[https://maximilianocontieri.com/refactoring-007-extract-class]

%[https://maximilianocontieri.com/refactoring-008-convert-variables-to-constant]

%[https://maximilianocontieri.com/refactoring-009-protect-public-attributes]

%[https://maximilianocontieri.com/refactoring-010-extract-method-object]

%[https://maximilianocontieri.com/refactoring-011-replace-comments-with-tests]

%[https://maximilianocontieri.com/refactoring-012-reify-associative-arrays]

%[https://maximilianocontieri.com/refactoring-013-remove-repeated-code]

%[https://maximilianocontieri.com/refactoring-014-remove-if]

%[https://maximilianocontieri.com/refactoring-015-remove-null]

%[https://maximilianocontieri.com/refactoring-016-build-with-the-essence]

%[https://maximilianocontieri.com/refactoring-017-convert-attributes-to-sets]

%[https://maximilianocontieri.com/refactoring-018-replace-singleton]

%[https://maximilianocontieri.com/refactoring-019-reify-email-addresses]

%[https://maximilianocontieri.com/refactoring-020-transform-static-functions]

%[https://maximilianocontieri.com/refactoring-021-remove-dead-code]

%[https://maximilianocontieri.com/refactoring-022-extract-common-ancestor]

%[https://maximilianocontieri.com/refactoring-023-replace-inheritance-with-delegation]

%[https://maximilianocontieri.com/refactoring-024-replace-global-variables-with-dependency-injection]

%[https://maximilianocontieri.com/refactoring-025-decompose-regular-expressions]

%[https://maximilianocontieri.com/refactoring-026-migrate-global-console-input-to-declarative-function]

%[https://maximilianocontieri.com/refactoring-027-remove-getters]

%[https://maximilianocontieri.com/refactoring-028-replace-consecutive-ids-with-dark-keys]

%[https://maximilianocontieri.com/refactoring-029-replace-null-with-collection]

%[https://maximilianocontieri.com/refactoring-030-inline-attributes]

%[https://maximilianocontieri.com/refactoring-031-removing-oops]

%[https://maximilianocontieri.com/refactoring-032-apply-consistent-style-rules]

%[https://maximilianocontieri.com/refactoring-033-strip-annotations]

%[https://maximilianocontieri.com/refactoring-034-reify-parameters]

%[https://maximilianocontieri.com/refactoring-035-separate-exception-types]

%[https://maximilianocontieri.com/refactoring-036-replace-string-concatenations-with-text-blocks]

%[https://maximilianocontieri.com/refactoring-037-testing-private-methods]

* * *

Photo by <a href="https://unsplash.com/ja/@norevisions">No Revisions</a> en <a href="https://unsplash.com/es/s/fotos/cleaning">Unsplash</a>

* * *

Part of the objective of this series of articles is to generate spaces for debate and discussion on software design.

%[https://maximilianocontieri.com/object-design-checklist]
  
