Discuss Scratch

gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

Blockly is a visual library that allows you to snap blocks together to generate code in different programming languages such as JS, Lua, and Python (and Dart and PHP).

If you want to try it out, go to these links:

If you want to share your code with us, just use this webpage, and click the link button in the top right corner for easy sharing.

How does this relate to anything? I believe Scratch 3.0's editor is based off of Blockly. Also, App Inventor runs off of Blockly and has the full version. (I think code.org uses Blockly, too, but we don't talk about code.org around here. )

Anyways, what do you think of it? Feel free to share any cool screenshots or code!

Last edited by gosoccerboy5 (April 16, 2021 18:49:24)

gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

Bump, maybe it wasn't the best idea to make a topic at 10:21, no one saw this topic XD
gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!


Since I technically can't bump the topic as it's still on the first page, I'll share this image of a factorial function (recursion ftw )
mybearworld
Scratcher
1000+ posts

All Things Blockly!


Yes
mybearworld
Scratcher
1000+ posts

All Things Blockly!

Hilarious!
gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

mybearworld wrote:

Hilarious!
Never knew blockly was so funny lol
mybearworld
Scratcher
1000+ posts

All Things Blockly!

mybearworld wrote:


Yes
I mean, “not len(x)” is a pretty bad way to check if something is empty.
It works, but isn't efficient. I'd prefer “len(x) == 0” or even: “x == str()”.

Edit Oct 20 2021: No longer agree with this.

Last edited by mybearworld (Oct. 20, 2021 14:28:55)

gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

mybearworld wrote:

It works, but isn't efficient. I'd prefer “len(x) == 0” or even: “x == str()”.
x == “”
would that work?
mybearworld
Scratcher
1000+ posts

All Things Blockly!

gosoccerboy5 wrote:

mybearworld wrote:

It works, but isn't efficient. I'd prefer “len(x) == 0” or even: “x == str()”.
x == “”
would that work?
Yes, but I used quotes to tell the code snippets
gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

mybearworld wrote:

gosoccerboy5 wrote:

mybearworld wrote:

It works, but isn't efficient. I'd prefer “len(x) == 0” or even: “x == str()”.
x == “”
would that work?
Yes, but I used quotes to tell the code snippets
“Theres a such thing as \”escaped quotes\“ or ‘single quotes’”
mybearworld
Scratcher
1000+ posts

All Things Blockly!

I'ma try to make more weird code xD
Scratchperson1000000
Scratcher
500+ posts

All Things Blockly!

is this just scratch but put into code.org
mybearworld
Scratcher
1000+ posts

All Things Blockly!

There is literally no in…
ScratchCatHELLO
Scratcher
1000+ posts

All Things Blockly!

Scratchperson1000000 wrote:

is this just scratch but put into code.org

scratch is built on blockly



code for the repeat block (I think)
HacksonJackson
Scratcher
100+ posts

All Things Blockly!

gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

ScratchCatHELLO wrote:

Scratchperson1000000 wrote:

is this just scratch but put into code.org

scratch is built on blockly

code for the repeat block (I think)
Where'd you find the screenshot? It was on github right?
ScratchCatHELLO
Scratcher
1000+ posts

All Things Blockly!

gosoccerboy5 wrote:

ScratchCatHELLO wrote:

Scratchperson1000000 wrote:

is this just scratch but put into code.org

scratch is built on blockly

code for the repeat block (I think)
Where'd you find the screenshot? It was on github right?

scratch-blocks on github
gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

ScratchCatHELLO wrote:

gosoccerboy5 wrote:

Where'd you find the screenshot? It was on github right?
scratch-blocks on github
Thanks
mybearworld
Scratcher
1000+ posts

All Things Blockly!

gosoccerboy5
Scratcher
1000+ posts

All Things Blockly!

ScratchCatHELLO wrote:

Scratchperson1000000 wrote:

is this just scratch but put into code.org
scratch is built on blockly
Yep. It's really visible when you inspect element n the editor

Powered by DjangoBB