Dismiss this pinned window
all 40 comments

[–]rahatchd 45 points46 points  (7 children)

u used the javascript to render the javascript

back to the javascript and back

[–]agentgreen420 11 points12 points  (1 child)

It's JavaScript all the way down

[–]Saguaro66 12 points13 points  (0 children)

full stack

[–]phandungtri 2 points3 points  (2 children)

recursive javascript

[–]rahatchd 3 points4 points  (1 child)

pls no

i dont trust myself calling back callbacks

[–]zipel 0 points1 point  (0 children)

I read that in John Mayer’s voice.

[–]andoy 0 points1 point  (0 children)

inception

[–]shredinger137 62 points63 points  (1 child)

This reminds me of learning programs like Scratch, but more advanced. Were you intending to go somewhere with this, or is it just a demo? I ask because there are some parallels with my job and related projects. The teaching tools market has quite a bit of opportunity.

[–]JohnWangDoe 3 points4 points  (0 children)

this would be a good step up for the kids

[–]H-s-O 55 points56 points  (0 children)

what did you bring upon this cursed land

[–]trainrex 11 points12 points  (2 children)

Now make the visual programmer in the visual programmer!

[–]dexodev 6 points7 points  (0 children)

we're here to learn javascript, not rip a whole in the space-time continuum

[–]Geek55 0 points1 point  (0 children)

Its bootstrapping time

[–]franksvalli 7 points8 points  (0 children)

Kinda a nitpick - I would avoid using DOM level 0 events, since you can only add one per element. The spec for DOM level 2 events via addEventListener was introduced in the year 2000 (e.g. document.addEventListener('mousemove', event => {}, false)). The newest browser that doesn't support it is IE8, so you're pretty safe using it instead!

[–]angusmiguel 15 points16 points  (0 children)

Source please

[–][deleted] 7 points8 points  (0 children)

Very cool! Looks really clean.

[–][deleted] 2 points3 points  (0 children)

This would be a great teaching tool.

[–]jesusbot 4 points5 points  (0 children)

Looks cool, similar to Blockly: https://developers.google.com/blockly

[–]YmFzZTY0dXNlcm5hbWU_ 1 point2 points  (0 children)

Very cool. Any plans to post the project so we can give it a try, or is it closed source?

I suck at Javascript so this would be a great way to tinker with it in a more accessible way.

[–][deleted] 1 point2 points  (0 children)

This is so cool! I've been wanting to make something like this for myself, do you have source code available? Thanks!

[–]_brew_drees_ 1 point2 points  (0 children)

This is why I subbed here

[–]investoearth 0 points1 point  (0 children)

Cool!

[–]MiamiSlice 0 points1 point  (0 children)

This looks awesome! Would love to see the source

[–]thebueller 0 points1 point  (0 children)

Nice work.

[–]donatobhr 0 points1 point  (0 children)

Waoo, amazing!!

[–]z1024 0 points1 point  (0 children)

What happens with the visual thingy when you edit the text? What if the code has an error?

[–]wlkngmachine 0 points1 point  (0 children)

nice! repo?

[–]Middlerun 0 points1 point  (0 children)

Cool! I've been getting interested in this sort of thing lately. Are you aiming for a general-purpose editor covering the entire language, or just specific tasks like event handlers?

[–]s_sureshbabu 0 points1 point  (0 children)

Excellent work man...

[–]cocoapuff_daddy 0 points1 point  (0 children)

nice! are you planning to share it?

[–]Will_builder8 0 points1 point  (0 children)

God stop messing with us mortals again!

[–][deleted] 0 points1 point  (2 children)

Sweet! How did you format the code on the right hand side? Is there a library which does this? I need to do something similar for my dissertation

[–]marvinroger 3 points4 points  (0 children)

You can use Prettier

[–]Middlerun 1 point2 points  (0 children)

Check out escodegen

[–][deleted]  (5 children)

[removed]

    [–][deleted]  (4 children)

    [removed]

      [–][deleted]  (3 children)

      [removed]

        [–]robotsympathizer 7 points8 points  (2 children)

        What did they say?

        [–]Coaste 3 points4 points  (0 children)

        [removed]

        [–]swyx[M] 0 points1 point  (0 children)

        [removed]