Number 1 Rule for Writing Clean Functions

Published: 15 December 2022
on channel: Train To Code
170
12

Writing clean functions is one of those things that looks simple but is actually incredibly difficult, I encourage you to follow this number one rule: If you can’t explain everything your function does in the name, then it isn’t simple enough.

In this video we will follow this clean code approach, discuss the single responsibility, and introduce the concept of cross cutting concerns.

00:00 Introduction
01:49 Single Responsibility Principle
02:15 Cross Cutting Concerns
02:59 Validation Middleware
03:32 Conclusion