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

#1 2008-06-09 13:11:05

oyesanyf
Scratcher
Registered: 2008-06-04
Posts: 5

Scratch Libraries

An Interface that allows users to design and Integrate custom libraries.  For example, libraries for simple arithmetic

Offline

 

#2 2008-06-09 16:02:17

torterra
Scratcher
Registered: 2007-07-30
Posts: 500+

Re: Scratch Libraries

we have that....... only more simplistic. its called a gallery and many different scratchers can share there projects in the galleries to get more views or to get into the company gallery or whatever!

if this isnt what your talking about then i guess i cant help.

Last edited by torterra (2008-06-09 16:07:29)


Fear my infinite capability of memes! >8D
http://knowyourmeme.com/i/2487/original/82fd835539583bfc43579d7fb2fc1523.jpg?1242728127

Offline

 

#3 2008-06-10 07:57:36

oyesanyf
Scratcher
Registered: 2008-06-04
Posts: 5

Re: Scratch Libraries

I think it's a little different.  As am example, say you click on numbers and you are able to write a method to do some arithmetic that is not already included with scratch, and you can reuse it in your program , or you are able to write your own control etc

Offline

 

#4 2008-06-10 22:47:12

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: Scratch Libraries

One possibility is to use a sprite for that. You can always import/export sprites, kind of like what you do when you #include libraries in other languages.


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#5 2008-06-11 02:17:48

dbal
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: Scratch Libraries

andresmh wrote:

One possibility is to use a sprite for that. You can always import/export sprites, kind of like what you do when you #include libraries in other languages.

Using a sprite as the vehicle for a library is a clever idea.  Unfortunately, it carries with it the same problem that occurs when using #include in C or C++; bloated source code.

If you write a bunch of scripts for a sprite where each script performs a particular task and then import the sprite, it seems that you would be importing all of the scripts regardless of whether or not you need them all for that project.  I don't know what the penalty is for having a large number of unused scripts in a Scratch project, but I would suspect that there may be a speed penalty and surely there is a space penalty.

A C# or Java-like solution that only imports those parts of the library that are needed for that particular project would be preferable, but may not be possible in Scratch.

Last edited by dbal (2008-06-11 02:18:41)


Dick Baldwin - Don't get stuck scratching. When you master Scratch, move on up to more serious programming languages. Free online programming tutorials:
Scratch - Alice - Java - C# - C++ - JavaScript - XML - Python - DSP

Offline

 

#6 2008-06-11 07:35:29

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

Re: Scratch Libraries

you can also export / import single scripts in Chirp and create your own libraries / makros for Scratch this way.


Jens Mönig

Offline

 

Board footer