Ask coding questions

← Back to all posts
Scratch API
YouRenTan (3)

Hi, I am a scratcher https://scratch.mit.edu/users/YouRenTan/ who is amused at people who knows how to use repl.it to host a server and change cloud variables. But when I came to repl.it,it looks so hard! Any ideas how to host a server, get scratch api and change cloud variables? =D

Comments
hotnewtop
QuantumCodes (25)

Do u know python/js? It will be helpful. I know how to do in python

LM2309 (0)

I'm on scratch too!

JonDoeBeep (42)

No, but to start learning html, css, js, you can use freecodecamp.org
Im not sure that blockly is supported on repl.it though

pradg73 (0)

I see many people saying scratch isn't a programming language. don't be fooled by it's cute exterior and target audience. It's very sophisticated. someone mentioned griffpatch. His programs are insane. peace

Coder100 (18917)

Scratch: Cloud Variable
Everyone else: Database

May I recommend you:
https://firebase.google.com
or
https://mongodb.com

Anyways, either choice, there is a steep learning curve. You are better off learning more programming before trying to use a 'cloud variable'

SixBeeps (5346)

I believe it is against Scratch's TOS to change cloud variables on a Scratch project like that.

CodeLongAndPros (1631)

Uh that’s not possible

Whacko (325)

I'm very sorry, but no, Scratch is not a programming language. Although it does use the HTML <canvas> element. You can try inspecting the code and find the file with the code for the canvas, although I doubt it will work.

realTronsi (924)

I'd disagree with @Leroy01010 here, Scratch does still count as a language, just a very low level and basic one. The transition from Scratch to a commercially viable language however is a big jump.

I've used Scratch as a kid before (I mean who hasn't) and it's a great tool for kids to learn basic syntax and structures of code, but unfortunately things such as cloud variables are not a thing in the coding world.

Repl.it does not support Scratch, but if you're looking to host servers (Which I'm assuming you're talking about backend, but correct me if I'm wrong) then NodeJS or python is a good start.

Leroy01010 (408)

but it has a different name @realTronsi

Leroy01010 (408)

def bla_bla():
print("bla")

@realTronsi

realTronsi (924)

@Leroy01010 Uh that's a function, not a cloud variable?

[deleted]

@realTronsi no it's not a programming language and certainly not a low level proframming language. An example for a "low level and basic" programming language is c or assembly

realTronsi (924)

@behavingEffort When I'm talking about low level and basic, I am talking about the syntax and the ability to learn the language.

C or assembly is low level in the sense that it is near machine code/is machine code.

Additionally, if you look up is Scratch a programming language you get this:

Scratch is a block-based visual programming language and website targeted primarily at children to help learn code

realTronsi (924)

@CodeLongAndPros Still a language though, just very simplified and block based.

CodeLongAndPros (1631)

@realTronsi Yes, but it’s not really a programming language. PowerPoint is TC but it’s not a PL

realTronsi (924)

@CodeLongAndPros I mean the definition of a programming language is just a language that you can use to give instructions to the machine to produce different outputs, which I think Scratch fits that pretty well..

(For example BrainF is a language and it doesn't have any types)

Also not sure what you mean by TC

CodeLongAndPros (1631)

@realTronsi Turing complete. I mean you can program in scratch, but do you want to return a value? Not possible

realTronsi (924)

@CodeLongAndPros You can't return a value in BrainF either. I'm pretty sure returning a value isn't required for it to be a programming language.

Scratch is just very simplified that's all, it has all the main components such as variables, arrays/list, functions.

Besides, googling this shows that everyone is on the common consensus that Scratch is a programming language.

SixBeeps (5346)

@CodeLongAndPros Wth do you mean? Scratch has Strings, Bools, Numbers, and Arrays.

CodeLongAndPros (1631)

@realTronsi But if you want to do something other than spin the cat it’s pretty much impossible

SixBeeps (5346)

@CodeLongAndPros Then JS isn't a programming language.

CodeLongAndPros (1631)

@SixBeeps but you can cast. Scratch has some serious limitations and weirdness

realTronsi (924)

@CodeLongAndPros https://scratch.mit.edu/users/griffpatch/

He's made Paper minecraft, many multiplayer games such as diep.io, physics simulators, etc all in scratch

SixBeeps (5346)

@CodeLongAndPros SInce variables are dynamic, they auto-cast. I've never had a problem with it either.

Leroy01010 (408)

sadly scratch isn't a real programming language but i'll try helping you with scratch api.(i'll look for a few answers)
(press reply to reply)