---
title: "Discussion on \"Code Smell 47 - Diagrams\" | Hashnode"
description: "Discussion on \"Code Smell 47 - Diagrams\". Diagrams are not code. They cannot be a code smell. They are just Diagram Smells.\n\nTL;DR: Don't use diagrams. They are obsolete and dead.\n\nProblems\n\nMaintainability\n\nTrash code\n\nCode Duplication\n\nDiagrams focus only on structure (accidental) and not ..."
url: "https://hashnode.com/posts/code-smell-47-diagrams/5fd03e505f23a22c3af2c950"
---

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

Discussion

# [Code Smell 47 - Diagrams](https://maximilianocontieri.com/code-smell-47-diagrams?utm_source=hashnode&utm_medium=feed)

Diagrams are not code. They cannot be a code smell. They are just Diagram Smells. TL;DR: Don't use diagrams. They are obsolete and dead. Problems Maintainability Trash code Code Duplication Diagrams focus only on structure (accidental) and not ...

Dec 9, 2020 · 2 min read · maximilianocontieri.com  
Updated Jan 30, 2023  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#code-smell](https://hashnode.com/tag/code-smell)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#software-design](https://hashnode.com/tag/software-design)

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

Markdown supported · ⌘↵ to post

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Dec 9, 2020](https://hashnode.com/posts/code-smell-47-diagrams/5fd03e505f23a22c3af2c950/comment/5fd0683527c77b3085912059)

I tend to disagree, we still use diagrams and functional designs to help understand the semi/non-technical client what we are building.

It's a decent way to validate if what we are going to build is what they envisioned.

We rather spend the hour making the diagram and functional designs than building something only to realize it's not what they wanted.

[Maxi Contieri](https://hashnode.com/@mcsee)

[Dec 9, 2020](https://hashnode.com/posts/code-smell-47-diagrams/5fd03e505f23a22c3af2c950/comment/5fd0683527c77b3085912059#reply-5fd0d35fe44fe338abffc167)

Sure !

But you use diagrams to talk to other humans. That's a very valid scenario.

I prefer to validate what user wants using TDD.

The main problem with diagrams is that you discuss DATA with users. And data is accidental. You need to discuss behavior with them. And, IMHO, functional tests and acceptance tests are better for it.

We can validate rapid prototyping and validations with diagrams or Acceptance tests. I prefer the latter.
