刚刚拾取节点。我应该先使用express还是真正学习node?
正如标题所述,我现在刚刚拿起节点。我对 Express 有过一些了解,主要是通过观看 expressjs.com 上的视频,印象深刻。
不过,它让我想起了很多 Rails。我总觉得我从来没有真正理解我与 RoR 合作时发生的事情。它蕴含了如此多的魔力,实在让我不自信,把我推开。我不需要深入研究裸机,但我喜欢很好地了解事物如何/为什么如此运作。
可能只是我对 Jade 和 Sass 的无知,才让 Express 视频看起来像魔法一样。
可能相关:我使用 JavaScript 和一些库(jQuery、Dojo、Raphaeljs、ESRI)已经有几年了,所以我对 js 并不是完全陌生。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Node.js 本身的水平相当低。我确实建议您先花一天时间单独研究一下
http
模块,然后再继续connect。Express 建立在 connect 之上,因此如果您花几天时间尝试 connect,然后“升级”到 Express,您就可以开始使用 Express,而不会感觉它在发挥各种魔力。
All Express 将从那里开始为您提供一个很好的路由 API 和一个视图引擎。
拥有强大的 JavaScript 技能进入 Node 非常重要,因为它使学习曲线更容易管理。需要学习的重要一点是异步编程风格(并且不要把代码搞得一团糟!)
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!)
我想说,首先学习 node.js 绝对值得。我正在自学,刚刚完成了本教程,发现它非常有帮助...
http://nodebeginner.org
这个视频教程非常漂亮也有帮助。
现在我正在阅读这本书: Hands-On Node.js (通过 PC Kindle 应用程序)。
此主题中的更多资源。
I would say it's definitely worth learning node.js first. I'm learning myself and just went through this tutorial and found it very helpful...
http://nodebeginner.org
This video tutorial was pretty helpful also.
Right now I'm going through this book: Hands-On Node.js (via the PC Kindle app).
More resources in this topic.
我建议阅读操作方法网站和演示集合:
http://howtonode.org/
https://github.com/straps/nodejs-demos
JsConf 也有非常好的幻灯片会议上有一些 Nodejs 示例,您可以在此处找到幻灯片列表:
https://gist.github.com/960104
I suggest to read how-to sites and demos collection:
http://howtonode.org/
https://github.com/straps/nodejs-demos
There are also very good slides from JsConf conference with some nodejs examples, you can find list of slides here:
https://gist.github.com/960104