play.golang.org has button to share code. I'd like to add a similar button to https://code.google.com/p/go-play/. Is this possible? That is, is there a public API for adding code to play.golang.org?Related, I don't see mechanism for deleting the shared code once it is on the there. Is there one? If not, how long do the shared code last?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Don't know about the API, but it would be nice if shared code actually lasted "forever", otherwise old references (emails) will quickly fill up with dangling links.
Andrew
--
On Friday, April 19, 2013 10:25:00 AM UTC-4, Andrew Gerrand wrote:On 16 April 2013 05:32, Péter Szilágyi <pet...@gmail.com> wrote:
Don't know about the API, but it would be nice if shared code actually lasted "forever", otherwise old references (emails) will quickly fill up with dangling links.
play.golang.org snippets won't go away unless we have a reason to remove them. "forever" seems a reasonable expectation.While this is vague enough that it can't be the wrong thing to do, my gut says it's not ultimately the right thing either.I imagine already http://play.golang.org is already filled with hundreds (if not thousands) of "hello world" programs because people were trying out play.golang.org and happened to click on the "share" button to see how it works.Yes, even at thousands or millions of hello programs that's probably not a lot of disk space. But other than showing off how your filesystem can handle lots of (useless) files (probably in a single directory), this can't do anyone much good. Storing more stuff and garbage has to slow things down at least a little bit if not cause problems for systems administration.
Long term, I suspect what will probably be desired is something more aligned to github gists where the shared code is associated with a person and that person then can decide to remove the code.
--Andrew
And gigabytes of hello world is a lot of hello worlds.