问题描述
正如标题所示,我刚刚收到节点。我已经看了一点,主要是通过观看上的视频,并给人留下了深刻的印象。然而,它让我想起了很多Rails。我一直觉得我从来没有真正理解当我与RoR合作时发生了什么。它结合了如此多的魔法,这真的让我不自信,把我推开了。我不需要去裸机,但我喜欢很好的了解工作方式。
可能只是我对翡翠和Sass的无知使得Express视频看起来像巫术。
可能相关:我已经使用JavaScript和一些库(jQuery,Dojo,Raphaeljs,ESRI)几年了,所以我不完全没有js。
Node.js自己是相当低的水平我建议您在开始。
Express建立在连接之上,所以如果你花了几天玩连接,然后升级表达你可以开始使用express
所有快递将从那里向您提供一个不错的路由API和视图引擎。
重要的是进入具有强大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.
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.
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!)
这篇关于只是拿起节点。我应该先使用快递还是真正学习节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!