I am following HtDC but I have not been able to run ProfessorJ in DrRacket. The profj docs make it look simple, but I can't tell what I'm doing wrong.
Please how do I do this successfully?
I am following HtDC but I have not been able to run ProfessorJ in DrRacket. The profj docs make it look simple, but I can't tell what I'm doing wrong.
Please how do I do this successfully?
While I can get simple Java to run, I think something about the setup is broken.
Here is a proper use of ProfJ:
#lang profj/beginner
class Coffee
{ int price;
Coffee(int price) {
this.price = price;
}
}
class Example
{
Example() {
}
Coffee c = new Coffee(10);
}
Yes, clicking RUN works and the REPL prompt shows up.
No, the automatic instantiation of Example
— promised in old documentation — does not show up.
;; - - -
My recommendation is to read HtDC but use a modern IDE.
ProfJ implements a variant of an old version of Java.
When Kathy created profJ, it was difficult to interact with Java.
It was difficult to cope with Java’s wordiness.
Modern IDEs and Java itself have eliminated most of the
short-comings alluded to in the book …
What you wil get out of the book is a proper sense of OO design in Java.
What you won’t get out of the book are the details needed to program in modern Java.
— Matthias
Thanks! I appreciate this.
Should we remove proj entirely, or try to do something so that programs run, but the test cases don't have DrRacket integration anymore?
Oh, and is there a latest known version where profj works so that we can mention that somewhere, perhaps in the book?
— Given the struggles our students had with editing ProfJ code in DrRacket, I think it is not worth the effort.
— And you assume that I can still render the book
Well, I looked briefly into the current state and it looks like there are also problems with the colorer, alas.