The "Run Current Document's Main Method" feature is one that
was much debated in DrJava. We added it about a year ago on
heavy request from new users who were familiar with the
command-line interface similar to C; however, it goes
against the pedagogy of DrJava. We encourage students to
learn to program interactively using the Interactions Pane,
creating objects and manipulating them that way, rather than
using a traditional command-line based, procedural
interface. Thus, we generally do not feel that it is
appropriate to stress this feature, and so there is no
button now, nor is there likely to be one in the future.
However, I will leave the feature request open, in case
people want to discuss the issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the context of software development (as opposed to
recreational programming), we do have a "run" button. It is
called "test". Seriously, it is just as easy to teach
test-driven development using JUnit as it is to teach
students how to use Java's command line interface. In fact,
I would argue that it is easier to teach the use of JUnit
because the command line interface relies on the concept of
static methods.
We use DrJava to develop DrJava. In this context, I have
never used the command "Run Current Documents's Main
Method". On the other hand,
I invoke the "Test" command after every compile.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=697810
The "Run Current Document's Main Method" feature is one that
was much debated in DrJava. We added it about a year ago on
heavy request from new users who were familiar with the
command-line interface similar to C; however, it goes
against the pedagogy of DrJava. We encourage students to
learn to program interactively using the Interactions Pane,
creating objects and manipulating them that way, rather than
using a traditional command-line based, procedural
interface. Thus, we generally do not feel that it is
appropriate to stress this feature, and so there is no
button now, nor is there likely to be one in the future.
However, I will leave the feature request open, in case
people want to discuss the issue.
Logged In: NO
In the context of software development (as opposed to
recreational programming), we do have a "run" button. It is
called "test". Seriously, it is just as easy to teach
test-driven development using JUnit as it is to teach
students how to use Java's command line interface. In fact,
I would argue that it is easier to teach the use of JUnit
because the command line interface relies on the concept of
static methods.
We use DrJava to develop DrJava. In this context, I have
never used the command "Run Current Documents's Main
Method". On the other hand,
I invoke the "Test" command after every compile.