Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Write Scratch projects in Python using Gobomatic
- aspizu
-
Scratcher
68 posts
Write Scratch projects in Python using Gobomatic
Gobomatic
Gobomatic is a Python library to generate Scratch (3>) projects from Object-Oriented representation of Scratch projects in Python code.
Gobomatic Github Repository https://github.com/aspizu/gobomatic
Gobomatic is a Python library to generate Scratch (3>) projects from Object-Oriented representation of Scratch projects in Python code.
Gobomatic Github Repository https://github.com/aspizu/gobomatic
Last edited by aspizu (June 27, 2022 17:51:30)
- MagicCrayon9342
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
object oriented? i'd usually say it's bad but since it's Scratch with sprites it'd make sense.
- lttstoredotcom
-
Scratcher
100+ posts
Write Scratch projects in Python using Gobomatic
object oriented? i'd usually say it's bad but since it's Scratch with sprites it'd make sense.object-oriented is the best approach for most things. it is not overly complicated and it lets you model and represent things easily.
Last edited by lttstoredotcom (June 27, 2022 18:15:08)
- aspizu
-
Scratcher
68 posts
Write Scratch projects in Python using Gobomatic
object oriented? i'd usually say it's bad but since it's Scratch with sprites it'd make sense.did you even read the README.md?
- MagicCrayon9342
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
back on topic!object oriented? i'd usually say it's bad but since it's Scratch with sprites it'd make sense.object-oriented is the best approach for most things. it is not overly complicated and it lets you model and represent things easily.
No fr, functional is the best. Because you get for example this:
function afunction() {}
instead of
private class void afunction() {}
“lack of proper restraints”
unmaintainable, messy, and sluggish code.
It's all just bad.
but “Objects” makes sense with use of sprites.
Cool, you read my opinion, make sure your n ext post is on topic “Write Scratch projects in Python using Gobomatic”
Last edited by MagicCrayon9342 (June 27, 2022 18:52:09)
- NFlex23
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
(#6)I think you've gotten mixed up. The example you gave was not functional programming; functional programming is a paradigm where programs are constructed by applying and composing functions, and the functions are almost always pure, meaning they have no side-effects on the rest of the program. Languages like Racket, Clojure, and Elixer are functional programming languages. JavaScript, Python, etc. are object-oriented languages.No fr, functional is the best. Because you get for example this:object oriented? i'd usually say it's bad but since it's Scratch with sprites it'd make sense.object-oriented is the best approach for most things. it is not overly complicated and it lets you model and represent things easily.function afunction() {}
instead of^ the amount of stuff you have to painfully declare yourself, ugh its just bad.private class void afunction() {}
“lack of proper restraints”
unmaintainable, messy, and sluggish code.
It's all just bad.
but “Objects” makes sense with use of sprites.
There also isn't a “best” paradigm, just like there isn't a best programming language; each is good for certain things.
Last edited by NFlex23 (June 27, 2022 18:58:20)
- uwv
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
(#7)javascript is actually a weird mix between oop and functional programming(#6)I think you've gotten mixed up. The example you gave was not functional programming; functional programming is a paradigm where programs are constructed by applying and composing functions, and the functions are almost always pure, meaning they have no side-effects on the rest of the program. Languages like Racket, Clojure, and Elixer are functional programming languages. JavaScript, Python, etc. are object-oriented languages.No fr, functional is the best. Because you get for example this:object oriented? i'd usually say it's bad but since it's Scratch with sprites it'd make sense.object-oriented is the best approach for most things. it is not overly complicated and it lets you model and represent things easily.function afunction() {}
instead of^ the amount of stuff you have to painfully declare yourself, ugh its just bad.private class void afunction() {}
“lack of proper restraints”
unmaintainable, messy, and sluggish code.
It's all just bad.
but “Objects” makes sense with use of sprites.
There also isn't a “best” paradigm, just like there isn't a best programming language; each is good for certain things.
- aspizu
-
Scratcher
68 posts
Write Scratch projects in Python using Gobomatic
Cool! Looks similar to Boiga.Yep, thats the inspiration for this project. Though this project has different goals than boiga.
- NFlex23
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
The new release (1.1.0) is very cool! I'm glad that you've published it to PyPI; it makes everything a lot easier.
- NFlex23
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
The new release (1.1.0) is very cool! I'm glad that you've published it to PyPI; it makes everything a lot easier.2.0.0 is even better. I think the refactor makes a lot of sense.
Last edited by NFlex23 (June 29, 2022 19:49:50)
- NFlex23
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
Bump. I still think these libraries are extremely cool!
- aspizu
-
Scratcher
68 posts
Write Scratch projects in Python using Gobomatic
I rewrote goboscript and its much better now!
- NFlex23
-
Scratcher
1000+ posts
Write Scratch projects in Python using Gobomatic
I rewrote goboscript and its much better now!Very nice!
- Discussion Forums
- » Advanced Topics
-
» Write Scratch projects in Python using Gobomatic