---
title: "Comment by Douglas Rogers on \"How to code like a pro in 2022 and avoid If-Else\" | Hashnode"
description: "I was reading this article thinking &quot;Man! I&#39;ve NEVER encountered ANY of these methods in all my years of writing code! I&#39;m mid-level at best and I"
url: "https://hashnode.com/posts/how-to-code-like-a-pro-in-2022-and-avoid-if-else/62aab3692b2b09182b654c62/comment/62b134b2c0f84f6b540d256a"
---

[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)

[Douglas Rogers](https://hashnode.com/@standingdreams)

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

I was reading this article thinking "Man! I've NEVER encountered ANY of these methods in all my years of writing code! I'm mid-level at best and I need to go back to the drawing board and start from scratch."

THEN I realized you're writing .NET.........not JavaScript/TypeScript. 😩🤣
