---
title: "Comment by Moiz Alnoor on \"How to code like a pro in 2022 and avoid If-Else\" | Hashnode"
description: "even if i am senior i will go with switch, &quot;easy is best&quot;"
url: "https://hashnode.com/posts/how-to-code-like-a-pro-in-2022-and-avoid-if-else/62aab3692b2b09182b654c62/comment/62c02d61ccecfb25bbc73061"
---

[Discussion](https://hashnode.com/posts/how-to-code-like-a-pro-in-2022-and-avoid-if-else/62aab3692b2b09182b654c62)

Comment [How to code like a pro in 2022 and avoid If-Else](https://hashnode.com/posts/how-to-code-like-a-pro-in-2022-and-avoid-if-else/62aab3692b2b09182b654c62)

[Moiz Alnoor](https://hashnode.com/@moiz-)

[Jul 2, 2022](https://hashnode.com/posts/how-to-code-like-a-pro-in-2022-and-avoid-if-else/62aab3692b2b09182b654c62/comment/62c02d61ccecfb25bbc73061)

even if i am senior i will go with switch, "easy is best"
