不知道 JavaScript 可以学习 Node.js 吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17542147/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to learn Node.js without knowing JavaScript?
提问by Yusuf X
I am a beginner and i am trying to learn Node.js.
我是初学者,我正在尝试学习 Node.js。
- is it absolutely necessary to know JavaScript to master Node.js?
- I did tried execute some programs of Node.js on my local-host and server, so I am really beginning to like Node.js
- I have executed programs like Hello World, writing and reading a file, starting a server, etc.
- 掌握 Node.js 是否绝对有必要了解 JavaScript?
- 我确实尝试在我的本地主机和服务器上执行一些 Node.js 程序,所以我真的开始喜欢 Node.js
- 我已经执行过像 Hello World 这样的程序,写入和读取文件,启动服务器等。
I know Node.js works on JavaScript. I know some basics of JavaScript, but do I need to have deep knowledge of JavaScript?
我知道 Node.js 适用于 JavaScript。我知道一些 JavaScript 的基础知识,但是我需要对 JavaScript 有深入的了解吗?
回答by zneak
This is like saying, "do I need to learn French to be able to sing French songs"? Well, you can just learn the words and how to say them, but you won't be able to make any French song yourself if you don't know French.
这就像在说,“我需要学习法语才能唱法语歌曲吗”?好吧,您可以只学习单词和如何说它们,但是如果您不会法语,您将无法自己制作任何法语歌曲。
And I'm really comparing song composition to programming. You can copy and paste stuff into Javascript files without knowing what it really does, but it doesn't help you do something yourself.
我真的将歌曲创作与编程进行了比较。您可以在不知道其真正作用的情况下将内容复制并粘贴到 Javascript 文件中,但这并不能帮助您自己做某事。
In the end, yes, you need to know the language you're working with if you want to build anything. You don't need to be all-knowing to get started, though. If you try to understand what you're doing, you'll most certainly learn stuff along the way.
最后,是的,如果你想构建任何东西,你需要知道你正在使用的语言。不过,您无需无所不知即可开始。如果您尝试了解自己在做什么,那么您肯定会在此过程中学到东西。
回答by Yusuf X
I suggest you spend a little time learning the basics of Javascript (there's not much to it), and then jump right into node.js and start writing sample apps. Most of the concepts you need to learn for node.js come from the standard ys1382-code-learning-process (tm):
我建议您花一点时间学习 Javascript 的基础知识(没有太多内容),然后直接进入 node.js 并开始编写示例应用程序。你需要为 node.js 学习的大部分概念来自标准的 ys1382-code-learning-process (tm):
- read a tutorial, understand maybe 10%
- download the tutorial's final code, without bothering to go through all the steps
- try modify the tutorial code to do something a little different, without breaking everything
- write your own trivial app, with lots of googling.
- ?
- profit
- 看教程,大概懂10%
- 下载教程的最终代码,无需费心完成所有步骤
- 尝试修改教程代码以做一些不同的事情,而不会破坏一切
- 编写您自己的微不足道的应用程序,并进行大量的谷歌搜索。
- ?
- 利润
At least that's what works for me.
至少这对我有用。
回答by YCotov
If you never had any knowledges in programming, then i agree with zneak. And if you know already other programming languages C or C# or Java, then yes, you can.
如果你从来没有任何编程知识,那么我同意 zneak。如果您已经了解其他编程语言 C 或 C# 或 Java,那么是的,您可以。