DEV Community

Discussion on: We Should All Be Writing WET Code

Collapse
 
sswam profile image
Sam Watkins • Edited

I agree it's important to write something at least twice or three times before trying to abstract or generalize it. Also, if the abstraction makes the code less clear, don't do it. YAGNI the abstraction if you only write the thing a few times.