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

#5151 2012-05-17 22:50:19

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

Brian,

I haven't picked up on  such subtleties of a slot's shape yet but I take your point about Once.

Offline

 

#5152 2012-05-17 22:53:13

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

OldCodger wrote:

should BYOB not go the whole hog and fully adopt the functional programming paradigm?

In the course I teach for CS-major freshmen at Berkeley, we really try hard not to let our students become narrow adherents to any one programming paradigm; we visit functional, oop, and logic programming as well as a brief glimpse of client/server style with callbacks.  I love functional programming the best, but one of the great things about lambda is that it's universal, and you can build oop using it.

As a practical matter, we are aiming partly at high school teachers, most of whom have had most or all of their experience in the Java-based AP course and who therefore believe that oop is the only way to go.  We don't want to leave them out in the cold, although with time we hope to broaden their outlook.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5153 2012-05-17 22:55:26

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

Playing around with Scratch 2.0 ... not sure how I survived without first class data.

Ah, that warms my heart.   big_smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5154 2012-05-18 08:44:48

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

So turns out Scratch 2.0 will be scratch with limited recursion, limited webcam, and limited cloud support. the scratch team at its best -.-
now that we have math functions, maybe add the (pretty essential) exponential one?
also noticed the NaN when the input is outside bounds (sqrt-1, acos91 etc.)  sad  #whyidontlikejavascript
maybe you should kind of cache the categories, it takes so much time to switch them  tongue
tried to profile it a bit, it looks like the biggest time-eaters are the String/TextMorph drawNew method  hmm
if some optimization could be used...

Offline

 

#5155 2012-05-18 11:10:58

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

You know last time I checked, acos 0.5 = 60, NOT 60.000000000000000000001


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5156 2012-05-18 12:08:14

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

You know last time I checked, acos 0.5 = 60, NOT 60.000000000000000000001

Tell that to ECMA. I believe Snap uses Javascript's "Math" library, so any error like this is out of the control of Jens and bharvey.

Offline

 

#5157 2012-05-18 12:34:07

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

no, while I am using the JS Math library the slightly incorrect radians-degrees conversions are my fault, and we'll fix them.

Last edited by Jens (2012-05-18 12:42:09)


Jens Mönig

Offline

 

#5158 2012-05-18 19:29:44

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

As a future enhancement to Snap or BYOB could the windows be dockable/undockable so that users can rearrange them as desired?

Offline

 

#5159 2012-05-18 20:42:52

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

OldCodger wrote:

could the windows be dockable/undockable so that users can rearrange them as desired?

We definitely plan to allow resizing of the stage (moving the edge between it and the scripting area).  Do you need more flexibility than that?

Oh, and somewhere down the road we'll figure out a multiiew UI to make it usable on a phone-sized screen.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5160 2012-05-18 21:07:02

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

Well, I think I'd like to be able to undock the stage and sprite windows from the editor because they are functionally different. The blocks window is too narrow at the moment to display some of the longer blocks in their entirety, and having free floating windows gives the greatest flexibility.

The Smalltalk development environment is an excellent model I think. Talking of Smalltalk as a model has any thought been given to alternative development methods such as a TDD option as the debug facilities are expanded.

Offline

 

#5161 2012-05-18 22:01:40

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

Another idea I like is seen in the StarLogo TNG window. Here there is a continuous canvas which has designated areas for different code elements: Turtles, Everyone, Setup, Runtime, Collisions. These all help structure the code during development. The small minimap view is a fast way to get to each section.

StarLogo TNG also has the useful metaphor of a Factory Palette which fits nicely with creating block templates.

Offline

 

#5162 2012-05-19 02:30:24

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

will there be GUI components in 4.1, like in Java?


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5163 2012-05-19 03:28:28

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens
Thanks for the math functions ...and the changes of math sign "fonts" (+ - x /) easier to read. I am puzzled by the following issue. When Snap! draws a symmetrical trigonometrical curve like a cardioid (using cos function), the curve is slightly turned on the side. I'm using exactly the same code I used before, using my own trigonometric functions (based on Cordic algorithm). I am going to further investigate by reproducing the same application with Byob.

Offline

 

#5164 2012-05-19 04:16:27

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

(....) The result being the same with Byob, my code was faulty. I have corrected it.
It gave me the opportunity to compare times for the same application :
Byob = 51 Snap! = 19 ....

Offline

 

#5165 2012-05-19 05:25:36

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5166 2012-05-19 08:23:08

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

I was wondering if you could make it so I can copy and paste into the text box on a block? I need it for the import to list block I've made.


http://i.imgur.com/zeIZW.png

Offline

 

#5167 2012-05-19 11:25:28

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

rookwood101 wrote:

I was wondering if you could make it so I can copy and paste into the text box on a block? I need it for the import to list block I've made.

Yes of course.  Dunno when.  Jens?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5168 2012-05-21 15:08:39

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Snap! alpha update:

Virtual keyboard and pinch zoom for iPads are now available in a first (still rough) version in the current alpha build.

Enjoy!

Last edited by Jens (2012-05-21 15:08:59)


Jens Mönig

Offline

 

#5169 2012-05-21 19:33:42

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Snap! alpha update:

Virtual keyboard and pinch zoom for iPads are now available in a first (still rough) version in the current alpha build.

Enjoy!

I've tried it on one Acer Tab 500 + Android 4.0  + Chrome
It's impressive !!! Everything works perfectly (except that I have no keyboard available)
Now I would be curious to load a sample Snap! appli (  yikes )
Once again, congratulations Jens !!!

Offline

 

#5170 2012-05-22 03:08:42

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens
On my tab the drag-n-drop method is slow and touchy.
May I suggest you a different way to move palette block onto the script area ?
Select a palette block by clicking on it , then click on the position of the Script Area where you want to move it (no more dragging) .
Then you move the block inside the script area as usual.
Anyhow you have succeeded in making the proof of the concept .
Wonderful !!!!
I'm going now to make a test with a physical keyboard

Offline

 

#5171 2012-05-22 03:45:32

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

Jens wrote:

Snap! alpha update:

Virtual keyboard and pinch zoom for iPads are now available in a first (still rough) version.

Enjoy!

I just tried the alpha version of Snap on my iPad. Touching the screen causes the message "Clean up or make a block". Touching the stage causes the message "edit" to appear. The screen pinches and zooms in both portrait and landscape but hung twice.

I managed to edit a block and enter values from the virtual keyboard. The sprite drew a square correctly with pen down. Setting "rotate" failed to work. The sprite kept the same orientation.

After blocks were built it was difficult to move them without their losing focus and breaking apart.

Hope this is useful!

Offline

 

#5172 2012-05-22 03:51:08

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

Jens
I have used a Bluetooth to enter the numerical values and I've written my first Snap! tab appli.Even WARP works.
I've not yet found a Screen capture application, so I've taken a picture of the screen and sent it to your email.

Offline

 

#5173 2012-05-22 03:56:20

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

...Tab
All features work perfectly, even Save/Open, When Key pressed, broadcast.
Excellent !!!

Offline

 

#5174 2012-05-22 04:15:20

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hi Graham and Xavier,

thanks for testing the new features for tablets!

It's a bit tricky to distinguish my way to pop up a context menu (tap one finger on the object, hold it and then tap another one anywhere) against the device's multi-touch pinch gestures. That's why you will frequently get a context menu if you pinch anything, and things will appear not react to pinches occasionally. I'm still trying various ways to avoid this and I'll let you know when I change anything.

Invoking the virtual keyboard for a purely canvas based application is unbelievably kludgy, but at least it seems to work now. Again thanks for testing!

At the moment, serialization is incomplete and partly broken. The rotation style options do work, but they don't get saved, the same applies to any scaling. Worse, there are serious flaws regarding global variables and local stage variables. Again, they work fine, but once you save/reload a project, there are errors. We're working on that one...


Jens Mönig

Offline

 

#5175 2012-05-22 08:32:12

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Ooooo... HTTP request block.  big_smile  ...for the same domain. D:


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

Board footer