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

Programming

17325 readers
100 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 !webdev@programming.dev



founded 1 year 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@programming.dev 14 points 7 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@programming.dev 1 points 7 months ago (1 children)

Thanks @Lodra@programming.dev ,

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@programming.dev 1 points 7 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.

[–] key@lemmy.keychat.org 12 points 7 months ago

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

[–] DmMacniel@feddit.de 6 points 7 months ago
[–] pztrn@bin.pztrn.name 3 points 7 months ago (2 children)
[–] it_a_me@literature.cafe 5 points 7 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/

[–] Windex007@lemmy.world 3 points 7 months ago* (last edited 7 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@programming.dev 1 points 7 months ago

Thank you very much @Windex007@lemmy.world , any names for GitHub alternatives ?

[–] pztrn@bin.pztrn.name -2 points 7 months ago (1 children)
[–] abbadon420@lemm.ee 3 points 7 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

[–] mox@lemmy.sdf.org 3 points 7 months ago* (last edited 7 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@programming.dev 1 points 7 months ago

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

[–] krewllobster@beehaw.org 1 points 7 months ago