---
title: "Discussion on \"Why we should not use objects as data structures ?\" | Hashnode"
description: "Discussion on \"Why we should not use objects as data structures ?\". Problem faced:\nDuring our software development, we used to use design a class just to use it as a data structure. But while i was interested in reading about code smells; i got to know that its one of the anti pattern. So what is the problem with usi..."
url: "https://hashnode.com/posts/why-we-should-not-use-objects-as-data-structures/65643b0fbc9f570818e0eb2c"
---

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

Discussion

# [Why we should not use objects as data structures ?](https://parottasalna.hashnode.dev/why-we-should-not-use-objects-as-data-structures?utm_source=hashnode&utm_medium=feed)

Problem faced: During our software development, we used to use design a class just to use it as a data structure. But while i was interested in reading about code smells; i got to know that its one of the anti pattern. So what is the problem with usi...

Nov 27, 2023 · 3 min read · parottasalna.hashnode.dev  
Read the article

-   [#code-smell](https://hashnode.com/tag/code-smell)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#software-design](https://hashnode.com/tag/software-design)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#iamfullstackdeveloper](https://hashnode.com/tag/iamfullstackdeveloper)
-   [#fullstackdevelopment](https://hashnode.com/tag/fullstackdevelopment)
-   [#coding](https://hashnode.com/tag/coding)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcodedaily](https://hashnode.com/tag/leetcodedaily)
-   [#syedjafer](https://hashnode.com/tag/syedjafer)

## Written by

[Syed Jafer K](https://hashnode.com/@iamsyedjafer)

@iamsyedjafer · Chennai, India

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
