简体   繁体   English

AirBnB node.js有多稳定?

[英]how stable is AirBnB node.js rendr?

I wanted to know if anyone has been using AirBnB Rendr and is it stable and ok to use in commercial projects or is it still changing a lot? 我想知道是否有人一直在使用AirBnB Rendr并且它是否稳定且可以在商业项目中使用,或者它是否仍在改变很多?

I'm developing a website which can run both client and server based, this mean I need to be able to render pages and widgets server and client based. 我正在开发一个可以运行基于客户端和服务器的网站,这意味着我需要能够基于服务器和客户端呈现页面和小部件。

The server is running Node.js, dust.js and has custom server based code to render the pages and widgets on the server side. 服务器正在运行Node.js,dust.js,并具有基于自定义服务器的代码,用于在服务器端呈现页面和小部件。 I need to pick how to handle it on the client side. 我需要选择如何在客户端处理它。 Naturally I want to try and not repeat code, but obviously the client is different I can: 当然我想尝试而不是重复代码,但显然客户端是不同的我可以:

  1. Keep my current page based server rendering and develop custom client side code. 保持我当前基于页面的服务器呈现并开发自定义客户端代码。
  2. Use backbone.js on client side and keep my server based code the same. 在客户端使用backbone.js并保持基于服务器的代码相同。
  3. Use AirBnB rendr that is based on Node.js and backbone to use the same code on client and o server. 使用基于Node.js和骨干的AirBnB rendr在客户端和服务器上使用相同的代码。 AirBnB Rendr Library AirBnB Rendr图书馆

I like the 3rd idea very much, but I'm looking for some input from you guys. 我非常喜欢第三个想法,但我正在寻找你们的一些意见。 Has anyone used it? 有人用过吗? any experience with it in terms of stability and/or how often their api changes etc? 在稳定性和/或他们的api变化频率等方面有任何经验吗?

I've just started playing around with Rendr. 我刚刚开始玩Rendr。 If I ignore the learning curve and oboarding friction, I like it a lot and I plan to write my next large production app using Rendr. 如果我忽略了学习曲线和忽视摩擦,我非常喜欢它,我打算用Rendr编写我的下一个大型制作应用程序。

Unfortunately, as bababa listed above, the documentation needs a lot of work. 不幸的是,正如上面列出的bababa,文档需要大量的工作。 There is an explanation of how Rendr works in its README and the example app's README but beyond that you'll need to source dive in order to figure out how the gears are turning. 有关Rendr如何在其自述文件和示例应用程序的自述文件中工作的解释,但除此之外,您需要获取潜水源以了解齿轮如何转动。 Currently, there is no forum for questions (other than stack overflow :D) and I've had a hard time figuring out its idioms on my own. 目前,没有问题的论坛(除了堆栈溢出:D),我很难自己找出它的习语。

Despite all the struggles, I finally see the light and I'm starting to understand why Rendr is so powerful. 尽管经历了所有的挣扎,我终于看到了光明,我开始明白为什么Rendr如此强大。

tl;dr - If you're willing to source dive and figure out your own workflow, I would suggest using Rendr. tl; dr - 如果您愿意采购潜水并找出自己的工作流程,我建议使用Rendr。 Otherwise, I would recommend going old school by writing a traditional client app with a more mature library. 否则,我建议通过编写一个更成熟的图书馆的传统客户端应用程序来上学。 (is it too early to say that? =X) (现在说这个还是太早了吗?= X)

Well given AirBnb is a successful commercial enterprise, there's some validation that the library works well enough for them. 鉴于AirBnb是一个成功的商业企业,有一些验证,该库适用于他们。 This question is probably best answered by watching their github commit log for breaking changes. 通过观察他们的github提交日志来破坏更改,这个问题可能是最好的答案。 Given backbone is 1.0 and essentially stable at this point, rendr will probably quickly stabilize, but honestly your fear of instability is probably unjustified. 鉴于骨干为1.0并且此时基本稳定,rendr可能会很快稳定下来,但老实说,你对不稳定的恐惧可能是不合理的。 I think rendr looks compelling and although my current project is using a very similar home-grown solution, I would consider using rendr in a future project or even porting our code to rendr . 我认为rendr看起来引人注目,虽然我目前的项目使用的是非常类似的本土解决方案,但我会考虑在未来的项目中使用rendr ,甚至将我们的代码移植到rendr "Stability" per say is much less important to the web development community compared to other situations like packaged or embedded software. 与其他情况(如打包或嵌入式软件)相比,“稳定性”对于Web开发社区而言并不那么重要。

I used (tried to use) and Rendr on a project and gave up. 我在项目中使用(试图使用)和Rendr并放弃了。 There are just to many limitations (currently) and the lack of documentation doesn't help. 目前存在许多限制,缺乏文档也无济于事。 I ended up need to rewrite the source code to accomplish some things I would consider trivial with other frameworks, such as passing multiple collections to a view. 我最终需要重写源代码来完成一些我认为对其他框架微不足道的事情,比如将多个集合传递给视图。 It just wasn't possible (at the time I used it) and that was a deal breaker. 这是不可能的(当时我使用它),这是一个交易破坏者。 Not being able to pass a collection of categories and results to a page was to much of a limitation. 无法将类别和结果的集合传递给页面是一个很大的限制。

I have no doubt it will eventually be ready for production use, but right now I would say unless you are an engineer at AirBnb and know how to hack the source then no, it's not ready. 我毫不怀疑它最终会为生产使用做好准备,但是现在我要说除非你是AirBnb的工程师并且知道如何破解来源然后没有,它还没准备好。

If you really want to know if it will work for your needs, take a look at the issue list on github. 如果您真的想知道它是否适合您的需求,请查看github上的问题列表 That will give you a good idea where the projects at. 这将让你很好地了解项目的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM