Giter Club home page Giter Club logo

Comments (6)

scottgarner avatar scottgarner commented on June 21, 2024

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.

scotthmurray avatar scotthmurray commented on June 21, 2024

Fantastic to see you already have this test up and running!

from processing-hour-of-code.

scottgarner avatar scottgarner commented on June 21, 2024

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:

  1. User arrives at a result they're happy with.
  2. 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.
  3. The site silently creates a Gist, grabs its ID and generates a url to view it. Something like `http://hello.processing.org/display/#123456'.
  4. 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..."
  5. User hits submit and it goes off into the world.
  6. Vistors clicking the link are sent to the display page, which fetches the Gist and displays the sketch.

from processing-hour-of-code.

shiffman avatar shiffman commented on June 21, 2024

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.

scottgarner avatar scottgarner commented on June 21, 2024

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.

scottgarner avatar scottgarner commented on June 21, 2024

I think our approach is settled. I'll file additional issues as needed for specifics.

from processing-hour-of-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.