---
title: "Comment by Bojan Nišević on \"Write better code and be a better programmer by NEVER USING ELSE statements\" | Hashnode"
description: "This is not good approach. There is only one sufficient principle in the craft: Every tool has its purpose and do not use a tool for a wrong purpose. Not using"
url: "https://hashnode.com/posts/write-better-code-and-be-a-better-programmer-by-never-using-else-statements/5faa95edc9b29b563d0c0e3e/comment/5fabf1ed8f0a026553477694"
---

[Discussion](https://hashnode.com/posts/write-better-code-and-be-a-better-programmer-by-never-using-else-statements/5faa95edc9b29b563d0c0e3e)

Comment [Write better code and be a better programmer by NEVER USING ELSE statements](https://hashnode.com/posts/write-better-code-and-be-a-better-programmer-by-never-using-else-statements/5faa95edc9b29b563d0c0e3e)

[Bojan Nišević](https://hashnode.com/@boyanpro)

[Nov 11, 2020](https://hashnode.com/posts/write-better-code-and-be-a-better-programmer-by-never-using-else-statements/5faa95edc9b29b563d0c0e3e/comment/5fabf1ed8f0a026553477694)

This is not good approach. There is only one sufficient principle in the craft: Every tool has its purpose and do not use a tool for a wrong purpose.

Not using a tool at all protects you when you do not know its purpose and how to use it properly. Also not using a common tool just to be protected from ignorance tells about amount of ignorance.

[Douglas Parsons](https://hashnode.com/@dglsparsons)

[Nov 11, 2020](https://hashnode.com/posts/write-better-code-and-be-a-better-programmer-by-never-using-else-statements/5faa95edc9b29b563d0c0e3e/comment/5fabf1ed8f0a026553477694#reply-5fac0c6efa438d6532c7cedf)

Hi Bojan. I'm sorry to hear that this didn't strike a chord with you.

It's a dangerous argument you go down. I'm not saying that they have no purpose - they clearly do. Instead, i'm trying to illustrate that there are better alternatives for where they would normally be used.

I've not come across places where my code would benefit from `else` statements.

[Bojan Nišević](https://hashnode.com/@boyanpro)

[Nov 11, 2020](https://hashnode.com/posts/write-better-code-and-be-a-better-programmer-by-never-using-else-statements/5faa95edc9b29b563d0c0e3e/comment/5fabf1ed8f0a026553477694#reply-5fac18768f0a026553477afc)

[Douglas Parsons](https://hashnode.com/@dglsparsons) That's the sad part. ;)
