DEV Community

loading...

Discussion on: Getting your website to load in under 0.1 seconds

Collapse
griffinsauce profile image
Joris Griffioen

You didn't look up WET did you? I'm not going to badly repeat what has been written by others way better, so do some research here.

One link that comes to mind is this: overreacted.io/goodbye-clean-code/

so where you can't abstract you don't

Yes, this is bad practice. You don't abstract because you can, you abstract when it helps. Abstraction introduces complexity, you have to balance the cost of that complexity with the benefits.

Abstraction is important to not repeat code and reuse methods and functions.

Repeating code is not a sin (see the link above). Every line of code has a different context, as those contexts diverge over time your abstractions increase in cost.