---
title: "Discussion on \"A Cure for Primitive Obsession\" | Hashnode"
description: "Discussion on \"A Cure for Primitive Obsession\". What is Primitive Obsession?\nTo start with, primitives are the basic data types available in most languages. These include data types such as strings, numbers (int, floats), and booleans.\nPrimitive obsession is a code smell in which primitive data ty..."
url: "https://hashnode.com/posts/a-cure-for-primitive-obsession/604ca0a137d84907f1327e9b"
---

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

Discussion

# [A Cure for Primitive Obsession](https://samwalpole.com/a-cure-for-primitive-obsession?utm_source=hashnode&utm_medium=feed)

What is Primitive Obsession? To start with, primitives are the basic data types available in most languages. These include data types such as strings, numbers (int, floats), and booleans. Primitive obsession is a code smell in which primitive data ty...

Mar 13, 2021 · 7 min read · samwalpole.com  
Updated Aug 25, 2024  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#code-smell](https://hashnode.com/tag/code-smell)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#code-review](https://hashnode.com/tag/code-review)

## Written by

[Sam Walpole](https://hashnode.com/@dr_sam_walpole)

@dr\_sam\_walpole · United Kingdom

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

👨‍💻 Fullstack .NET and JavaScript teacher and advocate 👨‍💻

## Responses 1

Markdown supported · ⌘↵ to post

[saint4eva](https://hashnode.com/@saint4eva)

[May 23, 2021](https://hashnode.com/posts/a-cure-for-primitive-obsession/604ca0a137d84907f1327e9b/comment/60aa54b35379f65d10b612d2)

C# record is excellently and well designed. I love it
