TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ComponentKit by Facebook: A React-Inspired View Framework for iOS

149 点作者 saniul大约 10 年前

14 条评论

i_s大约 10 年前
This technology looks great.<p>It is too bad Facebook doesn&#x27;t have their own platform like iOS or Android. It&#x27;s becoming pretty clear that they have a much better handle on UI technology than Apple, Google, Microsoft, or anyone really. Them creating a logical functional UI API on top of messy imperative APIs is very helpful, but even better would be if that was not necessary.
评论 #9267823 未加载
评论 #9267794 未加载
评论 #9269109 未加载
评论 #9267706 未加载
评论 #9268412 未加载
评论 #9267753 未加载
bsimpson大约 10 年前
&gt; (Don&#x27;t confuse ComponentKit with React Native, a framework for building apps in Javascript.)<p>As long as they can&#x27;t describe it without citing React, this is going to confuse people. At the very least, the logline should mention Obj-C&#x2F;Swift&#x2F;Cocoa to differentiate the projects.
评论 #9269112 未加载
评论 #9270742 未加载
natch大约 10 年前
This looks really cool.<p>However, there were a couple odd things about the talk. If you&#x27;re going to spend so much time talking about managing mutation of data in a multithreaded environment, you should at least mention GCD and explain why it doesn&#x27;t figure in the list of possible solutions to the problem. But the talk proceeded as if GCD did not exist, listing a few straw man bad solutions, but not the obvious go-to solution, GCD. Does the team consist of outsiders to the platform?<p>Similarly with Auto Layout. Why no mention? Very odd.<p>It sounds like the back story might be (just smelling this, no proof) that the developers are really smart, but were making the classic mistake of fighting the frameworks, and not having a good time, rather than learning the recommended way (GCD, Auto Layout, etc.) since they came from other backgrounds. Basically it&#x27;s NIH syndrome.<p>Fortunately, what they came up with does look very nice... I can&#x27;t wait to try it out. But I wish I knew what they would have to say about working WITH the frameworks that are provided, with tools like GCD and Auto Layout... how do those not solve these problems?
评论 #9269984 未加载
评论 #9268341 未加载
评论 #9270772 未加载
Osmium大约 10 年前
Interesting justification of their choice of Objective-C++ here:<p><a href="http://componentkit.org/docs/why-cpp.html" rel="nofollow">http:&#x2F;&#x2F;componentkit.org&#x2F;docs&#x2F;why-cpp.html</a><p>Anyone else have an opinion on this? Seems unusual for a iOS framework, especially going forward, but the reasons sound sensible enough.
评论 #9267277 未加载
评论 #9267468 未加载
评论 #9267285 未加载
aboodman大约 10 年前
Man, Facebook is just crushing it with the open source UI libraries recently.
giulianoxt大约 10 年前
Great initiative by the Facebook team. Anyone knows if there&#x27;s a similar framework for Android? (declarative description of the UI, rendering based on immutable models, single data flow, etc)
评论 #9266894 未加载
sam-mueller大约 10 年前
I like the steady stream of innovative projects coming out of facebook as of late, but I can&#x27;t help but feel like there&#x27;s quite a bit of overlap in their initiatives. Just the fact that there&#x27;s a footnote about how this isn&#x27;t react-native illustrates my sentiments exactly.
评论 #9266963 未加载
评论 #9267307 未加载
RussianCow大约 10 年前
This is a great idea, but the fact that it&#x27;s implemented in Objective-C++ is a deal-breaker for me since I&#x27;m starting to use Swift in my iOS projects. From the docs:<p>&quot;ComponentKit is built on Objective-C++. There is no easy way to interoperate with Swift since Swift cannot bridge to C++.&quot;
评论 #9266913 未加载
评论 #9268585 未加载
评论 #9268873 未加载
ics大约 10 年前
For all those focusing on the Objective-C++ aspect, I suggest watching the talk.<p><pre><code> - Faster (potentially? actually?) - Safer, because Objective-C gives too many chances to crash at runtime - They &quot;can&#x27;t wait&quot; to port to Swift, so don&#x27;t fret.</code></pre>
chuckcode大约 10 年前
Not sure if I feel jealous or aghast that they are going to rewrite everything because apple launched swift... Must be amazing to work someplace with those kinds of developer resources
perishabledave大约 10 年前
For those interested, Facebook had a good talk about this at Scale 2014: <a href="https://www.youtube.com/watch?v=XhXC4SKOGfQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=XhXC4SKOGfQ</a><p>[edit] I just realized the video is linked on the front page of the frameworks website.
EGreg大约 10 年前
Is MVC really as bad as all that?<p>I lost him when he quickly breezed through suddenly adding more arrows in all directions on the screen. Why would an inner View updating its height trigger a change to the Model?
joshuak大约 10 年前
Anyone have a sense of how this compares with QML? QML is declarative (comparable?), and is cross platform which seems better out of hand.
hartator大约 10 年前
Is this react native or is it a side project?
评论 #9266834 未加载
评论 #9268636 未加载