---
title: "Discussion on \"Code Smell 181 - Nested Classes\" | Hashnode"
description: "Discussion on \"Code Smell 181 - Nested Classes\". Nested or Pseudo-Private Classes seem great for hiding implementation details.\n\nTL;DR: Don't use nested classes\n\nProblems\n\nBijection fault to real world concepts.\n\nLack of testability\n\nLack of reuse\n\nScopes and namespaces complexity\n\n\nSolutions\n\nMake..."
url: "https://hashnode.com/posts/code-smell-181-nested-classes/637d4499353430724312c1b0"
---

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

Discussion

# [Code Smell 181 - Nested Classes](https://maximilianocontieri.com/code-smell-181-nested-classes?utm_source=hashnode&utm_medium=feed)

Nested or Pseudo-Private Classes seem great for hiding implementation details. TL;DR: Don't use nested classes Problems Bijection fault to real world concepts. Lack of testability Lack of reuse Scopes and namespaces complexity Solutions Make...

Nov 22, 2022 · 2 min read · maximilianocontieri.com  
Read the article

-   [#code-smell-1](https://hashnode.com/tag/code-smell-1)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#java](https://hashnode.com/tag/java)
-   [#php](https://hashnode.com/tag/php)

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