---
title: "Discussion on \"Refactoring long lists of parameters\" | Hashnode"
description: "Discussion on \"Refactoring long lists of parameters\". There seems to be no agreement in the software engineering community about how many parameters are too many for a function.\nThis should come to no surprise.\nThe ideal number of parameters for a function need not be the same as the ideal number of par..."
url: "https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673"
---

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

Discussion

# [Refactoring long lists of parameters](https://mariocervera.com/refactoring-long-lists-of-parameters?utm_source=hashnode&utm_medium=feed)

There seems to be no agreement in the software engineering community about how many parameters are too many for a function. This should come to no surprise. The ideal number of parameters for a function need not be the same as the ideal number of par...

Feb 10, 2021 · 8 min read · mariocervera.com  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Mario Cervera](https://hashnode.com/@macerub)

@macerub · Spain

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

Software craftsman. I write about Software Engineering (clean code, design, testing, ...) and also about Algorithms & Data Structures.

## Responses 6

Markdown supported · ⌘↵ to post

[Bhargav Ponnapalli](https://hashnode.com/@codewithbhargav)

[Feb 11, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/60253a9259e32452ff0b708f)

Very true. While short lists of parameters makes sense in most cases, sometimes it just depends.

Good one [Mario Cervera](https://hashnode.com/@macerub)!

[Mario Cervera](https://hashnode.com/@macerub)

[Feb 11, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/60253a9259e32452ff0b708f#reply-60254404c6d91052dafe88b7)

Thanks Bhargav! 🙏

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Feb 11, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/6025195a4d9e7d4dd727e537)

These are very valid and interesting points on refactoring. Thank you for sharing [Mario Cervera](https://hashnode.com/@macerub).

[Mario Cervera](https://hashnode.com/@macerub)

[Feb 11, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/6025195a4d9e7d4dd727e537#reply-60252f2059e32452ff0b6f5e)

Thanks Edidiong! I am happy you liked the article 🙂

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Feb 11, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/6024cdda80da6c44eadf7f3d)

Great article! I need to bookmark it!

[Mario Cervera](https://hashnode.com/@macerub)

[Feb 11, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/6024cdda80da6c44eadf7f3d#reply-602516ca4d9e7d4dd727e4d3)

Thanks Catalin for your kind words! 🙂

[Marko Denic](https://hashnode.com/@denic)

[Feb 10, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/602446ca80da6c44eadf7886)

Insightful.

[Mario Cervera](https://hashnode.com/@macerub)

[Feb 10, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/602446ca80da6c44eadf7886#reply-6024733380da6c44eadf7aa4)

Thanks for the feedback Marko! 🙏

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

[Feb 10, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/60241e7780da6c44eadf7587)

Amazing Article as usual, [Mario Cervera](https://hashnode.com/@macerub) !

[Mario Cervera](https://hashnode.com/@macerub)

[Feb 10, 2021](https://hashnode.com/posts/refactoring-long-lists-of-parameters/6024194d50d5e944c5d47673/comment/60241e7780da6c44eadf7587#reply-60242a3f80da6c44eadf76ed)

Thank you Maxi! I am glad you liked it 🙂
