• shalafi@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 hour ago

    Harvard’s free CS50 online class used Scratch. If it’s good enough for Harvard, good enough for me.

  • anewfox@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    48 minutes ago

    i was typing basic from books into v-tech precomputer 1000 when i was ~4-6, i was doomed to be a programmer. that thing had a z80 in it, i could probably do some real silly stuff with it now if i still had it.

  • Lyrial
    link
    fedilink
    arrow-up
    3
    ·
    1 hour ago

    My brain simply doesn’t work well with object oriented programming. I’ve tried for a long time (I was even a Java web developer in about 2004). The concepts have never truly clicked for me no matter the course, project, or whatever. I can make whatever I want happen in variants of BASIC.

    I haven’t used Scratch ever, but I have used the MIT App builder quite a lot (which is kinda similar), including making an app to interface with a Bluetooth device via terminal.

    Things like Scratch certainly have their place, is what I’m getting at.

  • AstroLightz@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 hours ago

    I think im the opposite: I can make something in Python or C++ just fine, but idk what the fuck I’m doing in Scratch.

  • The closest I ever got to understanding what I was doing with programming was when I tried Scratch. Simply being able to see what my options even are was enough to get me started.

    With text based systems, there’s no just dicking around with it and discovering things that work in any organic manner. Your starting point will always be tutorials and manuals, half of which will be wrong or insufferable.

    I love geometry nodes in blender. Half the art I do these days is 80% node groups.

    I was so hype when I found out godot had a node based scripting interface. They discontinued it.

    I see absolutely no reason why a scratch like IDE couldn’t support any arbitrary language, procedurally generating blocks for every instruction based on the included libraries.

    • YoSoySnekBoi@kbin.earth
      link
      fedilink
      arrow-up
      8
      ·
      3 hours ago

      I see absolutely no reason why a scratch like IDE couldn’t support any arbitrary language, procedurally generating blocks for every instruction based on the included libraries.

      This would actually be really cool to see in practice, but I think it would ultimately end up being very limiting simply due to the sheer number of functions in an actual fleshed-out language.

      For instance, a command as simple as import numpy in Python would add around 1,000 new blocks. Now granted, these could be organized by library, submodule, and type, but even then I think it would get messy fast.

      This does already exist as an educational tool too, but from what I remember, it’s very limited in scope (since it’s made for teaching beginners).


      With text based systems, there’s no just dicking around with it and discovering things that work in any organic manner. Your starting point will always be tutorials and manuals, half of which will be wrong or insufferable.

      This is actually the main reason I use VSCode (well, VSCodium because fuck Microsoft). It has a feature called IntelliSense that gives you a similar trial-and-error ability via code completion, informational popups that describe individual functions, and popup lists of available functions in a given context.

      I code for a living, so take my word with a grain of salt when it comes to what’s useful for beginners, but I find that in most cases, IntelliSense gives me around as much control and intuition over screwing around in a language as block coding would. It also just helps a ton when you can’t remember the name of a function but know it exists lol

    • Pencilnoob@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 hours ago

      There’s been many many attempts to build such a thing. It almost always suffers from the fact that reading the text of code is a relatively straightforward skill to acquire, and once you acquire it, it’s vastly faster to read and edit than blocks (this is why books are mostly text and often do not have many pictures).

      People who start with blocks / images eventually “skill out” enough that they prefer text. This leaves only other beginners left to improve the editor and keep it working.

      Back in the 90s this was a big deal and everyone thought programming would become image based but it just never manifested.

      I used to prefer block editing as well, but then similarly after a year doing it full time going back to blocks feels like riding a tricycle vs a motorcycle. It’s just too slow to read and edit.

      Also, we have great tools for versioning text, but they barely work at all with blocks and images (unless they are just a projection of the text). So once you need to work with other people you’re back to needing to use text under the images to make it all work.

      There’s some really cool recent options like Light Table https://github.com/LightTable/Clojure but it suffers from the same issues

  • melfie@lemmy.zip
    link
    fedilink
    arrow-up
    42
    ·
    7 hours ago

    My kid is intimidated by code, but is in Scratch making games and movies every day. It involves learning and exercising many of the same skills either way, so I assume it will click at some point that a small block of Python or JavaScript can actually be simpler than a crazy graph of Scratch nodes. I’ve been gently pushing Kaplay.js and have shown how games with more advanced concepts like enemy AI that are a huge pain in Scratch come to life with a small amount of code.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      If they’re into music, Strudel might also be a good way to make “real” code click in an intuitive way. But it’s also just really fun anyway!

    • ivan@piefed.social
      link
      fedilink
      English
      arrow-up
      7
      ·
      4 hours ago

      I’m teaching 5th graders Arduino and the hardest part is to make them sit through boring stuff. Scratch has that childish appeal with colourful shit moving around, and even if it doesn’t work - it’s still moving colorful shit around until it works.

      And the transition to more conventional code is just exceptionally hard for modern kid - something doesn’t work and one has to sift through code, re-read it multiple times, trace errors. It’s just the skill to read stuff throughout that schools don’t give kids today.

  • Someonelol@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 hours ago

    I never got to mess around with Scratch but if it’s anything like LabView then it must’ve been very impressive. Text purists will argue you ultimately have more control but GUIs make writing a program much more intuitive which meant a shallower learning curve for a lot of basic tasks.

  • kata1yst@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    13
    ·
    6 hours ago

    Honest question, my kids love Scratch, and one is at the age and sophistication to advance. What is the next step? We tried a few gamified code things like “The farmer was replaced” but it didn’t grab him, he likes the freedom and exploration of Scratch.

    • definitemaybe@lemmy.ca
      link
      fedilink
      arrow-up
      8
      ·
      4 hours ago

      There are YouTubers making tutorials for really advanced stuff in Scratch, like full side-scrolling Mario clones, Bloons clones, and other more advanced games. You could introduce those to them and see if it’s of interest.

      In my professional opinion (as a teacher), I suggest leaning into their interests and continuing with Scratch, if that’s what they want to do. They will eventually start getting frustrated with Scratch’s limitations, or they’ll lose interest until they age in to formal programming/computer science classes. If you push them to learn coding that they don’t care about, then they won’t be motivated to learn, so they won’t learn much and you might kill their excitement for coding.

      Alternatively, you could maybe start trying out Godot in a space where they can see what you’re doing, too. Then they can see the really cool things you can do in Godot with very limited time, compared to how long a similar game would take in Scratch, which might pique their interest. Maybe with a bit of reverse psychology, like “This is like Scratch for grown ups, so it’s probably too advanced for you to figure out right now,” depending on your kiddos. ;) “I’m just taking a look at it in case you’re interested when you’re old enough.”

      I followed along with a knight side-scrolling adventure tutorial (for work) and it hooked my kiddos, even though they were way too young for Godot (not fluent readers yet). It’s, like, 3 hours-ish to create a compelling game complete with polished CC0 assets, so not a huge commitment.

      • melfie@lemmy.zip
        link
        fedilink
        arrow-up
        5
        ·
        4 hours ago

        If you push them to learn coding that they don’t care about, then they won’t be motivated to learn, so they won’t learn much and you might kill their excitement for coding.

        This is a key risk for everyone to be aware of!

        My kid was doing well in math and was interested in it, but now is intimidated by math in general due to being forced to do a dumb math program in school called “Eureka Math” that over-complicates everything. The school eventually switched to a different program, but the damage was already done and many kids will pay for it for years to come.

        A child’s motivation to learn is a pretty fragile thing, it seems, so if they’re doing well in Scratch, I’m inclined take the win and gently introduce them to cool things that might pique their interest like you said.

        I’m not a teacher by profession and am not that good at it, so I’m especially inclined to proceed cautiously.

    • Grail@multiverse.soulism.net
      link
      fedilink
      English
      arrow-up
      12
      ·
      6 hours ago

      Make a website!

      Start by teaching him enough HTML to lay out a bit of structure, and then teach him CSS. Big recommend to the W3 schools tutorials. Let him play around and make a personal website of all his favourite interests.

      Show him Cookie Clicker, and then explain that the game runs on JavaScript, which puts programming in websites. Help him make a game!

      And use Neocities to host his website and his game online, so he can show it to his friends!

      • roundabout@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        Indeed, that is a good idea, because it helps give that instant graphical output. Eventually, maybe he would want to make it interactive, in which case it would be useful to use Flask, for example.

    • Kache@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      Try out https://hedy.org/

      It’s another “learn programming from zero”, and it’s texual. Notably, the language’s grammar starts off simple and forgiving. For example, there’s no punctuation (quotes, parentheses), and spacing doesn’t matter, in the early levels. The Hedy levels progress until it becomes vanilla Python.

      • roundabout@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        It’s possible that the appeal of Scratch is not the lack of text, but the instant graphical output.

    • stembolts@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      6 hours ago

      What I hear repeated the most is that the tool doesn’t matter as long as the developer cares about what is being built.

      So focus less on a tool and instead define a goal and pick the toolset after.

      Outside of projects, for other pseudo-programming software, the game Factorio starts simple enough but indirectly introduces real development challenges once your structure grows and begins to fail due to poor architecture, then you gotta fix it :)

    • sbird@retrofed.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      Seriously, get a nice book! Not one of those boring textbooks, there are a lot of fun ones that teach kids how to make cool stuff using Python. As a kid, I also read a comic that was programming-adjacent that taught how binary works and the various programming structures (forgot the name of it though)

      Definitely let them continue to have fun with Scratch, maybe encourage them to do more complex projects!

      Later on, if they become more interested in game dev, Godot is a very good option. Runs on most hardware, open source, and easy to use especially with GDScript being similar syntactically with Python

    • rockSlayer@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      5 hours ago

      I don’t remember the name of it, but there’s a video game where you give pseudocode instructions to a robot to follow a path

      Edit: found the game, it’s called light-bot

      • stembolts@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        5 hours ago

        Autonauts is a fun game along those line, though I’m sure the community can suggest many other of which I am unaware.

        I like Autonauts, it’s cute, but rapidly becomes confounding in the best way.

    • melfie@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      I’ve struggled with the same question. I’ve looked at other options that support both visual scripting and code like Godot and GameMaker, but the complexity is high with or without code.

      My personal favorite is Kaplay.js for its elegant simplicity where fairly complex games can be made with minimal code. There’s still the hurdle of having a basic understanding of JavaScript, and then using tools like Asesprite to build animated sprites adds to the complexity, but that’s not strictly required.

      I also put together a little plug-in that can easily transform a top-down 2D Kaplay games into first-person raycasted games building on the Kaplay raycasting example, and while my kid was excited about that, Scratch is still the comfort zone and daily driver.

  • YerbaYerba@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    6 hours ago

    At my job we use blockly as a front end to a business rules engine so that the non technical business folks can setup their own custom processes.

      • bacon_pdp@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        55 minutes ago

        No. Scratch is Squeak which is an object-oriented, class-based, and reflective programming language. It was derived from Smalltalk-80 by a group that included some of Smalltalk-80’s original developers.