4 ms·
Love the format with "live-coding". Is it git-based? Did you open source it?
by aenario 7y ago
Love the format with "live-coding". Is it git-based? Did you open source it?
- pomber 7y agothe blog source: https://github.com/pomber/site https://github.com/pomber/site the post source: https://github.com/pomber/site/blob/master/posts/build-your-own-react/index.mdx https://github.com/pomber/site/blob/master/posts/build-your-...
- capableweb 7y agoVery cool, thanks for sharing that! Now all that's missing is a "eval" button that runs the result and drops you in a repl to experiment with the results.
- porsager 7y agoHey, that's what Flems is for. Check out https://github.com/porsager/flems https://github.com/porsager/flems - a single include embeddable sandbox (coincidentally written in mithril as the original post references). It's also used for https://flems.io https://flems.io
- capableweb 7y agoHm, you seem a little to eager to promote your own stuff. This thread was about the "live-coding" aspect where the code updates on the left as you scroll down the post, so you can follow along with how the code is being built. I fail to see how your project does that. Yours seem like the standard code playground, so very different from what was linked earlier in the thread. Or I misunderstand or simply missed where the "live-coding together with text" comes in.
- porsager 7y agoHehe, you’re probably right about that, but you could script the live part with the api, and then get the eval part to update as you mentioned, and allow the user to play around at the same time. I'm sorry you didn't find it related.
- capableweb 7y agoNo harm done, just a few bytes stored on HNs servers somewhere so no worries :) Yeah, I guess using the implementation linked before + your solution would create what I wanted, so thanks anyways for sharing. Never know when someone might find it useful.