74 points · by thmslee · 9y ago · 48 comments
Catering for a common configuration of modules allows the maintainer and contributors to make more assumptions. These assumptions allow them greater freedom to optimize performance and simplify interfaces.
Lego like frameworks have to be uber generic thus catering to theoretical computer science aesthetics rather than real world practical use cases.
if a developer wants to stray from the "recommended" path, they should do so at their own cost. The community should not belabor themselves to accommodate outliers.
maintaining these projects is really hard work.
Back in 2012, I remember when Backbone Marionette broke into pieces. It made "logical" sense, but the instances you'd actually want to pull in the event library without taking in Marionette is rare.
There's a certain sense you have to be tactical with decoupling stuff. I decouple front ends from libraries because I don't want my users to be forced to use my CLI front end when they just want an abstraction with minimal requirements.
I get away with it because there's 1 library and 1 frontend.
In JS, there's a front end, a library, and an extension marketplace that make you wonder what they were thinking when they were decoupled. Stuff like extract-text-webpack-plugin.
Guess what that plugin does: It allows you have your CSS show up as CSS files instead of JS. But the title denote that, (forget that fact you'd expect webpack to have such simple stuff in webpack itself.) It instead is "extracts text", despite the fact the convention of "text extraction" means nothing to web developers.
I could probably get something faster or smarter with Flask + sqlalchemy, etc, but it's going to require much more thought and overhead on my part, and ultimately take longer to maintain.
"Raw" react is perfectly OK, and react + hyperscript[0] is great.
Seems the preact author might want to consider marketing preact as not only the lighter weight alternative, but also the MIT licensed alternative to react (Although if more projects included that surprisingly controversial patent clause it would mark the end of software patents. Isn't that a good thing?)
The only thing we know about FB's patents is that using React means they won't sue you over patents covering React and they won't revoke the grant if you countersue (unless you countersue for patents you hold over React).
The entire hysteria seems to only be backed by armchair lawyering and open source purism (the latter of which is orthogonal to whether there is a legal risk or not). There are plenty of major corporations that likely hold an arsenal of patents who use React despite these concerns.
Unless you're an Apache project (and thus have to worry about open source purity) or a direct competitor who intends to sue people over patents (and thus have to worry about patent warfare), stop worrying about patent grants.
We are approached by a big company to buy our startup. In that case do they have the same limitation of not being able to sue Facebook? Do you think that Amazon or Google would be as happy buying your startup with React as without it? I was just wondering about this angle.
[1] (https://github.com/developit/preact/wiki/Differences-to-Reac...)
1. Preact eliminated white/black lists and uses regexes instead [1]. These lists take up huge amounts of space in React/ReactDOM [2].
2. No synthetic events, just native `addEventListener` [3].
3. Only target the DOM for rendering, no React Native to worry about.
4. Less invariants, error handling, and error messages
[1] https://github.com/developit/preact/blob/master/src/constant...
[2] https://github.com/facebook/react/blob/master/src/renderers/...
[3] https://github.com/developit/preact/blob/master/src/dom/inde...
If you're worried about having to sue Facebook, nothing stops Facebook from hitting you with patents covering Preact. However the patent grant does prevent them from hitting you with patents covering React if you use React and aren't suing over your own patents that cover React. You're even allowed to countersue them if they sue you first (again, as long as you don't countersue over React).
IOW if you're concerned about Facebook patents:
Preact: no protection
Angular, Vue, Ember: no protection
React: full protection as long as you don't sue them first and don't countersue over React patents
Unless you have inside knowledge of FB's full patent arsenal, using ANY code written by ANYONE puts you at risk of being sued. The only difference with React is that you actually know they can't sue you over that specifically.
Is this correct? The way I read it, it concerned any software patent
I don't think a general agreement to prevent any kind of lawsuit is completely legal and acceptable in a court of law.
Depends on the ruling of use of open source code that is in a way productized. Also depends on if Preact's implementation is sufficient to infringe on React's patents (if they have any weight to them that is and are upheld)
Its not a random library, its extremely similar to React.