与所有的节点JS框架/库等周围的困惑 [英] Confused with all the Node JS frameworks/libraries etc. around

查看:109
本文介绍了与所有的节点JS框架/库等周围的困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感觉有点混乱,有这么多的框架在那里为Node.js的有关东西。会有人能够给我的概况
- 以下库/框架/不管涉及/如何互相影响
- 包含的内容还是什么的主要目的是为他们每个人?
- 它们之间的差异

I'm feeling a bit confused, there are so many frameworks out there for Node.js related 'stuff'. Would someone be able to give me an overview of - how the following libraries/frameworks/whatever relate/interact with each other - what's included or what the main purpose is for each of them? - differences between them

另外,如果有,我离开了我的列表中的任何人,随意添加他们和他们是什么样的描述以及它们如何适应了。

Also, if there are any others I've left off my list, feel free to add them and a description of what they are and how they fit in too.


  • 节点

  • 的CoffeeScript

  • 骨干

  • 防爆preSS

推荐答案

你们中的大多数列出的东西,只是因为他们都写在或以其它方式使用JavaScript是相关的。比较它们很像是比较苹果和橘子。这就像问有什么区别一个丰田佳美和V6发动机之间。他们是相关的,但做不同的事情。

Most of the things you listed are related only because they are written in or otherwise use JavaScript. Comparing them is much like comparing apples to oranges. It's like asking what the difference is between a Toyota Camry and a V6 engine. They are related, but do different things.

节点

又名Node.js的,节点是在其上我们运行服务器端JavaScript code中的JavaScript环境。它是基于 V8 JavaScript引擎。所有你写,或者安装并从NPM,GitHub上,等包运行的JavaScript code是由节点运行时环境中执行。

Also known as Node.js, Node is the JavaScript environment on which we run our server-side JavaScript code. It is based on the V8 JavaScript engine. All of the JavaScript code you write, or install and run from packages from NPM, GitHub, etc. is executed by the Node runtime environment.

的CoffeeScript

的CoffeeScript 是,简单明了,即编译成的Ja​​vaScript编程语言。它的目的是揭露的JavaScript的所有的力量在一个简单的方法。重要的是要记住,当你运行它的CoffeeScript code只是被编译为JavaScript是很重要的;差异是纯粹的语法。它的网站有更多的信息。

CoffeeScript is, plain and simple, a programming language that compiles down to JavaScript. Its purpose is to expose all the power of JavaScript in a simpler way. It's important to keep in mind that all CoffeeScript code just gets compiled to JavaScript when you run it; the differences are purely syntactical. Its website has much more information.

骨干

骨干可以比喻为一个的模型 - 视图 - 控制器的JavaScript框架。我相信它最初是为浏览器写的;它有助于保持你的客户端JavaScript清洁通过实施最常见的MVC模式(以及其他几件事情),让您的更容易您的客户端JavaScript连接您的服务器端code。

Backbone can be likened to as a Model-View-Controller framework for JavaScript. I believe it was originally written for the browser; it helps keep your client-side JavaScript clean by implementing most common MVC patterns (as well as a couple other things), allowing you to more easily connect your client-side JavaScript to your server-side code.

前preSS

防爆preSS 是对Node.js的建立在的Connect 的。它在许多方面类似于西纳特拉为Ruby。它可以让你轻松地创建带有路由,布局/谐音/视图,会话和更多的网站。有很多的防爆preSS第三方模块,使它pretty容易得到正是你需要的那种栈。

Express is a web framework for Node.js built on Connect. It is similar in many aspects to Sinatra for Ruby. It allows you to easily create web sites with routing, layouts/partials/views, sessions, and more. There are a lot of third-party modules for Express, making it pretty easy to get exactly the kind of stack you need.

有一吨的模块,在那里为节点;截至记者发稿, NPM 拥有超过3000发布的数据包,以及甚至包括最流行的将需要一定的时间!请务必给NPM或模块列表页面看看你需要解决的新问题,以避免发明的任何时间车轮(除非你想学到很多轮。)

There are a ton of modules out there for Node; as of this writing, NPM has over 3,000 published packages, and covering even the most popular ones would take some amount of time! Be sure to give NPM or the module list page a look any time you need to solve a new problem to avoid inventing the wheel (unless you want to learn a lot about wheels. :)

这篇关于与所有的节点JS框架/库等周围的困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆