4 ms·
> I think more developers should use jquery to prototype an app and move torward a framework when it is needed. They really shouldn't. With VueJS it's not tha
by no1youknowz 8y ago
> I think more developers should use jquery to prototype an app and move torward a framework when it is needed.
They really shouldn't. With VueJS it's not that difficult to get setup and running with the CLI and components is such a game changer.
Don't get me wrong. I love jQuery, there's nothing better than taking someone else's library and then extending it. Here's an example [0].
However, one thing that I have learned. It's much simpler and easier to develop code in Vue compared to jQuery. It took me a day to develop a wizard exactly the same as [1]. Of which it's now a component which I can drop in anywhere in my codebase (which I do numerous times) and in future Vue projects.
So FuelUX code: 463 LOC vs my Wizard: 180 LOC.
One last thing to leave with. I have a page builder much like Elementor. In jQuery I'm doing a lot with the Dom and it's such a pain in the ass. It's about 20k LOC alone with hundreds of functions.
Today, with Vue. I prototyped a JSX/JSON backed version, where a watcher listens to the store. The UI commits any changes to the store and the watcher re-renders the HTML. I did this with just ~90 LOC.
Completely unbelievable from my perspective and I'm still only a newbie when it comes to Vue, Webpack, Babel, etc.
jQuery/jQuery UI. It was great, but it's time to move on.
[0]: https://github.com/bgrins/spectrum/issues/480#issuecomment-316187422 https://github.com/bgrins/spectrum/issues/480#issuecomment-3...
[1]: http://getfuelux.com/javascript.html#wizard http://getfuelux.com/javascript.html#wizard
- aaron-lebo 8y agoMithril is similarly small and very easy to get started.
- RodericDay 8y agoMithril is my favorite by far. It's not even close. It's depressing how little-known it remains.
- pygy_ 8y ago@RodericDay, I just vouched this comment which was [dead]. You've been shadowbanned since https://news.ycombinator.com/item?id=14982937 https://news.ycombinator.com/item?id=14982937 (9 months ago) you may want to appeal that decision or create a new account.
- RodericDay 8y agoYeah I'm aware. Some guy insulted Varoufakis and I insulted him in turn and dang banned me. I'd appeal but honestly this place is hostile to any kind of anti-status quo sentiment from the left so I'd just get banned again. This way I just post rarely.
- endgame 8y agoThere is a sibling comment by RodericDay that is [dead], and I have no idea why: > Mithril is my favorite by far. > It's not even close. It's depressing how little-known it remains.
- porker 8y ago> One last thing to leave with. I have a page builder much like Elementor. In jQuery I'm doing a lot with the Dom and it's such a pain in the ass. It's about 20k LOC alone with hundreds of functions. > Today, with Vue. I prototyped a JSX/JSON backed version, where a watcher listens to the store. The UI commits any changes to the store and the watcher re-renders the HTML. I did this with just ~90 LOC. The community with the first decent (open-source or paid) page builder gets my vote. I could use that in so many projects (and tell people "Yes it's WordPress" when the underlying tech is something else). I was expecting it to be React, with each component having a frontend view and an admin view, and then I'd do server-side-rendering, but happy if it's VueJS...
- mmargerum 8y agoYou don’t even need to use a CLI tool or webpack. Just pull in vue js and use regular html/js just like jquery.