Comments (6)
Working backwards, I started with a simple setup to grab a Gist and feed it to Processing.js:
http://hoc.j38.net/display/#6950974
After adding a method to create a new Gist, the ability to share will pretty much be in place.
from processing-hour-of-code.
Fantastic to see you already have this test up and running!
from processing-hour-of-code.
I just pushed some new code with a cleaner architecture and very early support for creating new Gists.
I'm feeling slight pangs of guilt creating these anonymous Gists that I can't delete and that will just sit stagnant forever, but there doesn't seem to be anything I can do about that without requiring authentication of some kind.
A bigger question is exactly how the sharing should work. Can one just share at any time and basically have that sketch set in stone at the shared URL? There's support in the API for editing Gists and having multiple files in a single Gist, but that definitely would add a lot of complexity.
Here's the simplest interaction that I think might work:
- User arrives at a result they're happy with.
- They either click a single share button that presents them with multiple options (Facebook, Twitter, Email) or we have discrete buttons up front for each service.
- The site silently creates a Gist, grabs its ID and generates a url to view it. Something like `http://hello.processing.org/display/#123456'.
- We can either let the user edit the message that goes along with it, or just use a canned message: "Check out my first program at..."
- User hits submit and it goes off into the world.
- Vistors clicking the link are sent to the display page, which fetches the Gist and displays the sketch.
from processing-hour-of-code.
I think we should keep this dead simple and just provide an opportunity to share at the very end of the experience (the interaction you outlined sounds just right). This isn't a new platform for users to develop Processing sketches and share them, it's just a simple feature for the purposes of wrapping up the tutorial. One thing we might consider, however, is hitting a server side script to at least record a list of all the saved gists so we can track some overall stats about what people are making / sharing? But I think that statement adds something to our to do list and the more we can strip away and keep it simple the better.
from processing-hour-of-code.
I was hoping there'd be some easy way to tag them or something so they could be listed straight from GitHub. That doesn't seem to be the case. The only way I can see to form collection on that end is to make a fake account and store them all there.
Writing a little web service to collect this on Heroku would be trivial, so if there's time leftover that might be an option.
At a bare minimum, any links that are shared and clicked should show up in Google Analytics if it tracks fragment identifiers (#), which I think it can.
from processing-hour-of-code.
I think our approach is settled. I'll file additional issues as needed for specifics.
from processing-hour-of-code.
Related Issues (20)
- Share button highlighting? HOT 2
- Remove next lesson button from the last section. HOT 4
- Code buttons cover code in editor that can't scroll past HOT 1
- page that accumulates a bunch of things made with the tutorial HOT 15
- code comments
- Typo on About page HOT 1
- Exit confirmation during all exercise sections HOT 2
- make it more clear that size() is needed when you move out of tutorial? HOT 1
- Vimeo Player Issues HOT 6
- Revisiting Video Navigation HOT 8
- video tutorial shapes not showing code examples/screen HOT 2
- No Sound On Initial Play HOT 1
- tracking for 2016 Hour of Code HOT 4
- www.parsecdn.com no longer exists HOT 7
- Spam / Security HOT 2
- Misalignment of the title bar HOT 2
- enforce https? HOT 1
- Forum link HOT 1
- Videos unavailable HOT 3
- "Back 10 sec." button closes and breaks editor windows in tutorial HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processing-hour-of-code.