Some experiments and thoughts on all things from Mitchell Simoens

Full featured or lightweight, cannot have both

3 min read

Earlier today, I noticed a conversation about how React was "far more flexible when it comes to customizing" than Ext JS.

So being an Ext JS dev, I disagree with this statement except the last sentence, React is really fast no doubt. React being far more flexible is very debatable. Yes, with React you are the one creating the DOM whereas Ext JS' produced DOM can be bloated a bit and if you're writing your own library of widgets to suit your application you can create it in a way that is best for your application. However, comparing React to Ext JS is like comparing a go-kart to a semi truck. React doesn't do that much, it's just the view layer that you can build on top of whereas Ext JS is a full framework and gives a huge set of widgets out-of-the-box. Sure, you can drive a go-kart but you can't haul things like a semi can.

Let's be honest, having a full framework like Ext JS has it's pros and cons. The pros are self evident (huge set of widgets, opinionated code structure, etc) however there are cons like the produced DOM. That DOM may be bloated for your use but when you flex the full functionality of the framework, that "bloat" isn't actually bloat. I bet you don't use every feature of Microsoft Word but still use it (and yes, I'm sure still holds true for OpenOffice etc). But with Ext JS, you don't have to build and maintain the set of widgets which can quickly get expensive and risky of developer lock-in and supporting all the features it does and configurations developers need it to support for the vast difference of applications out there, that "bloat" is needed. And I'll be honest again, I'm sure not all the bloat is necessary, I'm sure there are opportunities for improvement but it wouldn't be night and day I'm sure.

It really shouldn't be React vs Ext JS as either will win for what either attempts to fulfill. Each project should determine which thing it should use. You cannot say:

I want to have all these features built-in but still be lightweight.

You cannot have both. You cannot make a truck be as fast as a sports car but still be as lightweight as the car. I know, I'm analogy full today.

avatar
Written by Mitchell Simoens who is a long time nerd developing software and building computers and gadgets. Anything expressed on this website are Mitchell Simoens's alone and do not represent his employer.
© Copyright 2023 Mitchell Simoens Site