3 ms·
Disadvantages: Sometimes it takes more work. Quick and dirty can be easier to read, if the function is short. Advantages: You can mix and match. Pure functions
by visarga 9y ago
Disadvantages: Sometimes it takes more work. Quick and dirty can be easier to read, if the function is short.
Advantages: You can mix and match. Pure functions are more composable and easier to test because you don't have to worry about side effects.