---
title: "Discussion on \"Should My Functions Be Five Lines\" | Hashnode"
description: "Discussion on \"Should My Functions Be Five Lines\". There is a book you probably heard about, \"Clean Code\" by Robert Martin, who also authored other famous books on Software Engineering and who stood behind many well-known engineering principles as well as the Agile.\nMany of his works are often under ..."
url: "https://hashnode.com/posts/should-my-functions-be-five-lines/66532813323f596cab1e38fa"
---

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

Discussion

# [Should My Functions Be Five Lines](https://blog.pragmaticfrontend.dev/should-my-functions-be-five-lines?utm_source=hashnode&utm_medium=feed)

There is a book you probably heard about, "Clean Code" by Robert Martin, who also authored other famous books on Software Engineering and who stood behind many well-known engineering principles as well as the Agile. Many of his works are often under ...

May 26, 2024 · 5 min read · blog.pragmaticfrontend.dev  
Read the article

-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#javscript](https://hashnode.com/tag/javscript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Serhiy Volochii](https://hashnode.com/@serhiivolochii)

@serhiivolochii · Berlin

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

(╯°□°)╯︵ ┻━┻

## Responses 1

Markdown supported · ⌘↵ to post

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

[May 26, 2024](https://hashnode.com/posts/should-my-functions-be-five-lines/66532813323f596cab1e38fa/comment/6653482f9c085513f509d445)

The last one is the most declarative

[Serhiy Volochii](https://hashnode.com/@serhiivolochii)

[May 29, 2024](https://hashnode.com/posts/should-my-functions-be-five-lines/66532813323f596cab1e38fa/comment/6653482f9c085513f509d445#reply-6656f94a38cf0395dcf90088)

Yes, but it is also a “big commitment”: I’d never just casually introduce such things into existing codebases unless I’m solo developer there.
