---
title: "Discussion on \"Never rely on Strings for conditionals\" | Hashnode"
description: "Discussion on \"Never rely on Strings for conditionals\". Almost all the time is a bad decision to use Strings in conditionals because you will have no help from the compiler to alert you when you typed them wrong.\nThrow the first stone the developer who never lost hours of work debugging because the code d..."
url: "https://hashnode.com/posts/never-rely-on-strings-for-conditionals/5fd6c550f60e3973bae6ca12"
---

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

Discussion

# [Never rely on Strings for conditionals](https://blog.darlantc.com/never-rely-on-strings-for-conditionals?utm_source=hashnode&utm_medium=feed)

Almost all the time is a bad decision to use Strings in conditionals because you will have no help from the compiler to alert you when you typed them wrong. Throw the first stone the developer who never lost hours of work debugging because the code d...

Dec 14, 2020 · 6 min read · blog.darlantc.com  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#swift](https://hashnode.com/tag/swift)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[Darlan Tódero ten Caten](https://hashnode.com/@darlantc)

@darlantc · Brasília - DF - Brazil

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

Entrepreneur & Software Engineer

I'm an entrepreneur and full stack developer from Brazil and I love to learn new skills! As a self-learner, I like to try new things whenever I can. Currently, I use in my work: Dart, Flutter, Javascript, ReactJS, Node JS, Python, and Firebase.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
