DEV Community

loading...

Discussion on: Refactoring: My 6 favorite patterns

Collapse
sebbdk profile image
Sebastian Vargr • Edited

This might be my functional programming bias talking.

But... in example, 4, 2 and 1 you managed to turn a few lines of code into many lines of code.
What is better in these examples?

6 tend be fragile in none-typed languages in my experience.

3, 5 are great tips, they increase verbosity tremendously. :)