---
title: "Discussion on \"Code Smell 121 - String Validations\" | Hashnode"
description: "Discussion on \"Code Smell 121 - String Validations\". You need to validate strings. So you don't need strings at all\n\nTL;DR: Search for missing domain objects when validating strings.\n\nProblems\n\nPrimitive obsession.\n\nBijection Fault\n\nValidated strings are a subset of all possible strings.\n\nFail Fast pri..."
url: "https://hashnode.com/posts/code-smell-121-string-validations/622e521ddf08b9b823419aa4"
---

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

Discussion

# [Code Smell 121 - String Validations](https://maximilianocontieri.com/code-smell-121-string-validations?utm_source=hashnode&utm_medium=feed)

You need to validate strings. So you don't need strings at all TL;DR: Search for missing domain objects when validating strings. Problems Primitive obsession. Bijection Fault Validated strings are a subset of all possible strings. Fail Fast pri...

Mar 13, 2022 · 3 min read · maximilianocontieri.com  
Read the article

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

## 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

Markdown supported · ⌘↵ to post

No responses yet.
