• Eager Eagle
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    2 days ago

    Tldr no problems with makefiles were addressed, this is only a superficial introduction to it that doesn’t match the title of the post. Use just if you can.

    • thingsiplay@lemmy.ml
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      2 days ago

      The only issue with just is, that it is another third party tool to depend on. The huge benefit of make is, that this is a trusted tool in core developer toolset. If I were to use just, why not use something more standard like ninja or cmake?

          • lavember@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            nix devshells let devs not worry about preinstalled deps like just, comes in handy esp. with larger teams and monorepos. thats how I managed to introduce stuff outside the js ecossystem to my js-centered peers in our project, they just pull the new stuff and the environment installs whatever it needs. its better also because you can make it reproducible like to the exact dependency version (node/uv/git/whatever) so no issues of “works on my machine” arise

      • onlinepersona@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        1 day ago

        make is just installed by default. Windows is also just installed by default. Using that as an argument to keep something is questionable.

        And to answer your question “why no ninja or cmake?” Because they are complicated af and are for building (mostly) C++ horrors.

        just is a handy way to save and run project-specific commands.

        It’s being used more because it’s simple and easy to run. It’s not a build system or whatever make (poorly) tried to be.

        • thingsiplay@lemmy.ml
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          1 day ago

          make is just installed by default.

          No, its not installed by default. But it is a standard tool.

          Windows is also just installed by default.

          This is irrelevant to our discussion. We are talking about optional tools for developers and Windows is not a tool.

          Using that as an argument to keep something is questionable.

          It is not questionable to have an argument to use standard tools only. To me it is questionable to question that argument at all.

          just is not an established standard tool, compared to make or ninja or cmake. So any objection with the argument its not a standard tool is valid. It does not become invalid just because you said its questionable argument, for no reason.

          • Eager Eagle
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            1 day ago

            It is not questionable to have an argument to use standard tools only.

            I think it is. It’s a made up constraint that might give you some peace of mind, but it’s not impactful when it takes one command line and a few seconds to install it.

            I don’t understand why anyone would only use programs already installed on their machine, you are probably already using make to compile and install something that your machine is lacking.

            • thingsiplay@lemmy.ml
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              1 day ago

              In case you have reading comprehension problems, I said in case I use just, I would rather prefer using a different third party tool that is more adapted and quasi standards like ninja or cmake. just is not established yet and it doesn’t provide much over make to justify depending on yet another make tool, while there are already lot of projects depending on different make tools.

          • onlinepersona@programming.dev
            link
            fedilink
            arrow-up
            2
            arrow-down
            2
            ·
            1 day ago

            “I find saying it’s questionable questionable in itself”

            Lol, OK. Obviously you’re the bigger brain here. Can’t argue with that.

            • thingsiplay@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              1 day ago

              Nothing to do with big brain. You just don’t accept my objection. But it is a real concern to have, you just don’t care. That’s the difference. Because you can’t argue against it, so you invalidate it by saying its questionable.

      • Eager Eagle
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 day ago

        It depends on what you need. The uses I have for just are mostly as a command runner, so I gain no benefit from using a more complicated tool.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      Should be said, though, that just looks superficially similar, but is a very different tool.

      just is a way of aliasing commands/scripts. You can do that with make as well, by whacking .PHONY onto everything, but it really isn’t what it was built for.

      make is instead a way of defining rules for how to transform files into other files. For that transformation, you’ll then use commands/scripts, but it’s really about defining a whole build system based on the rules.

      Perhaps in other words, just works best, if your language already has a build tool that you just need to call with different flags.
      make is instead intended to be that build tool, and what it calls underneath is a compiler.