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

Explore easier sharing mechanisms #2733

Open
parlough opened this issue Nov 30, 2023 · 4 comments
Open

Explore easier sharing mechanisms #2733

parlough opened this issue Nov 30, 2023 · 4 comments
Labels
area-sharing type-enhancement A request for a change that isn't a bug

Comments

@parlough
Copy link
Member

parlough commented Nov 30, 2023

An issue to discuss potential replacements to DartPad's current gist loading mechanism.

It would be nice if whatever used here could also be used by "Open in DartPad" in lightweight DartPads.

A few ways:

Upload snippet to some database or blob storage

  • Easy and flexible, but has potential concerns due to storing user-generated content (although anonymous)
  • Can automatically delete after not being accessed for X-days (entries can be exempted)
  • Easier to share than using a query parameter
  • The Go Playground uses datastore
  • Should be limited in size :)

Query parameter:

  • Has size limitations?
  • Hard to actually share. Potentially too large for sharing in some chat areas and social media platforms
  • No need to store anything on server

Extra:

@parlough
Copy link
Member Author

parlough commented Dec 6, 2023

As a note, the Flutter API docs could then migrate to use the shared mechanism rather than the custom solution we have for them now.

@johnpryan johnpryan added type-enhancement A request for a change that isn't a bug area-sharing labels Jan 8, 2024
@OnkelTem
Copy link

OnkelTem commented Aug 3, 2024

Hi folks.

I'm new to DartPad and I was really surprised that I basically cannot share my code.
Sure, I read the Sharing Guide but it doesn't seem to be usable - making gists, copy long numbers, manually constructing URLs, omg...

Can I share my code anyway like via a query parameter?

@OnkelTem
Copy link

OnkelTem commented Aug 3, 2024

  • Hard to actually share. Potentially too large for sharing in some chat areas and social media platforms

Of course. Yet, we can always use some trusted URL shorteners: let the size limit be their database problems :)

@Levi-Lesches
Copy link

@parlough Would you happen to know why the automatic Gist creation feature is no longer present? I thought it was pretty neat, being able to sign in with GitHub and pressing a button to save and share your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-sharing type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants