It seems people have a hard time understanding the implications of licenses, so I have written a something to help with that.

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago
    1. AGPL. Strictest. You want a strict license. Don’t let people take advantage of you. I see no good reason to pick GPL when AGPL exists.
    2. LGPL. If you want people to be able to use it (but not modify it) without their code having to be FLOSS as well. Still quite strict relatively with everything below.
    3. Apache. Permissive license. If you really want a permissive license, this is the one to go for.
    4. MIT. Permissive but less explicit. Okay for super short code.

    Avoid at all costs CC0. CC0 explicitly does not give patent rights. MIT implicitly does.

    • paperplane@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      A good reason to pick GPL is if you want to allow GPL software to integrate yours and you don’t care that much about the AGPL clauses (e.g. because your app isn’t a server).

      CC0 might be a good fit for trivial template repos where you don’t want to burden downstream projects with having to include copyright notices.

      • paequ2@lemmy.today
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        you don’t care that much about the AGPL clauses (e.g. because your app isn’t a server).

        I’ve been thinking about this recently… Let’s say you develop some local CLI. You think it’s not a server, so you license as GPL.

        Later someone comes and offers your CLI as SaSS. They write the server piece that just calls your local CLI on their server and pipes the input and output between the server.

        So… should you always prefer AGPL over GPL?

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          I have thought about this a lot and done some research on it. Bear in mind, I’m far from an expert, just a curious dev, but I’ve found no reasons to favor GPL over AGPL when AGPL exists. I personally see AGPL as closing a loophole GPL didn’t think of.

          One thing I’d wondered if if maybe AGPL hasn’t been tested in court. It has. Not as much as GPL, and I don’t remember if it specifically was the online part, but I definitely found at least one court case involving AGPL code.

        • paperplane@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          What I mean is that you (IIUC) can’t use an AGPL library in a GPL app without relicensing the whole thing to AGPL. For many larger projects relicensing is a huge hassle and often a non-starter if there aren’t very good reasons for it.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Absolutely not! Avoid CC0! Stop spreading bad information. If you want a public domain dedication with fallback permissive license the best choice is (sadly) The Unlicense. It is the only public domain dedication with fallback permissive license approved by both FSF and OSI. It’s unfortunate because The Unlicense is still a crayon license.

        If you don’t want to burden some stream projects with including copyright notices, just don’t enforce it if you find people who forgot.

          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            1 year ago

            If your company won’t let you use MIT licensed software I don’t know what to tell ya. If your company won’t let you use MIT code, which FSF and OSI endorse, but will let you use CC0 code, which FSF and OSI do not endorse, then I really don’t know what to tell ya.

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      MIT - only good for tiny weekend projects like Xorg, Wayland, Mesa, Godot, Jenkins, MUSL, Node.js, Angular, Vue.js, React, Rust, Julia, F#, Rails, PyPy, Redox, and the Haiku Operating System.

      AGPL - good for serious projects that you want to be super successful. Widely used software that started off as AGPL includes………. uhh………wait…….ummm……. lemmy and Mastadon I guess?

    • paequ2@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      LGPL

      The license seems to be targeted towards languages like C/C++. On the other hand, languages like Go do a lot of static linking, so it may be impossible to comply with this license in Go.

      MPL may be a good alternative here.

        • paequ2@lemmy.today
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          If you statically link against an LGPLed library, you must also provide your application in an object (not necessarily source) format, so that a user has the opportunity to modify the library and relink the application.

          Yeah, I think this is the hard part with Go. I’ve never seen anyone do anything with objects in Go. Everything is compiled into 1 binary, often statically linked. I’m not sure it’s possible to build a Go binary by using object files.

    • snaggen@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Well, for specific licenses there are use cases for MPL, which is weak copy left. LGPL is trying to state that statical linking is not allowed, while MPL does. Also, EUPL have simmilar advantages over AGPL, plus that it have very clear defined legal juristiction. So, when it comes to specific licenses there are many reasons to use whatever licence you use. Just make sure you use a license that reflects your expectations.