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

#2351 2011-11-14 21:54:15

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Hmm... I'm still undecided... They're not needed but then it is a feature that most any scripting language supports as a constant. I use them a lot in Panther. Then again, if they weren't in Panther I would be perfectly content to just type True and False into the = operators. I'll vote that we do remove them...

I was talking about my block I made instead of these two blocks a while ago. The <[]> block, you insert true or false and it will report true or false, I made it so that we don't need two blocks.... kind of... XD I made it because I wanted a way to get true or false without messy scripts.

But that is what my block was for, to make a variable mainly, or text, convert to a boolean.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2352 2011-11-15 05:06:28

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Oh, I see, like the <[ ] as boolean> in Panther? It takes strings, constants and variables into the argument, reports true if their value is true or True and false if not.

In PHP the equivalent would be replacing

Code:

<?php
if($variable == True){
     code
}
if($variable == False){
     code
}

with

Code:

<?php
if($variable){
     code
}
if(!$variable){
     code
}

Last edited by sparks (2011-11-15 05:08:27)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2353 2011-11-15 08:33:30

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I vote to keep them. <true> is provided in practically every text-based language. Removing it would be like removing ( (10) + (5) ) [Hey, it can be replaced by ((10) - ((0) - (5)))!] or (change (x) by (5)) [Set X to (X position) + (5)]. Not to mention it wouldn't be fair to zorket (you remove his block several months later without telling him). If you're persistent on getting rid, rather than adding, blocks, you can pick on my <<>=<>> (not that I feel that should be deleted, I didn't know you could put booleans into string slots until I made the blocks and got a surge of reminders). That's my opinion, Greenatic.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2354 2011-11-15 09:02:10

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

And are you a librarian?  The page doesn't say so...

No, I am not.


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

Offline

 

#2355 2011-11-15 09:30:41

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

I vote to keep them. <true> is provided in practically every text-based language. Removing it would be like removing ( (10) + (5) ) [Hey, it can be replaced by ((10) - ((0) - (5)))!] or (change (x) by (5)) [Set X to (X position) + (5)]. Not to mention it wouldn't be fair to zorket (you remove his block several months later without telling him). If you're persistent on getting rid, rather than adding, blocks, you can pick on my <<>=<>> (not that I feel that should be deleted, I didn't know you could put booleans into string slots until I made the blocks and got a surge of reminders). That's my opinion, Greenatic.

No, because the as string block is basically like a drop-down for both true and false, only it has a text insert instead.  smile


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2356 2011-11-15 09:45:18

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Nah, Math isn't. XD

Offline

 

#2357 2011-11-15 10:25:39

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: ITopic: Welcome to your local block library!

For the BYOB blocks -make clone run ______- and -make _______ run _______-, the (____ of ____) block which they seem to include doesn't come with BYOB nor is it in the block library. How does one make these blocks (They aren't downloadable.)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#2358 2011-11-15 11:12:24

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

Re: ITopic: Welcome to your local block library!

zippynk wrote:

For the BYOB blocks -make clone run ______- and -make _______ run _______-, the (____ of ____) block which they seem to include doesn't come with BYOB nor is it in the block library. How does one make these blocks (They aren't downloadable.)

do you have 3.1.1?  tongue

Offline

 

#2359 2011-11-15 15:36:05

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

zippynk wrote:

For the BYOB blocks -make clone run ______- and -make _______ run _______-, the (____ of ____) block which they seem to include doesn't come with BYOB nor is it in the block library. How does one make these blocks (They aren't downloadable.)

They are in BYOB 3.1.1, they are new blocks.
Download it here.


BTW did anyone notice there is a link to the library there!
smile
I just noticed it.

Last edited by Pecola1 (2011-11-15 15:39:21)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2360 2011-11-15 16:49:59

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

Re: ITopic: Welcome to your local block library!

zippynk wrote:

For the BYOB blocks -make clone run ______- and -make _______ run _______-, the (____ of ____) block which they seem to include doesn't come with BYOB nor is it in the block library. How does one make these blocks (They aren't downloadable.)

they use the ([atribute] of [sprite]) block thaty exists in scratch, but it has more functionality in BYOB.


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

 

#2361 2011-11-15 16:51:16

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Just for the record the block library (in all)
has had 3928 posts and 202943 views.
Make that 3929 posts and 202944 views.  smile

Last edited by Pecola1 (2011-11-15 16:51:44)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2362 2011-11-15 17:49:17

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

I vote to keep them. <true> is provided in practically every text-based language. Removing it would be like removing ( (10) + (5) ) [Hey, it can be replaced by ((10) - ((0) - (5)))!] or (change (x) by (5)) [Set X to (X position) + (5)]. Not to mention it wouldn't be fair to zorket (you remove his block several months later without telling him). If you're persistent on getting rid, rather than adding, blocks, you can pick on my <<>=<>> (not that I feel that should be deleted, I didn't know you could put booleans into string slots until I made the blocks and got a surge of reminders). That's my opinion, Greenatic.

The <[  ] as boolean> in Panther works the same as <true> and <false>, but saves precious room on the block palette.  It reports true if the %s = 'true' or 'True', and false otherwise.  That's what Pecola suggested, and I agree.

However, I do see your point about removing someone's block.  Perhaps the statistics should remain as if the blocks were still there, but the blocks should be removed?   hmm

Last edited by Greenatic (2011-11-15 17:52:06)

Offline

 

#2363 2011-11-15 17:57:05

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I GOTTA IDEA
Retired blocks section, it would have any blocks which were removed for those who may want to use them in the future, someone may want to have the true and false booleans, so we should put them in retired blocks, its blocks that aren't needed, but can be useful in some peoples eyes.  smile


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2364 2011-11-15 18:16:19

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

I GOTTA IDEA
Retired blocks section, it would have any blocks which were removed for those who may want to use them in the future, someone may want to have the true and false booleans, so we should put them in retired blocks, its blocks that aren't needed, but can be useful in some peoples eyes.  smile

What would we do about statistics?

Offline

 

#2365 2011-11-15 18:30:07

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

Pecola1 wrote:

I GOTTA IDEA
Retired blocks section, it would have any blocks which were removed for those who may want to use them in the future, someone may want to have the true and false booleans, so we should put them in retired blocks, its blocks that aren't needed, but can be useful in some peoples eyes.  smile

What would we do about statistics?

We would make in grey the blocks which were removed.  smile


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2366 2011-11-15 18:54:57

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

Greenatic wrote:

Pecola1 wrote:

I GOTTA IDEA
Retired blocks section, it would have any blocks which were removed for those who may want to use them in the future, someone may want to have the true and false booleans, so we should put them in retired blocks, its blocks that aren't needed, but can be useful in some peoples eyes.  smile

What would we do about statistics?

We would make in grey the blocks which were removed.  smile

Sounds good to me.  smile   Let's see what others think.

Offline

 

#2367 2011-11-16 01:41:15

SuperJedi224
Scratcher
Registered: 2010-12-22
Posts: 23

Re: ITopic: Welcome to your local block library!

http://customheartlessandnobodies.wikispaces.com/file/view/Quadform.gif/275960434/Quadform.gif

BYOB

Inputs: a,b,c. all numbers.
Variables: x1, x2
Script:
set x1 to    ( (-1*b)+sqrt((b*b)-(4*(a*c) ) ) )/(2*a)
set x2 to    ( (-1*b)-sqrt((b*b)-(4*(a*c) ) ) )/(2*a)

Report: List: x1, x2

Last edited by SuperJedi224 (2011-11-16 01:43:01)


http://internetometer.com/image/30818.png

Offline

 

#2368 2011-11-16 03:48:36

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

Pecola1 wrote:

Greenatic wrote:


What would we do about statistics?

We would make in grey the blocks which were removed.  smile

Sounds good to me.  smile   Let's see what others think.

Cool!

And let's get rid of the Boolean comparator. XD

Offline

 

#2369 2011-11-16 05:39:42

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I was discussing this with a friend last night. There are two ways we can look at the library, either we accept any block that works, or we only accept blocks that are useful and can't be easily carried out using existing blocks. It seems to me a little odd that it's only these True, False and comparator blocks we're debating since that simply suggests we're trying to save space in the operators category. Are we trying to save space and only take very useful blocks - thereby removing a few of the existing blocks or do we continue to accept all blocks?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2370 2011-11-16 06:32:29

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

I was discussing this with a friend last night. There are two ways we can look at the library, either we accept any block that works, or we only accept blocks that are useful and can't be easily carried out using existing blocks. It seems to me a little odd that it's only these True, False and comparator blocks we're debating since that simply suggests we're trying to save space in the operators category. Are we trying to save space and only take very useful blocks - thereby removing a few of the existing blocks or do we continue to accept all blocks?

Perfectly true. If I put my mind to it, I can find a way to eliminate up to 50% to the existing blocks, too. Like Wiki workarounds.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2371 2011-11-16 07:56:25

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

sparks wrote:

I was discussing this with a friend last night. There are two ways we can look at the library, either we accept any block that works, or we only accept blocks that are useful and can't be easily carried out using existing blocks. It seems to me a little odd that it's only these True, False and comparator blocks we're debating since that simply suggests we're trying to save space in the operators category. Are we trying to save space and only take very useful blocks - thereby removing a few of the existing blocks or do we continue to accept all blocks?

Perfectly true. If I put my mind to it, I can find a way to eliminate up to 50% to the existing blocks, too. Like Wiki workarounds.

74/125.


And this is the 1,000,001 post!

Last edited by scimonster (2011-11-16 07:56:59)

Offline

 

#2372 2011-11-16 08:42:10

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Hardmath123 wrote:

sparks wrote:

I was discussing this with a friend last night. There are two ways we can look at the library, either we accept any block that works, or we only accept blocks that are useful and can't be easily carried out using existing blocks. It seems to me a little odd that it's only these True, False and comparator blocks we're debating since that simply suggests we're trying to save space in the operators category. Are we trying to save space and only take very useful blocks - thereby removing a few of the existing blocks or do we continue to accept all blocks?

Perfectly true. If I put my mind to it, I can find a way to eliminate up to 50% to the existing blocks, too. Like Wiki workarounds.

74/125.


And this is the 1,000,001 post!

yikes


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

Offline

 

#2373 2011-11-16 10:28:53

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

I was discussing this with a friend last night. There are two ways we can look at the library, either we accept any block that works, or we only accept blocks that are useful and can't be easily carried out using existing blocks. It seems to me a little odd that it's only these True, False and comparator blocks we're debating since that simply suggests we're trying to save space in the operators category. Are we trying to save space and only take very useful blocks - thereby removing a few of the existing blocks or do we continue to accept all blocks?

A wise discussion...

Are we trying to save space?
No.
Are we going to accept any block?
No.

This means.we.must specify what blocks we allow.
I think we should go back to my idea, any block which is not quite.needed,.should be somehow out of the way.
Should we just put less.important.blocks at.the.end of.the post?
Or have a place.for less useful blocks, which would BTW be a bit rude  tongue

We want the blocks not as.usefully out of the away, but we don't want to hurt anyone's feelings.  hmm


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#2374 2011-11-16 18:57:33

thisisntme
Scratcher
Registered: 2011-04-15
Posts: 63

Re: ITopic: Welcome to your local block library!

[img] http://i.imgur.com/SlABQ.gif [img] [img] http://i.imgur.com/4xTET.gif [img]


http://i.imgur.com/ngU2P.gif

Offline

 

#2375 2011-11-16 18:59:42

thisisntme
Scratcher
Registered: 2011-04-15
Posts: 63

Re: ITopic: Welcome to your local block library!

thisisntme wrote:

[url]http://i.imgur.com/SlABQ.gif [url][url]http://i.imgur.com/4xTET.gif [url]

i cant figure out how to add an image i tried ?


http://i.imgur.com/ngU2P.gif

Offline

 

Board footer