Hacker News new | ask | show | jobs
by skydhash 503 days ago
That’s the problem template languages solve. That button could be a partial, and you include it where you want a button. And with grep, you can track it down.
2 comments

Yes, and then you solve a dozen problems like this, bundle it up, and you've created a framework.
The problem with frameworks is with feature/need fit. Sometimes you need something simple and using a framework results in a big percentage of dead code. Or you extend it enough that there’s no longer any benefits.
One of Allaire’s selling points for CFML was that their IDE would track all the matching partials in a project if you edited one