Moving this to Merveilles.town:
I'm a NY-born Oakland resident who programs for game companies to survive. I teach Scratch to kids at our town's video game museum.
@perfor I think it is! The barriers for entry are mainly mouse and keyboard skills, which should really tell you something 😁 Its two main advantages are, students don't have to worry about syntax, and most results are visual. But it's not perfect.
@email@example.com I do hear about it in passing but never really got a chance to try it myself. Thought it was more involved but if it's just keyboard mouse no syntax then it sounds simple enough. Thanks!
@rezmason Hi. I was going through your website/projects section. What did mean when you wrote 'All of these games sport the ability to rapidly play themselves to completion'. Thanks!
@abstractxan Fair question! The three games in the ported Hundred Rabbits trilogy contain “walkthrough” systems that, when invoked from the web console, produce input events from a recorded game session, playing the game from start to end, as a way to automatically verify the game can still be completed after large changes— like ports 😁.
Some of these systems are very fragile, because a code change often alters the sequence of in-game events. But it’s better than nothing!
@rezmason I'm curious how people actually port an application. Do you completely rewrite it? Or use a tool that does things to make it easier?
@abstractxan In my experience, a port is a series of text operations than turn code of one syntax to that of another— followed by operations to swap out dependencies. Some text transformations can be automatic, but often it’s a manual (but systematic) process. It helps when the original project is somewhat modular, because you can then transform one module at a time.
@abstractxan Often, you also need to make a “shim”— a layer of code that gives the ported code familiar functionality similar to an original dependency. For instance, Verreciel was originally built in Apple’s SceneKit, and used the SCNTransaction to smoothly animate rotations and colors. The browser and three.js have animation features, but they’re nothing like SCNTransaction, so I had to shim it.
That was pretty fun actually!
@rezmason Doesn't that mean one needs to understand the ins and outs of all the dependencies?
Though this could be checked with the progress of the porting via the output. Isn't this way too manual?
FOLLOW UP So 'porting' include a lot of studying about the insides of libraries ?
@abstractxan It all comes down to luck, really. Some dependencies have common APIs that map easily to other libraries. Some libraries are available for multiple platforms, and expose identical APIs. A shim should be as small as possible. SCNTransaction is just an oddball API.
In fact, I've entertained the idea of refactoring Verreciel's UI to be declarative, like an SVG type thing, to get away from its dependency on the animation system. But a post-port refactor is complicated.
@abstractxan Once a ported codebase is refactored, the relationship between the port and three original project becomes more distant. If there port is the official remake, then that's fine, but if the original project continues, it can feel like, I dunno, code estrangement. Speciation. Whereas the original aim of a port is to be faithful to the original. 🤷♂️ I overthink this part often
@rezmason Welcome to Mastodon, rezmason!
I love that you teach blocky programming to young children! That sounds like quite an envigorating thing to do, especially with children these days...
@resynth1943 My Haxe background has ironically limited my exposure to Typescript. Whenever I needed to do nuanced, typed development, I've always had this other languages to fall back on. And Haxe has never disappointed!
But Typescript is going places, and if I want to write software on the web stack with a large team, I'd better pick it up one of these days 😁
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.