4 ms·
> 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 a
by hirvi74 5y ago
> 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.
- ng12 5y agoI feel you. I remember the old days of trying to build SPAs in jQuery and they were dark ones.
- bshimmin 5y agoI 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!
- bambataa 5y agoThat 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.
- xigoi 5y agohttps://zserge.com/posts/worst-react-ever/ https://zserge.com/posts/worst-react-ever/ https://zserge.com/posts/worst-vuejs-ever/ https://zserge.com/posts/worst-vuejs-ever/
- hirvi74 5y agoI 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.
- hajile 5y agoLook at the Mithril or Preact codebases and make a basic version of your own.
- hirvi74 5y agoI 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.