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.

14 points

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

permalink
report
reply
1 point

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 ↩︎

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
12 points

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

permalink
report
reply
3 points
*

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

permalink
report
reply
1 point

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

permalink
report
parent
reply
3 points

Gitea. Self-hosted.

permalink
report
reply
5 points

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/

permalink
report
parent
reply
3 points
*

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

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.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
-2 points

Whatever.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

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



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments