This is much better than flying blind, but I wish I had something more like the Java API documentation.
BTW if you don’t know Scott Flinn, you should. He is probably the best technical resource I ever met. And I don’t mean “technical resource” in an insulting way. He simply understands hands-on technology very deeply. He is also a pessimist like myself, so we do get along, I think.
Here’s some advice from Scott:
SpiderMonkey (the Mozilla implementations in Java and C++ respectively).
I swear by Rhino. You just drop js.jar into your extensions directory
and add this simple script to your path:
Then ‘rhino’ will give you a command line prompt that will evaluate
a bridge to Java, so you can do things like:
js> sb = new java.lang.StringBuffer( ‘This’ );
js> sb.append( ‘ works!’ );
What I did was to download Rhino, open the archive, and type “java -jar js.jar”. It brought up a console. System.out doesn’t work, but you can print using the “print” command. (Update:Obviously, you have to do java.lang.System.out…)