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

查看:12
本文介绍了对周围的所有 Node 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.

  • 节点
  • 咖啡脚本
  • 主干
  • 快递

推荐答案

您列出的大部分内容都是相关的,只是因为它们是用 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,Node 是我们运行服务器端 JavaScript 代码的 JavaScript 环境.它基于 V8 JavaScript 引擎.您编写的所有 JavaScript 代码,或从 NPM、GitHub 等的包中安装和运行的所有 JavaScript 代码都由 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 是一种简单明了的编译成 JavaScript 的编程语言.它的目的是以更简单的方式展示 JavaScript 的所有功能.重要的是要记住,所有 CoffeeScript 代码在您运行时都会被编译为 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.

主干

Backbone 可以比作一个Model-View-Controller JavaScript 框架.我相信它最初是为浏览器编写的;它通过实现最常见的 MVC 模式(以及其他一些东西)来帮助保持客户端 JavaScript 干净,允许您 更轻松地将您的客户端 JavaScript 连接到您的服务器端代码.

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 是一个基于 连接.它在很多方面与 Ruby 的 Sinatra 相似.它允许您轻松创建具有路由、布局/部分/视图、会话等的网站.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.

Node 有大量的模块;在撰写本文时,NPM 已经发布了超过 3,000 个包,即使是最流行的包也需要一些时间时间!确保在需要解决问题时随时查看 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. :)

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

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