与所有Node JS框架/库等混淆 [英] Confused with all the Node JS frameworks/libraries etc. around

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

问题描述

我感觉有点困惑,有很多框架在Node.js相关的东西。有人能够给我一个
的概述 - 以下图书馆/框架/相互之间的相互关系/相互作用
- 包含哪些内容或主要目的是什么?
- 他们之间的差异



此外,如果有其他任何人已经离开我的列表,请随意添加他们,并说明他们是什么




  • 节点

  • Coffeescript

  • 骨干

  • 快递


解决方案

你所列出的东西只是因为它们是用JavaScript写的或以其他方式使用的。比较它们就像比较苹果和橘子。这就像询问丰田凯美瑞和V6发动机之间的区别是什么。



节点



也称为Node.js,Node是我们运行服务器端JavaScript代码的JavaScript环境。它基于 V8 JavaScript引擎。所有您编写的JavaScript代码,或从NPM,GitHub等的安装和运行都由Node运行时环境执行。



CoffeeScript



CoffeeScript 是,简单而简单的编译语言,可以编译成JavaScript。其目的是以更简单的方式公开JavaScript的所有功能。重要的是要记住,在运行它时,所有的CoffeeScript代码都被编译成JavaScript;差异纯粹是语法的。它的网站有更多的信息。



骨干



Backbone 可以比作为 Model-View-Controller JavaScript框架。我相信它最初是为浏览器编写的;它有助于通过实现最常见的MVC模式(以及其他一些事情)来保持客户端JavaScript的清洁,从而允许您更容易地将您的客户端JavaScript连接到服务器端代码。



快递



Express 是基于 Connect 构建的Node.js的Web框架。在许多方面与Ruby的 Sinatra 相似。它允许您轻松创建具有路由,布局/部分/视图,会话等的网站。 Express有很多第三方模块,可以很容易地获得所需的堆栈类型。






<对于Node,有一大堆模块;在撰写本文时, NPM 具有超过3000个已发布的软件包,甚至涵盖最受欢迎的软件包将需要一些时间!一定要给出NPM或模块列表页面,任何时候你需要解决一个新的问题,以避免发明的轮子(除非你想了解很多关于车轮。)


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.

  • Node
  • Coffeescript
  • Backbone
  • Express

解决方案

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

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 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.

Backbone

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.

Express

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.


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. :)

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

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