只是拿起节点。我应该先使用快递还是真正学习节点? [英] Just picking up node. Should I use express or really learn node first?

查看:107
本文介绍了只是拿起节点。我应该先使用快递还是真正学习节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所示,我刚刚收到节点。我已经看了一点,主要是通过观看 expressjs.com 上的视频,并给人留下了深刻的印象。



然而,它让我想起了很多Rails。我一直觉得我从来没有真正理解当我与RoR合作时发生了什么。它结合了如此多的魔法,这真的让我不自信,把我推开了。我不需要去裸机,但我喜欢很好的了解工作方式。



可能只是我对翡翠和Sass的无知使得Express视频看起来像巫术。



可能相关:我已经使用JavaScript和一些库(jQuery,Dojo,Raphaeljs,ESRI)几年了,所以我不完全没有js。

解决方案


我不需要下来裸机
但我喜欢有一个良好的感觉
如何/为什么工作他们的方式。


Node.js自己是相当低的水平我建议您在开始 c> c>连接



Express建立在连接之上,所以如果你花了几天玩连接,然后升级表达你可以开始使用express



所有快递将从那里向您提供一个不错的路由API和视图引擎。


可能相关:我已经使用
JavaScript和一些库(jQuery,
Dojo,Raphaeljs,ESRI)几年
现在我不完全是js
uninitiated。


重要的是进入具有强大JavaScript技能的节点,因为它使学习曲线更易于管理。要学习的重要事情是编程的异步风格(而不是使你的代码乱七八糟)。


As the title stated, I'm just now picking up node. I've looked into Express a little, mostly by watching the videos on expressjs.com, and was pretty impressed.

However, it reminded me a lot of Rails. I always felt like I never really understood what was going on when I worked with RoR. It incorporated so much magic that it really made me unconfident and pushed me away. I don't need to get down to bare metal but I like to have a good sense of how/why things work they way the do.

It's possible just my ignorance of Jade and Sass made the Express videos look like wizardry.

Possibly pertinent: I've worked with JavaScript and some libraries (jQuery, Dojo, Raphaeljs, ESRI) for a few years now so I'm not completely js uninitiated.

解决方案

I don't need to get down to bare metal but I like to have a good sense of how/why things work they way the do.

Node.js on its own is quite low level. I do recommend you spend a day playing around with the http module on its own before moving onto connect.

Express builds on top of connect so if you spend a few days playing around with connect and then "upgrade" to express you can start using express without feeling like it's doing all kinds of magic.

All express will offer you from there onwards a nice routing API and a view engine.

Possibly pertinent: I've worked with JavaScript and some libraries (jQuery, Dojo, Raphaeljs, ESRI) for a few years now so I'm not completely js uninitiated.

It's important to come into node with strong JavaScript skills because it makes the learning curve a lot more manageable. The important thing to learn is the asynchronous style of programming (and not making a mess of you code!)

这篇关于只是拿起节点。我应该先使用快递还是真正学习节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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