• 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.

    • furry toaster@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      38 minutes ago

      I dick arround a lot with normal progamming languages, throw shit at the wall and see what sticks, just normal trial and error, in editor LSP suggestions for methods, imports, functions and etc, are quite helpful for just messing arround, lets I have a string, I want to find where a given character is, I type “.” then I guess what the method for rhat would be named, “find” perhaps, and so on, whenever I am confused by a function in the std lib or any lib a quick go to documention in editor shortcut and I look at the examples and the description

    • YoSoySnekBoi@kbin.earth
      link
      fedilink
      arrow-up
      8
      ·
      4 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
      ·
      4 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