---
title: "Discussion on \"Code Smell 21 - Anonymous Functions Abusers\" | Hashnode"
description: "Discussion on \"Code Smell 21 - Anonymous Functions Abusers\". Don't abuse closures and functions. Encapsulate them into objects."
url: "https://hashnode.com/posts/code-smell-21-anonymous-functions-abusers/5faa841e6bd0b3538653d44d"
---

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

Discussion

# [Code Smell 21 - Anonymous Functions Abusers](https://maximilianocontieri.com/code-smell-21-anonymous-functions-abusers?utm_source=hashnode&utm_medium=feed)

Don't abuse closures and functions. Encapsulate them into objects.

Nov 10, 2020 · 2 min read · maximilianocontieri.com  
Updated Nov 8, 2022  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#functions](https://hashnode.com/tag/functions)

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

Markdown supported · ⌘↵ to post

[Tapas Adhikary](https://hashnode.com/@atapas)

[Nov 10, 2020](https://hashnode.com/posts/code-smell-21-anonymous-functions-abusers/5faa841e6bd0b3538653d44d/comment/5faabbf4621a1f57a3d0672d)

I am now an official fan of your Code Smell explanations! Great job.
