3 ms·
one of the biggest changes was accepting that React is different from old way of doing things like with jquery. I used jQuery to build 4k loc applications. It'
by jorgecurio 11y ago
one of the biggest changes was accepting that React is different from old way of doing things like with jquery.
I used jQuery to build 4k loc applications. It's a fucking blast when you are just wiring up the template and watching the UI come alive...to me that was the power of jQuery. No need to think, just go and make everything stick like glue.
Angular.js was also right in that regard....add annotation to HTML. but this shit doesn't scale when application grows.
I'm still frustrated that I can't write shit in jQuery anymore because HN have collectively ruled against it and I guess at 4k loc it has become very hairy.
But I still argue if your needs are pretty small, like make a small widget app that has two buttons and makes ajax request to an endpoint, no other frontend framework can even touch jQuery in this territory....
In fact the overhead of having to think about states, structures, components organized in hierarchy...this shit adds to my stress and I can't experiment fast...but then also was the stress from not being able to add new features because the jQuery app grew in complexity....
difficult times gentlemen difficult times. I've been holding on to jQuery since 2009...maybe it's time to venture out entirely with React.js? Or should I crawl back to the comfortable cave that is jQuery where I can make anything very quickly.
- baby 11y agoI'm pretty sure you can use both. I use jQuery more like an enhanced javascript. React I use for designing real interactive components. If you have a small javascript feature to implement, just write in jQuery.
- petepete 11y agoI'm also still in the jQuery cave, for the same reasons you are. For most of what I do, it's enough, but on my current app, there are a couple of places (complex booking forms) where the code can get messy really fast. I might give React a try when the opportunity presents itself.
- leeoniya 11y agoyou may find https://github.com/leeoniya/domvm https://github.com/leeoniya/domvm interesting. Disclaimer: mine, and has about another month to 1.0 stability.
- pkrumins 11y agoDon't let the peer pressure get you down. Stick to jQuery. Like you said, you can get anything done with it very quickly. You don't need any of these massive frameworks to build web applications.
- alien3d 11y agoKISS. Keep it simple and straightforward. Once been extjs then come to weird mvc pragma come become line of code(LOC) become triple larger. Then i moved to jquery, it breeze to code.Have try learn new tech like angular,backbone but still fall back to normal javascript and jquery.Maybe i'm to old to learn new tech. :(
- pkrumins 11y agoYou're not too old. The new frameworks just don't make much sense. You don't need any of them to write applications. They just bloat everything, create additional dependencies and don't help you much. You spend all your time figuring out how to do things limited by frameworks's scope rather than getting things done. You can generally write 90% of what you'll need from any framework in 90 lines of code and create nice abstractions yourself. Don't use frameworks and don't let the peer pressure get you sucked into this nightmare what frameworks are.
- gedy 11y agoThere's still a lot of nice middle ground between jQuery and React. When I started venturing beyond jQuery, things like Knockout were a god send for simplifying data-binding (and they are still around). React is fine, but it's really no silver bullet
- jorgecurio 11y agoreminds me of this https://github.com/ermouth/jQuery.my https://github.com/ermouth/jQuery.my have yet to use it but seems like that handles data binding....
- girvo 11y agoIf you want to make components dynamic on top of regular HTML, like jQuery, but want to wrangle some decent architecture and scalability out of it, I can't recommend Vue.js[0] enough. [0] http://vuejs.org/ http://vuejs.org/