DEV Community

Discussion on: Where do you stand on "magic" within languages and frameworks?

Collapse
 
jmfayard profile image
Jean-Michel (jmfayard.dev) • Edited

My view is that abstractions are a good thing, the bread and butter of programming. You don't generate your HTML in C with printf(), do you? But we also need to be aware that they can be leaky.

Twenty years ago: The Law of Leaky Abstractions

Collapse
 
ravavyr profile image
Ravavyr • Edited

I'd say you shouldn't be using C to build websites at all, that there are much simpler ways to write your html these days :)

But you're right, abstractions are good thing, but not when someone creates an abstraction layer for HTML tags to where your write _br() instead of < br > literally typing more characters to use an abstraction because some old timey dev was utterly insane. [true story, old tag library i had to use years ago]