‘Functions need to do one thing’-mantra is wrong.

by Mar 19, 2024Shorts

‘Functions need to do one thing’-mantra is wrong.

Since Robert C. Marting wrote the book Clean Code, developers try to implement the guidelines from that book.

One of them is to write Small focused functions.

Please stop doing that!

Don’t let me go through multiple hierarchies of small functions like a detective to understand what is happening.

It’s ok for functions to be 20-30 lines, it’s small enough. If it is clear, don’t split the logic up.

You don’t need to hide everything, resist the urge ๐Ÿ˜‰.

Remy van Duijkeren

Remy van Duijkeren

Power Platform Automator

Automation and integration arenโ€™t just what I doโ€”theyโ€™re what I do best.

I help businesses work smarter by removing friction, automating what slows them down, and connecting systems that shouldโ€™ve been talking all along.

 

Get My Thoughts on Automation & Development

Join my personal newsletter and get practical insights on building faster, integrating smarter, and removing friction in IT systems โ€” especially on Power Platform and Dynamics 365.

Related