How to Unabstract an Abstraction
Abstractions in code are easy to add and challenging to remove. Sometimes we feel stuck with them. But the good news is, you can back out of almost any abstraction with the right mindset.
Let’s look at an example.
A Breaking Abstraction Imagine a currency formatter.
function formatPrice(amount) { return `$${amount.toFixed(2)}` } formatPrice(10) //
Jake Worth