News for hackers. Stuff that matters.
Re:Ask HN: Modern Day Equivalent to HyperCard? by musicale on Thursday May 02, 2024 @12:13AM (#40232622)
> A web browser and javascript is fine too.

There seem to be many online environments where you can type your {html, css, javascript} code and run it. For example, MDN has one at

https://developer.mozilla.org/en-US/play

(Unfortunately it has advertisements... which I suppose is incentive to learn how to use custom stylesheets.)

I wish there were an offline environment like that built into firefox. You can bring up a javascript console, but it's not easy to just type in code and run it. And something like visual studio code is capable but also large and complicated.

Re:Ask HN: Modern Day Equivalent to HyperCard? by nox101 on Thursday May 02, 2024 @02:13AM (#40233215)
not sure it counts as "HyperCard" but for environments there's p5js.org (https://editor.p5js.org/)

> I wish there were an offline environment like that built into firefox. You can bring up a javascript console, but it's not really a friendly development environment. And something like visual studio code is capable but large and complicated.

That seems like a day project in electron. At least to MVP. Use CodeMirror or Monaco. As long as you pass the right options you can run the user's code in an iframe in a separate process. That way you can kill it even if it has an infinite loop.

Re:Ask HN: Modern Day Equivalent to HyperCard? by ben_w on Thursday May 02, 2024 @06:16AM (#40234522)
> I wish there were an offline environment like that built into firefox. You can bring up a javascript console, but it's not really a friendly development environment. And something like visual studio code is capable but large and complicated.

I use BBEdit whenever I do web stuff (caveat: not a pro web dev) — if someone wanted to learn HTML/JS from scratch, I'd suggest a plain text editor like that.

Re:Ask HN: Modern Day Equivalent to HyperCard? by WillAdams on Thursday May 02, 2024 @07:36AM (#40234957)
Agreed. It would be nice if more apps would build scripting in.

Krita has: https://scripting.krita.org/lessons/introduction

while for Inkscape there is: https://inkscape.org/~pakin/%E2%98%85simple-inkscape-scripti...

Re:Ask HN: Modern Day Equivalent to HyperCard? by miguel-muniz on Thursday May 02, 2024 @10:15AM (#40236572)
> I wish there were an offline environment like that built into firefox

Webmaker[1] isn't built in, but it does offer an offline code playground

[1] https://webmaker.app/