Keeping Your Functions Pure
[!INFO]-
topic: ๐งน Clean Code
links:
- Functions should be small and do one thing - they should have a single responsibility
- What are side effects of a function
source: Clean Code | Udemy
tags: #permanent-noteย #published
Last Modified:
=dateformat(this.file.mtime, "MMM. dd, yyyy - HH:mm")
A pure function always returns the same output for the same input. In addition, a pure function doesn't have any side effects. Pure functions make your code predictable.