by davideschiera on 1/28/16, 3:34 PM with 134 comments
by Cartwright2 on 1/28/16, 8:51 PM
Yes, it stands to reason that if you take framework X, cut out a lot of functionality, remove some of the "ugly" code that addresses edge cases, then you end up with a similar, reduced framework which is smaller in file size.
But this is done at the cost of polluting the Javascript framework environment. The biggest problem right now is pollution, we're all drinking from the fire hose of frameworks and someone needs to cut the supply so we can double-down on the good stuff and stop jumping from one framework to the next like a plastic bag caught in a strong breeze.
Preact is now a decision point for any developer who Googles "react alternative" and scans far enough through the search results. This isn't right. This contributes to decision fatigue. It's time to stop churning out new frameworks that are only marginally different from what's already available.
by udp on 1/28/16, 5:17 PM
I'm using mercury [0] in my current frontend project for this purpose. Most of the features of React, none of the commitment. Every single component is interchangeable; the core repository is simply an index.js requiring other modules, which can be depended on individually if you're not looking for a kitchen sink solution.
by rygine on 1/29/16, 1:00 AM
However, I completely disagree that Preact is a "React alternative." React is not simply a bunch of code. It's an entire ecosystem with a large community supported by a well-funded entity. A lot of these new libraries and/or frameworks popping up seemingly every other week and claiming to be an alternative to X are just not up to par with the competition and/or the expectations of developers.
Whenever I see something new on the radar, I look at the documentation and commit history. Anything unproven without good documentation, examples, unit tests and/or performance tests is just ignored. If I really like the concept, I'll bookmark it and check on it periodically.
by losvedir on 1/28/16, 4:34 PM
by jallmann on 1/28/16, 5:47 PM
How is writing "class Blah extends Component { ... }" any better than "Blah = Preact.createComponent({ ... })", except to save a few keystrokes?
ES6 is full of syntactic sugar to improve readability, but classes substantially increase the "surface area" of the language for... what benefit? Static analysis and tooling, maybe? In that case, why not wait until ES7 is fully baked to build interesting features around the type system, instead of making yet another Java derivative...
by levisegal on 1/28/16, 4:13 PM
by dchest on 1/28/16, 5:01 PM
by holic on 1/28/16, 4:28 PM
by rpedela on 1/28/16, 4:11 PM
by corywatilo on 1/28/16, 6:14 PM
preact.com
by girvo on 1/28/16, 11:02 PM
[0] https://github.com/creationix/domchanger
[1] https://github.com/jesseskinner/hoverboard
[2] https://github.com/girvo/domchanger-hoverboard-flux-challeng...
by lhorie on 1/29/16, 1:00 AM
by igl on 1/29/16, 12:06 AM
Is there a 1k-React challenge going on?
by ivanceras on 1/28/16, 5:44 PM
by kansface on 1/28/16, 10:53 PM
> Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015.
I understand building a faster React, an easier to use React (forms are a nightmare), but a smaller React? We are talking about saving on the order of 30kb. This doesn't even matter on mobile. Can anyone give me a compelling use case?
by nnx on 1/29/16, 12:54 AM
by mikemikemike on 1/29/16, 7:35 AM
by fibo on 1/29/16, 8:39 AM
by amelius on 1/28/16, 9:34 PM
by elcct on 1/28/16, 10:38 PM
by harryf on 1/28/16, 4:50 PM
If I was recommending a development path to a young developer I would have to say choose the "dark side" and become an app developer and let Apple / Google feed you your framework. Don't waste your time on the web - you'll waste your life learning this weeks flavor of the month framework while lacking core understanding of the underlying technology ( https://wdrl.info/archive/121 ) and never seeing your code amount to anything but a series of band aid and kludges.
by eddd on 1/28/16, 11:23 PM
I meant to troll, sorry.