r/learnjava • u/[deleted] • Jul 09 '16
Learning Java, is the superintelligent ide hamstringing my learning? (x-post r/learnprogramming)
I first started learning programming with CS50 and when learning C there really wasn't an ide for that, closer to a basic text editor. I'm learning Java right now and using Intellij. I'm wondering if it's intuitiveness, autocomplete, and other automated features might be preventing me from learning the basics. They always say repetitiveness is the way you learn, and I'm afraid that the ide is doing too much of the work for me. On the other hand, it's not like these types of features are going to disappear anytime soon, so they will always be "helping" me no matter how in depth I get into programming... Thoughts?
2
u/pokemaster787 Jul 09 '16
Some purists will tell you to write only in Notepad.
Don't do that.
We developed IDE's for a reason. They're hella useful and make development exponentially simpler, even just for typing simple things.
Understand the concepts and the general syntax. Java has a shitton of default classes and methods and you are not expected (nor should you try) to memorize them, the IDE does that for you. Don't remember a method name exactly, but you know it's in Math? Type Math. And a list of methods will pop up, starting with most to least used.
IDE's are helpful, don't torture yourself by writing in notepad and searching through the Java documentation all day long for that one method you need.
The IDE becomes an issue when you are just blindly allowing it to "fix" things for you. If the IDE gives an error, and a suggestion that fixes it, do not just accept the suggestion and move on with your life.
Understand why the suggestion works and yours doesn't. Look it up. Don't blindly use the IDE to write code for you, use it as a tool for your learning and development.
2
u/WhiteHorseTito Jul 09 '16
IntelliJ is by far the most complete IDE and when you start using things like Maven it will become part of your daily life. However this is provided that you have enough classes in your project that it makes sense to use IntelliJ because it's better suited for having efficiency and a clean setup when working with large projects. When I started learning I stuck to Sublime Text and I would only compile two or three classes at the most through the terminal, but within 6 months I began moving towards NetBeans and Eclipse, and finally in my work I strictly use IntelliJ. What makes IDE's good is the amount of documentation and usage purposes they have on each class you declare. Maybe you should install Eclipse and when you have a more rounded foundation move on to IntelliJ and you can start using Spring, Maven, Node, and many other tools that IntelliJ is great at implementing.
1
u/Spirouac Jul 09 '16
If you think it is, there is no reason why you can't write java in a text editor like notepad++.
Only experience I've had so far with Java IDE's making it somewhat less intuitive is when I'm setting up command line arguments.
As for autocomplete and all that jazz. You can probably turn it off in your IDE settings.
But if you already know most of the fundamentals from C, they will carry over to Java. So you can start concentrating on OOP styles.... least that's my two cents as a fellow beginner.
1
u/KamiKagutsuchi Jul 09 '16
No they dont. However I will say, that you should learn how to use the java tools (java compiler and vm to compile and run programs) from the command line. Because one day you will find yourself in need of sshing into a server and compiling and running a program there.
1
u/reikj4vic Jul 10 '16
I went from C++ to Java a couple months ago. Pick up a basic text editor (Sublime Text comes highly recommended), open up the Command-Line/Powershell/Bash-Shell (Java makes this easy, you only need two commands to get started) and start typing away. No auto-complete or auto-import means that you have to be intensely conscious of what you are doing and, as a consequence, how things work. You learn more this way.
When you've got the fundamentals down solid, move on to an IDE for bigger projects.
3
u/TheReviewNinja Jul 09 '16
I'd say auto-completing helps you concentrate on the algorithm of the programming, rather on making sure that you don't make "grammatical" mistakes; especially if you class, method, variable etc. names are very long.