我需要一个用于学习Java的集成开发环境(IDE)吗?

huangapple go评论107阅读模式
英文:

Do I need an IDE for Java in order to learn Java?

问题

我对Java还很陌生,无法执行最简单的代码。我需要一个集成开发环境(IDE)吗?还是有其他替代方法?我使用的是MacOS。

英文:

I am new with Java and unable to execute the simplest code. Do I need an IDE for that or are there alternatives? I am on MacOS.

答案1

得分: 1

你一开始完全不需要集成开发环境(IDE)。只需一个文本编辑器和Java环境,以及提供开发工具。IDE只是一个方便的工具,可以在以后使你更加高效和有条理,但在刚开始时可能会非常复杂和分散注意力。分散注意力会减少你专注于学习实际内容的时间。

你无法在没有IDE的情况下运行基本代码,这说明你还不适合使用IDE。

首先,从命令提示符/终端(取决于你的操作系统)开始。

javac MyFirstJavaProgram.java

这是构建代码所需的全部,然后使用以下命令运行它:

java MyFirstJavaProgram

实际上,IDE基本上也是执行相同的操作,但是你有一个按钮和一些参数(取决于项目),对于刚开始不是真正必需的。

英文:

You don't need an IDE at the beginning at all. Just a text editor and the Java environment with the dev tools it provides. And IDE is just a convenience thing that will make you more productive and organized later on but can be really overwhelming and distracting at the beginning. Distractions eat away from your time to concentrate on learning the actual thing.

The fact that you are unable to run basic code without an IDE tells me you are not suited for an IDE.

Start with the just your command prompt/terminal (depends on your operating system).

javac MyFirstJavaProgram.java

is all you need to build your code and then run it using

java MyFirstJavaProgram

The IDE does the same thing basically but instead you have a button for this and that plus (depending on the project) it uses some arguments for the ´javacandjava` that you don't really need at the beginning.

答案2

得分: 0

一些流行的Java集成开发环境包括Eclipse、IntelliJ和VS Code。

英文:

Some popular IDE's for Java include Eclipse, IntelliJ and VS Code.

答案3

得分: -1

我同意@rbaleksandar的观点,但我认为如果你能够在手头的任务上(编写代码)真正集中注意力,那么集成开发环境是值得的,因为它会在这方面为你提供帮助,而无需担心代码的运行等等。只有在你确信可以专注于编写代码并忽略IDE的情况下,才请遵循这个建议;如果在使用过程中遇到任何问题,请立即停止使用,因为那只会浪费你的时间。如果你决定使用一个IDE,我推荐使用IntelliJ IDEA,但这取决于你自己的选择。

英文:

I agree with what @rbaleksandar has to say but I think that if you can focus really well on the task at hand (writing code) and IDE is worth it because it will assist you in doing that without having to worry about running code and so and so. Only follow this recommendation if you are SURE you can focus on writing code and ignoring the IDE and stop using it if you get any problems with it as it will just waste your time then. If you decide to use an IDE I recommend IntelliJ IDEA but that is up to you.

huangapple
  • 本文由 发表于 2020年6月29日 11:37:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/62630814.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定