We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Sketchbook + "method-list"? (Read 2509 times)
Sketchbook + "method-list"?
Dec 2nd, 2008, 6:05pm
 
Hello all

I've been using Processing for a little while now - and often things get quickly complex, so I jump over to using Netbeans and use Processing from there.

I was wondering: what are the chances, at some point in the future, that the sketchbook might get an optional 'method list' or some-such. This would present the user with a clickable list of the methods / inner classes they've made, in a document-map stylee. (All classes are inner classes in the sketchbook, of course.)

I know there are arguments against this: it goes against the sketchbook ethos, it crosses the line from simple editor to 'wannabe ide'...

To make the opposite argument, though: sketches grow organically. This is great and the sketchbook is a far better format for doing this than, say, Netbeans. But that organic growth soon leads - at least for me - to a *lot* of time spent scrolling, trying to  find a particular method. A clickable panel with those method names would, I'd argue:

a) speed up sketching, and lead nicely from sketches to compositions(!)

b) help people new to programming get their heads around the advantages of breaking code down into more manageable, more intuitive method chunks.

For me, that one simple change might mean the difference between whole projects executed in the sketchbook and shifting them to Netbeans. I know it's a big cheeky ask and everyone's probably got plenty of substantive Processing-code-related things to be working on, but since we're now on V1, I thought I'd throw the idea out there...

Actually, I wonder, how hard would it be for me to try it out? What's the editor based on?

Dan
Re: Sketchbook + "method-list"?
Reply #1 - Dec 2nd, 2008, 6:40pm
 
If you have several classes in a sketch, you would start to separate them in various .pde or even .java files, thus having already a natural separation/interface (the tabs).

Having a list of functions could be nice, though, although not super easy (not as easy as for JavaScript, Lua or PHP, for example, because we don't have a 'function' keyword...) but manageable.

To answer your question, the editor is based on (a old version, I think) JEdit, AFAIK.

But I think such project belongs more to the new Tool interface (see the tools directory in the recent distributions of Processing, there is a funny example of such tool).
Re: Sketchbook + "method-list"?
Reply #2 - Dec 2nd, 2008, 6:53pm
 
Excellent, thanks. Some links from the readme.txt for others:

===
In future releases, we are considering the following features:

1. How shortcut keys are handled.
  http://dev.processing.org/bugs/show_bug.cgi?id=140

2. Whether to allow tools to dock into the Preferences panel.
  http://dev.processing.org/bugs/show_bug.cgi?id=883

3. A means to run native code from the Tools menu.
  http://dev.processing.org/bugs/show_bug.cgi?id=884

4. Methods for reorganizing the Tools menu, or placing contributed
  Tools inside other menus (such as Edit or Sketch).
  http://dev.processing.org/bugs/show_bug.cgi?id=885
===
Re: Sketchbook + "method-list"?
Reply #3 - Dec 13th, 2008, 1:59am
 
+vote for this
Re: Sketchbook + "method-list"?
Reply #4 - Jan 22nd, 2009, 10:27am
 
On a related note, I think the Sketchbook menu should be it's own 1st level menu. Constantly going into File > Sketchbook is a real pain. Since it's such a crucial part of the Processing IDE, and yet one I've seen people misunderstand, I think it would allows easier access to it, plus would help build a better idea of how the sketchbook works in peope's minds.
Re: Sketchbook + "method-list"?
Reply #5 - Jan 22nd, 2009, 3:51pm
 
Kevin, I never use File > Sketchbook, I always use the Open toolbar button, much faster (and not spawning a new window). Although even with some sub-folders, it is becoming long and not so easy to navigate (as are all nested menus).
Re: Sketchbook + "method-list"?
Reply #6 - Jan 22nd, 2009, 5:38pm
 
Phil - yea, I'm sure a lot of people use that. However, I think the sketchbook menu is quite important, and a lot of beginners do use it, so it would be of benefit to quite a few people.
Page Index Toggle Pages: 1