5 ms·
Front-end has gone completely off the deep end. I'm looking at the source code and there must be 4 or 5 dozen modules, totally 5.1kb gzipped! And as far as I ca
by Touche 7y ago
Front-end has gone completely off the deep end. I'm looking at the source code and there must be 4 or 5 dozen modules, totally 5.1kb gzipped! And as far as I can tell all it does is copy el.value onto an object.
What ever happened to care in our profession? What happened to putting the users first? If you are adding 5kb of overhead to your website for this, it is criminal malpractice.
- armatav 7y agoMate most websites are shoving MBs down your throat, I’ll gladly take 5kb zipped for a better developer experience.
- Touche 7y agoIf doing `obj.firstName = el.value` is too bad of an experience for you that you need to add 5kb to make it better you're going to get to that MBs pretty quickly.
- bluebill1049 7y agono comment...
- ivanhoe 7y agoThis is like saying that backend's gone crazy because people are loading MBs of frameworks just to print "Hello World" on the screen. Well, yes, but those are just examples, they're meant to be simple to understand, not a realistic use case. React is a tool for building complex web apps and in RL such app would do a lot more things and then it'd start to make a lot more sense using it. If you do something this simple, then by all means don't use it.
- Touche 7y ago> This is like saying that backend's gone crazy because people are loading MBs of frameworks just to print "Hello World" on the screen. They are not equivalent at all, you can add as much bloat as you want on your backend as long as you scale it. The cost is put on you. Front-end bloat directly affects the user. We used to justify every library addition, now people just add a library for every trivial task to make it slightly "nicer" as if that matters at all.
- ivanhoe 7y agoIssue here is with criticizing over-simplified Hello World examples for unnecessary "bloat" that is not really a bloat in real life. And people do add unnecessary libs in their code, I agree, but that's another story...
- softwarelimits 7y agoIt starts to feel webscale only with a K8S backend!
- robertoandred 7y agoI can tell you've never had to work with forms.
- shhshahassa 7y agoVery dramatic
- bluebill1049 7y agoI am not exactly sure what are you referring to, but I think this lib is pretty small compared with what is currently on the market, and I have tried my best, time and effort to keep the package as small and feature-rich as it can be, but I love constructive critisim and if you have better solution or reckon code can be improved, please submit a PR and it would do me a favor and also the rest of the community, because I built this not just me for but for other devs around the wrold. thanks
- quickthrower2 7y ago"It Depends" as always. They are already using React - that probably tells you something about the kind of site they are designing. Likely a very interactive web experience or even a SPA. It'll have image assets > 5kb, and probably 100k's of JS. The user needs to weigh up an extra 5kb vs. the developer utility of this.