<p>Similar to @ncmathsadist, I use both command-line environments and IDEs, and I have only found them enhancing each other.  We do most of our work in IDEs, but a few assignments are done in CLIs every year to ensure that students slowly gain some familiarity with those environments.</p>

<p>Reasons for IDEs:</p>

<ol>
<li>Convenience</li>
<li>Easy integration with GitHub</li>
<li>Error highlighting (though I <a href="https://cseducators.stackexchange.com/a/78/27">have some issues</a> with this)</li>
<li>Ease with packages and project integration</li>
</ol>

<p>Reasons for CLIs:</p>

<ol>
<li>There are still plenty of important computing platforms (including both iOS and Windows!) that ultimately reduce down to CLIs.</li>
<li>Good luck explaining the <strong>string[] args</strong> in <code>public static void main(String[] args)</code> if students don't have any experience in CLIs.</li>
<li>Even a little POSIX familiarity goes a long way.</li>
</ol>

CC BY-SA 3.0
2017-05-26T11:09:44.287Z
Oh. wow CLIs number 2 is very interesting. I'll remember that for when I need to explain it. Thanks
ItamarG3
CC BY-SA 3.0
2017-05-25T19:16:06.320Z
2017-05-25T19:42:07.640Z
2017-05-25T19:42:07.640Z
Ben I.
<p>With respect to APCS-A there won't be a difference. </p>

<p>Personally, I'm not overly fond of IDEs or one trick pony environments so I've encouraged our students to use an editor. I'm an Emacs wonk but the kids also use Vim, Sublime, DrJava (which is a lightweight IDE) and more.</p>

<p>In APCS-A they won't be getting to HUGE programs and to be honest, in my experience, an IDE like Eclipse provides too much and is too cumbersome for APCS_A. </p>

<p>I obviously don't know much about your specific situation (you, your kids, etc) but my general recommendation for APCS-A would be:</p>

<ol>
<li>Start with a super simple IDE like Dr.Java</li>
<li>Possibly transition them to an editor which will serve them well no matter what language they develop in.</li>
<li>If you're going to use an IDE look at something reasonably lightweight like the JetBrains free stuff.</li>
</ol>

<p>I personally don't like BlueJ because while it's really nice for showing object relations the tool doesn't travel with them as they go beyond APCS-A and as I'm not a big OOP guy, I think it might push kids into thinking that every problem should be looked at an OO nail even more than APCS-A does regularly.</p>

<p>Another advantage about using the command line and less specific tools is that you can teach the kids more of what's really going on rather than having the IDE abstract it.</p>

CC BY-SA 3.0
2017-06-18T22:47:12.157Z
2017-06-18T22:47:12.157Z
Mike Zamansky
<p>Java's core, from my experience, is writing large (or many, or both <code>;)</code>) classes and files (whilst preserving <a href="https://en.wikipedia.org/wiki/SOLID_(object-oriented_design)" rel="nofollow noreferrer">SOLID</a> principles) and then running a rather complex program, composed of those classes. </p>

<p>Due to this, working only with a command-line environment is somewhat losing that part of java, and might damage the students' understanding of Java.</p>

<p>This being said, Java 9, which will soon be released, has <a href="https://en.wikipedia.org/wiki/JShell" rel="nofollow noreferrer">JShell</a>, which incorporates a command-line environment. So it will be a 2-in-1 package. There's a pre-release version available so that you can get familiar with it (and then with teaching it). But until it's released, in my opinion it's better to work in an IDE such as eclipse or IntelliJ.</p>

CC BY-SA 3.0
2017-05-25T10:09:13.153Z
2017-07-23T16:19:07.217Z
2017-07-23T16:19:07.217Z
ItamarG3
<p>Context: Over the past school year I spent a significant portion of my time preparing to teach AP CS A next year. From choosing textbooks to writing the College Board syllabus, I essentially started from scratch in designing my course. I'm pleased with all aspects of it as it currently stands, but there is one nagging element: the programming environment.</p>

<p>All students taking AP CS A next year have experience using Cloud9 because that's what we used for C/Python/HTML/CSS this year in AP CSP. Only in the last couple weeks did I discover how easy it is to install the JDK in a Cloud9 workspace and write, compile, and execute programs in Java from the command line. (I had read somewhere a while ago that Java and Cloud9 didn't play nicely.) I had been BlueJ all the way until that point, and I do still very much like BlueJ. However, not having taught the class before, only designed it, here's my (hopefully specific enough) question:</p>

<p><strong>Will students lose anything in their understanding of and proficiency with Java, especially in terms of the AP Exam, if the class only uses a command-line environment for program compilation and execution?</strong></p>

<p>There are many pros/cons to one IDE over another -- a topic which I think is too broad for this community. I just want to make sure, from those who have experience with this course, if there's something that the command-line environment lacks for students that an IDE like BlueJ doesn't lack. I don't want to end up doing students a disservice with respect to the objectives of the course based on this decision.</p>

<p>Edit: Cloud9 is a cloud-based IDE, which makes it ideal for my 1:1 Chromebook environment (however, I do have access to a PC lab for additional software, so that is not a restricting factor for me). As they define it, "Cloud9 combines a powerful online code editor with a full Ubuntu workspace in the cloud." You essentially get a text editor and a terminal for compiling and running programs. I've found that anything I can do via a Linux command line, I can do in Cloud9. It has a number of additional features that make it great for classroom use. I originally chose it because it's the environment used for the CS50 IDE. See more <a href="https://c9.io" rel="nofollow noreferrer">here</a>.</p>

CC BY-SA 3.0
2017-05-25T14:23:39.923Z
My students learn both a command line environment (javac/java) and they use an IDE (usually drJava although some migrate to NetBeans, IntelliJ, or Eclipse).  I don't know what you "lose" using the command line interface.
ncmathsadist
CC BY-SA 3.0
2017-05-25T19:18:58.263Z
When I was in HS, we used IDEs. One teacher used NetBeans and I believe the other used Eclipse. Although students might have some trouble dealing with CLI environments when they eventually continue learning programming in college, it does remove a lot of hassle and allow students to focus on programming, not setting up the environment (can be a headache especially if you're using Windows).
xuq01
<java><ap-computer-science-a><ide><command-line>
Command-line Java in AP CS A
# Command-line Java in AP CS A

(Asked by: username_0 on 2017-05-25)

Context: Over the past school year I spent a significant portion of my time preparing to teach AP CS A next year. From choosing textbooks to writing the College Board syllabus, I essentially started from scratch in designing my course. I'm pleased with all aspects of it as it currently stands, but there is one nagging element: the programming environment.

All students taking AP CS A next year have experience using Cloud9 because that's what we used for C/Python/HTML/CSS this year in AP CSP. Only in the last couple weeks did I discover how easy it is to install the JDK in a Cloud9 workspace and write, compile, and execute programs in Java from the command line. (I had read somewhere a while ago that Java and Cloud9 didn't play nicely.) I had been BlueJ all the way until that point, and I do still very much like BlueJ. However, not having taught the class before, only designed it, here's my (hopefully specific enough) question:

**Will students lose anything in their understanding of and proficiency with Java, especially in terms of the AP Exam, if the class only uses a command-line environment for program compilation and execution?**

There are many pros/cons to one IDE over another -- a topic which I think is too broad for this community. I just want to make sure, from those who have experience with this course, if there's something that the command-line environment lacks for students that an IDE like BlueJ doesn't lack. I don't want to end up doing students a disservice with respect to the objectives of the course based on this decision.

Edit: Cloud9 is a cloud-based IDE, which makes it ideal for my 1:1 Chromebook environment (however, I do have access to a PC lab for additional software, so that is not a restricting factor for me). As they define it, "Cloud9 combines a powerful online code editor with a full Ubuntu workspace in the cloud." You essentially get a text editor and a terminal for compiling and running programs. I've found that anything I can do via a Linux command line, I can do in Cloud9. It has a number of additional features that make it great for classroom use. I originally chose it because it's the environment used for the CS50 IDE. See more [here](https://c9.io).

**Tags:** java, ap-computer-science-a, ide, command-line

> **Comments:**
> **username_1**: My students learn both a command line environment (javac/java) and they use an IDE (usually drJava although some migrate to NetBeans, IntelliJ, or Eclipse).  I don't know what you "lose" using the command line interface.  
> **username_2**: When I was in HS, we used IDEs. One teacher used NetBeans and I believe the other used Eclipse. Although students might have some trouble dealing with CLI environments when they eventually continue learning programming in college, it does remove a lot of hassle and allow students to focus on programming, not setting up the environment (can be a headache especially if you're using Windows).  

---

## 3 answers

### Answer by username_3 on 2017-05-25. Score: 6

Similar to @username_1, I use both command-line environments and IDEs, and I have only found them enhancing each other. We do most of our work in IDEs, but a few assignments are done in CLIs every year to ensure that students slowly gain some familiarity with those environments.

Reasons for IDEs:

1. Convenience
2. Easy integration with GitHub
3. Error highlighting (though I [have some issues](https://cseducators.stackexchange.com/a/78/27) with this)
4. Ease with packages and project integration

Reasons for CLIs:

1. There are still plenty of important computing platforms (including both iOS and Windows!) that ultimately reduce down to CLIs.
2. Good luck explaining the **string[] args** in `public static void main(String[] args)` if students don't have any experience in CLIs.
3. Even a little POSIX familiarity goes a long way.

> **Comments:**
> **username_4**: Oh. wow CLIs number 2 is very interesting. I'll remember that for when I need to explain it. Thanks  

---

### Answer by username_5 on 2017-06-18. Score: 3

With respect to APCS-A there won't be a difference.

Personally, I'm not overly fond of IDEs or one trick pony environments so I've encouraged our students to use an editor. I'm an Emacs wonk but the kids also use Vim, Sublime, DrJava (which is a lightweight IDE) and more.

In APCS-A they won't be getting to HUGE programs and to be honest, in my experience, an IDE like Eclipse provides too much and is too cumbersome for APCS\_A.

I obviously don't know much about your specific situation (you, your kids, etc) but my general recommendation for APCS-A would be:

1. Start with a super simple IDE like Dr.Java
2. Possibly transition them to an editor which will serve them well no matter what language they develop in.
3. If you're going to use an IDE look at something reasonably lightweight like the JetBrains free stuff.

I personally don't like BlueJ because while it's really nice for showing object relations the tool doesn't travel with them as they go beyond APCS-A and as I'm not a big OOP guy, I think it might push kids into thinking that every problem should be looked at an OO nail even more than APCS-A does regularly.

Another advantage about using the command line and less specific tools is that you can teach the kids more of what's really going on rather than having the IDE abstract it.


---

### Answer by username_4 on 2017-05-25. Score: 2

Java's core, from my experience, is writing large (or many, or both `;)`) classes and files (whilst preserving [SOLID](https://en.wikipedia.org/wiki/SOLID_(object-oriented_design)) principles) and then running a rather complex program, composed of those classes.

Due to this, working only with a command-line environment is somewhat losing that part of java, and might damage the students' understanding of Java.

This being said, Java 9, which will soon be released, has [JShell](https://en.wikipedia.org/wiki/JShell), which incorporates a command-line environment. So it will be a 2-in-1 package. There's a pre-release version available so that you can get familiar with it (and then with teaching it). But until it's released, in my opinion it's better to work in an IDE such as eclipse or IntelliJ.


---

