Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live coding #3

Closed
shiffman opened this issue Jun 16, 2016 · 5 comments
Closed

live coding #3

shiffman opened this issue Jun 16, 2016 · 5 comments

Comments

@shiffman
Copy link
Member

Two items came up in meeting with @catarak today.

  1. Live coding should be a preference that can be disabled. (Play, stop, and pause buttons?). If live coding becomes a hassle to maintain / implement it can be saved as a feature for later.
  2. It would be nice to figure out a way to not destroy and recreate the canvas as users type to eliminate the flashing.
@joancc
Copy link

joancc commented Jun 24, 2016

Hi, I'd like to suggest using Esprima to validate users code syntax before reloading the preview as a way to help minimize the flashing from item 2?@toolness introduced me to this tool a while back for a similar web editor project with codemirror, and I believe he might be using it in his p5 widget too.

@catarak
Copy link
Member

catarak commented Jun 24, 2016

I 100% support this idea! It is definitely in the pipeline, but thanks for pointing this out.

@indefinit
Copy link

Is there a way we can let the user know they are in live coding mode when the play button is pressed? It caught me by surprise while I was testing console output. This is so cool, by the way!

@catarak
Copy link
Member

catarak commented Aug 11, 2016

The plan is to make a preference or toggle that will turn the autorun on or off for just this reason.

@shiffman
Copy link
Member Author

Also, it's a subtle distinction but we discussed a bit during user testing the other day that technically this is not "live coding" as the sketch is restarting each time a change is made, rather than simply interpreting the new code as it is running. For now, I might lean towards the "auto-run" being off by default with an option to enable, but perhaps I'm being too conservative.

@catarak catarak added this to the Sprint 09/06/2016 milestone Sep 1, 2016
@shiffman shiffman mentioned this issue Sep 16, 2016
@catarak catarak closed this as completed Sep 29, 2016
@REAS REAS mentioned this issue Oct 6, 2016
catarak pushed a commit that referenced this issue Sep 14, 2020
lindapaiste pushed a commit that referenced this issue Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants