---
title: "Discussion on \"Code Smell 102 - Arrow Code\" | Hashnode"
description: "Discussion on \"Code Smell 102 - Arrow Code\". Nested IFs and Elses are very hard to read and test\n\nTL;DR: Avoid nested IFs. Even Better: Avoid ALL IFs\n\nProblems\n\nReadability \n\nSolutions\n\nExtract Method\n\nCombine Boolean Conditions\n\nRemove accidental IFs\n\n\nContext\nIn procedural code, it is very co..."
url: "https://hashnode.com/posts/code-smell-102-arrow-code/6191ce0183e4212d6e57a288"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code Smell 102 - Arrow Code](https://maximilianocontieri.com/code-smell-102-arrow-code?utm_source=hashnode&utm_medium=feed)

Nested IFs and Elses are very hard to read and test TL;DR: Avoid nested IFs. Even Better: Avoid ALL IFs Problems Readability Solutions Extract Method Combine Boolean Conditions Remove accidental IFs Context In procedural code, it is very co...

Nov 15, 2021 · 2 min read · maximilianocontieri.com  
Updated Jul 16, 2022  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#code-smell-1](https://hashnode.com/tag/code-smell-1)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[Maxi Contieri](https://hashnode.com/@mcsee)

@mcsee · Buenos Aires

  
[View profile](https://hashnode.com/@mcsee)

Software Engineer

I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.

## Responses 1

Markdown supported · ⌘↵ to post

[Hassib Moddasser](https://hashnode.com/@hassibmoddasser)

[Nov 16, 2021](https://hashnode.com/posts/code-smell-102-arrow-code/6191ce0183e4212d6e57a288/comment/619422213011d8453957dfc4)

The Code Smell series are great!

Thank you! :)
