this post was submitted on 13 Mar 2024
5 points (63.2% liked)

Programming

17661 readers
216 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

Hi,

I'm looking something (a website ?) to quickly share code.

That have the following attribute

  • not especially need to register !
  • syntax highlight for a various languages (especially 🐍 Python )
  • users can upload modified version of the code
  • Can show the difference between versions (modified, added, removed ) with color and nice interface.
  • Something that respect as much the gnu philosophy (so nothing like Github etc..)

Thanks.

all 15 comments
sorted by: hot top controversial new old
[–] Lodra 14 points 9 months ago (1 children)

The admins just launched a bunch of new services, including Blocks. I’m not sure if it checks all of your boxes. But it’s an obvious choice to look into

[–] Corsair 1 points 9 months ago (1 children)

Thanks @[email protected] ,

This is looking great, sadly Opengist on which Blocks is based. is written in Go :/ and I can't support that[^1]

[^1]: Belong to google & https://go.dev/PATENTS

[–] Lodra 1 points 9 months ago

Well that’s an interesting take! What aspects are you opposed to?

IANAL but I did read through the patents agreement that you linked. It basically says do whatever you want with Go as long as it different infringe on Google patents. Which is pretty much backed by US law anyways and I assume other countries as well. The sketchy part is that your license is revoked as soon as they file a lawsuit rather than win it. Honestly, I’d be surprised if Google ever used this in a legal dispute because there would be a huge community backlash.

That also only applies to Go developers. You would only be a user for a tool written on Go. How does your using a tool written in Go translate to support for Google and its bad practices? Do you not use any software written in Go?

Sorry if this is sounding argumentative! I’m generally a big fan of Go and definitely opposed to Google and using its products. This is a topic that I haven’t considered before so my questions represent my sincere curiosity.

[–] [email protected] 12 points 9 months ago

A lot of the classic "pastebin"-type solutions get overrun by phishers and other scammers if they don't require registration.

[–] [email protected] 6 points 9 months ago
[–] [email protected] 3 points 9 months ago* (last edited 9 months ago) (1 children)

A pastebin with either automatic syntax highlighting or markdown code fences ought to work.

This one has most of what you asked, though I don't see a diff feature:
https://rentry.co/zpfbc5i6

[–] Corsair 1 points 9 months ago

Really cool ! (bookmarked*)
Just the essential !
to bad there isn't either a difference between versions or a history of the changes

[–] [email protected] 3 points 9 months ago (2 children)
[–] [email protected] 5 points 9 months ago

Standard forgejo shoutout. It is a fork of gitea with more features following the foss philosophy. It is codeberg's backend https://forgejo.org/2024-02-monthly-update/

[–] [email protected] 3 points 9 months ago* (last edited 9 months ago) (2 children)

https://news.ycombinator.com/item?id=34011581#:~:text=Background%20story%20seems%20to%20be,own%20community%20as%20a%20consequence.

TLDR; if, as OP mentioned as a desirable criterion:

Something that respect as much the gnu philosophy (so nothing like Github etc..)

Gitea might not specifically be the best self hosted GitHub clone to use.

I use it. I self host it. But if you're prioritizing FOSS philosophies, there are other GitHub clones that would fit the bill.

[–] Corsair 1 points 9 months ago

Thank you very much @[email protected] , any names for GitHub alternatives ?

[–] [email protected] -2 points 9 months ago (1 children)
[–] [email protected] 3 points 9 months ago

https://topaz.github.io/paste/ This one encodes you text or code entirely in the url. No signup, since it's just a github page

[–] [email protected] 1 points 9 months ago