Re:Ask HN: Best tiny JavaScript framework?
by scarface74 on Thursday March 09, 2017 @01:22PM
(#13831554)
What "hacks" do you expect from using plain JavaScript? The biggest hack in plain JS is usually in my experience creating HTML elements dynamically based on data. That's where Handlebars would come in.
Re:Ask HN: Best tiny JavaScript framework?
by levthedev on Thursday March 09, 2017 @02:01PM
(#13831984)
I just mean that over the course of building vanilla JavaScript applications, people often add layer of functionality that are implemented worse than libraries, are harder to maintain, or are not as compatible.
Like yes, I could build my own routing library, and that is probably fine, and yes I can build my own state management library, and so on, but at a certain point you are just rebuilding a framework from scratch, and oftentimes not very well.
Re:Ask HN: Best tiny JavaScript framework?
by scarface74 on Thursday March 09, 2017 @05:07PM
(#13834247)
We managed to survive and create functional websites for years without a "routing library" and without creating our own custom routing library.
But that's the beauty of using Handlebars. If at a later date you do need a full fledge framework, you can use Ember - that uses a superset of Handlebars.
Then again, maybe I should just put the time in to make a well architecture and maintainable plain vanilla Javascript application. I'm definitely a fan of minimalism.