Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   Creating functions and procedures (http://www.alice.org/community/showthread.php?t=2721)

DrJim 06-03-2009 09:19 AM

Creating functions and procedures
 
2 Attachment(s)
Another observation - apparently the approach for creating changed a bit changed a bit during development (and since the early tutorial videos).

In the present version, there is one basic pull down menu (see below) for this, which seems to work fine. There are also several display options, which I haven't even begun to explore.

lanceA 06-04-2009 11:07 AM

I agree Dr. Jim that the Beta release is different. I downloaded the two Alice ScreenCasts thinking they might act as tutorials, but the released software is nothing similar to what is described in the screencasts.

Like you, it took me a while to do something as simple as create a new method (methods are now called procedures). I also stumbled across how to remove the [B][I][FONT=Courier New]this[/FONT][/I][/B] java keyword.

If I have to hunt & peck my way through learning 3.0 (beta) without documentation this summer this is no way I can introduce it in September.

Where is Dick Baldwin when we need him most!! :o

Keep posting any new revelations you stumble across as we all begin the learning process and I will do likewise. Currently I'm off to play with opening/modifying Alice worlds in NetBeans. :eek:

(It's sad that most school systems don't have the budget to pay for attending workshops this summer - but we are in an economic crisis.)

DrJim 06-04-2009 04:29 PM

[QUOTE=lanceA;10444]I also stumbled across how to remove the [B][I][FONT=Courier New]this[/FONT][/I][/B] java keyword. [/QUOTE]

How did you do that? :confused: I haven't yet figured out a way - and the problem is rather annoying.

lanceA 06-04-2009 06:20 PM

From the menus at the top of the Alice window select Window, from the drop down menu. Check "Is Omission Of This For Field Access Desired". That will remove the Java reserved word [B][I][FONT=Courier New]this[/FONT][/I][/B].

I also note that the UNDO function is not implemented in this release.

Also, when you drag a tile to the Edit window you get a mysterious message "rendering is disabled...."

Good luck and continue to post in this room. We need to know how Alice 3.0-Beta works.

Sophie 06-04-2009 11:22 PM

I find that option only works on World/scene. On the "Ground" I see
"this (a.k.a. grassyGround)" in the left panel, and "this" in the code panel. In fact (take with a grain of salt, please ... I've just been at this a few days) some things in 3.0 seem to add syntactical noise from concrete Java syntax without much apparent benefit.

Is this forum a suitable way of getting feedback / suggestions back to the development team?

[And thanks, DrJim, I even thought Add procedures/functions was missing until I saw your post!]

lanceA 06-05-2009 10:07 AM

[quote=Sophie;10470]I find that option only works on World/scene. On the "Ground" I see
"this (a.k.a. grassyGround)" in the left panel, and "this" in the code panel. In fact (take with a grain of salt, please ... I've just been at this a few days) some things in 3.0 seem to add syntactical noise from concrete Java syntax without much apparent benefit.

Is this forum a suitable way of getting feedback / suggestions back to the development team?

[And thanks, DrJim, I even thought Add procedures/functions was missing until I saw your post!][/quote]

Sophie the Java reserved word '[I][B][FONT=Courier New]this[/FONT][/B][/I]' does remain on [U]this(a.k.a.scene)[/U] but it is removed from all of my other objects, including grassyGround and any new objects that I add. And since I'm not sure what to do with this(a.k.a.scene) then I can live with it remaining on the screen. :) I have the [B]Set Locale -->[/B] English(United States).

As far as '...syntactical noise' I'm waiting on the Netbeans plugin to really see what can be done with Alice 3.0. (I saw Dennis Cosgrove talking about it in a film clip from the JavaOne conference.)

Also I think this is the forum for this type of constructive comment about the new Alice. Gabe seems to be monitoring it well. We all just need to remember the current release is under [I]heavy[/I] construction at the moment.

DrJim 06-05-2009 12:40 PM

[QUOTE=lanceA;10465] From the menus at the top of the Alice window select Window, from the drop down menu. Check "Is Omission Of [B]This[/B] For Field Access Desired". That will remove the Java reserved word [B][I][FONT=Courier New]this[/FONT][/I][/B]. [/QUOTE]

An embarrased :o thanks. Guess I should actually [I]read[/I] the menu options - but isn't that sort of like actually reading the manual, i.e., not something a macho programmer would do? :D

DrJim 06-05-2009 01:38 PM

Confused (as usual)
 
2 Attachment(s)
Just completed the attached project, which was a test of various functions. Everything seemed to work fine, but on the first call, I needed to put in a string variable (which was what the function returned).

I really don't understand what that string was supposed to do - since it's value doesn't seem to affect anything. I suspect it's some sort of a dummy, since I really haven't found anyway to just create a local parameter.

Any ideas or suggestions? :confused:

Sophie 06-07-2009 04:39 PM

Where can I find the 3.0 equivalent of 2.x "events"?

Thanks

ttkrakus 06-08-2009 11:58 PM

Pascal or Java?
 
I am getting a little frustrated with v3.0...what about those "procedures"

There is so much Java jargon in this version that seing "procedures" gives me indigestion. We have "this" and "classes" and "mouseListeners", why do you have to talk about "procedures" where such syntactical construct does not exist in Java --or was it added recently and I did not notice?

Of course, we can also argue that the "for all together" does not have a syntactically counterpart in Java either...which reinforces my view that Alice should be language independent, but this is not a popular idea in this forum.

I am a bit concerned that Alice 3.0 is getting so complex that we are going to have to learn Alice 2.X first to ease the transition to Alice 3.0!

Anyways...


All times are GMT -5. The time now is 03:37 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.