them at all? How does it help us to write clean code? I just haven't used this before
Well, first you need to make sure your code is testable
Pure functions are trivial to test. Tests give you some safety when refactoring — you can quickly check if changed code has all the expected behaviors
Обсуждают сегодня