6 ms·
I think more developers should use jquery to prototype an app and move torward a framework when it is needed. The same should be said when adopting redux when u
by zitterbewegung 8y ago
I think more developers should use jquery to prototype an app and move torward a framework when it is needed. The same should be said when adopting redux when using react . Also webpack for building and moving beyond SQLite for data .
- aaron-lebo 8y agoThey really shouldn't. Modern browsers have lots of the selector magic built-in, and frameworks that are very, very small can handle the rest without the spaghetti.
- ozim 8y agoWhat if I tell you, you can write spaghetti code in vanilla javascript, small framework or big framework. You can also write decent code using jQuery.
- collyw 8y agoI can confirm. I am trying to refactor an Angular monstrosity at the moment.
- imtringued 8y agojQuery alone isn't enough because it solves a completely different problem. It doesn't have a built in templating system which means you need a seperate plugin at which point it makes more sense to use Vue or React instead.
- 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...
- machiaweliczny 8y agoIMO VueJs is new JQuery (evolotion). JSX(React) is more revolutionary way to build UI and not only web specific. If you need web specific or progressive enhancement or you just don't know modern JS development tools it's better to start with Vue. My friend who can barely code does quite nice pages in Vue. It's a big success of this framework. Although I prefer React as it's gives me more control/freedom. And if you want easy start just open https://codesandbox.io/ https://codesandbox.io/
- rimliu 8y agoI think more people should understand what problem jQuery was meant to solve: a) provide sane API for DOM manipulation b) hide all the ugly bits and bugs of different browsers.