News for hackers. Stuff that matters.
Re:Why I don't miss React: a story about using the platform by hirvi74 on Wednesday May 04, 2022 @12:01AM (#31256598)
> This will not allow you to build very rich apps without implementing a significant chunk of the frameworks you dislike so much

I am currently working on an app at work that wants SPA functionality, but they won't let me use any of the frameworks. Tons of vanilla JS and Jquery. I am sure what I have written is probably considered a crime against humanity in some place.

Does it work? Yes. Is it an elegant and maintainable codebase? Not by my definition.

Re:Why I don't miss React: a story about using the platform by ng12 on Wednesday May 04, 2022 @12:09AM (#31256648)
I feel you. I remember the old days of trying to build SPAs in jQuery and they were dark ones.
Re:Why I don't miss React: a story about using the platform by bshimmin on Wednesday May 04, 2022 @03:18AM (#31257662)
I actually have quite happy memories of working with Backbone and jQuery - there were obviously all manner of problems, but everything was quite easy to understand and a lot less magical. Apparently this was in 2012 - how time flies! - so I imagine rose-tinted spectacles must be in full effect here!
Re:Why I don't miss React: a story about using the platform by bambataa on Wednesday May 04, 2022 @04:01AM (#31257904)
That raises an interesting question: what would be the declarative framework easiest to minimally reimplement?

I’m thinking you could have a single file, jQuery-based, hand rolled version of some framework and get many of the benefits while still technically complying with the “no frameworks” rule. In the same way that you could reimplement Redux easily if you for some reason weren’t allowed to use it.

I suspect diffing performance would be the bottleneck but I wonder if you could come up with some weird half solution that worked for your particular use case.

Re:Why I don't miss React: a story about using the platform by hirvi74 on Wednesday May 04, 2022 @07:25PM (#31267180)
I would love something like this, but I do not think I am at the level to be able to build something like this, at least not in a reason amount of time.

I've not used Redux for anything before, but I will look into for sure. I've heard the name thrown around a few times on here, and I could probably use something like that. Just nothing that would require a staunch learning curve to use.

Re:Why I don't miss React: a story about using the platform by xigoi on Wednesday May 04, 2022 @05:30AM (#31258350)
Re:Why I don't miss React: a story about using the platform by hajile on Wednesday May 04, 2022 @01:01PM (#31263073)
Look at the Mithril or Preact codebases and make a basic version of your own.
Re:Why I don't miss React: a story about using the platform by hirvi74 on Wednesday May 04, 2022 @07:27PM (#31267197)
I will look into these. Thank you for sharing.

I doubt I will be able to roll my own version of whatever these project due mainly because of time constraints and because I am the only developer working on it. Since we have adopted all the Agile stuff, Sprints are basically deadlines and not very...Agile.