This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-09-18 17:07:32

axorion
Scratcher
Registered: 2010-01-05
Posts: 28

Java Applet Debugging

I have found many discrepancies between the Scratch development environment and the Java applet that runs the projects within your browser. Even though the Scratch team works very hard to reduce this problem it is to be expected and will never completely go away. I believe it to be critical to a projects success that it functions without downloading. Downloading should be primarily for remixing, importing and in general examining the code of a project. 

And so it becomes the responsibility of the project author to overcome this gap between development and deployment. This is where I begin to become frustrated with the process. The only way to get the project into the Java applet is to share it. Since you may share a project only once you are forced to share your first draft. This version may not even function and your moment of glory as a new project has passed away forever.

Of course you will fix the bug but by then it is too late. A successful project is like an avalanche. A huge amount of energy is released from a very modest start. But because you were forced to share your first draft that start will never happen.

I would like to suggest a feature within the development environment that generates an HTML document on your local hard drive. Executing this file would open your browser and show thumbnails of all of the projects saved on your hard drive. Clicking a thumbnail would then execute its respective project within the Java applet. This would allow debugging without posting and should drastically improve the quality of new posts.

A less attractive alternative would be to allow users to upload projects for private access. Once they where happy with there results they could make the project public. The project would only be a new project the first time it was made public. The drawback to this is wasted time and bandwidth but it may work better for applet versions or licensing reasons.

Thank you for your consideration.
Axorion

Last edited by axorion (2010-09-18 17:14:01)

Offline

 

#2 2010-09-18 17:11:54

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Java Applet Debugging

This is definitely a problem that needs fixing. The problem, as you stated, is that the Squeak engine that the offline Scratch developer is vastly different than the Java player. Fortunately, thew Scratch team is creating the online and offline versions of Scratch for the next release of Scratch in the same language. Hopefully, it will fix any compatibility problems.  smile


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2010-10-08 17:36:24

axorion
Scratcher
Registered: 2010-01-05
Posts: 28

Re: Java Applet Debugging

I found what I was looking for here.

http://scratch.mit.edu/forums/viewtopic.php?pid=763#p763

This lets me test compatibility with the java applet prior to posting.
From now on I will know my projects work before I post them!

Offline

 

#4 2010-10-08 20:09:51

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Java Applet Debugging

Ooh, great article. Thanks for digging that up!  big_smile


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer