Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Gamma ( GammaGames@beehaw.org )  to Programmer Humor@programming.devEnglish · 2 years ago

Modern self-inflicted problems require modern solutions

external-link
message-square
18
link
fedilink
31
external-link

Modern self-inflicted problems require modern solutions

Gamma ( GammaGames@beehaw.org )  to Programmer Humor@programming.devEnglish · 2 years ago
message-square
18
link
fedilink
alert-triangle
You must log in or register to comment.
  • ma1w4re ( ma1w4re@lemm.ee ) 
    link
    fedilink
    arrow-up
    10
    ·
    2 years ago

    Looks like another make. What are the differences though…

    • Ephera ( Ephera@lemmy.ml ) 
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Here’s their FAQ answer for that: https://just.systems/man/en/what-are-the-idiosyncrasies-of-make-that-just-avoids.html

      I imagine, there’s various smaller differences in how the recipes are defined, but yeah, this is the big one.

      I find that Just feels a lot like just a collection of script files, with built-in error handling for argument parsing and during execution. And it also offers easier discovery of available tasks and how to use them.

      • Gamma ( GammaGames@beehaw.org ) OP
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        Yes! It reminds me a bit of python’s click library but for bash

        • ma1w4re ( ma1w4re@lemm.ee ) 
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          I’m just gonna put this little bad boy into my stash of interesting libraries… Here we go. 😖

          • Gamma ( GammaGames@beehaw.org ) OP
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 years ago

            ⭐️

      • ma1w4re ( ma1w4re@lemm.ee ) 
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        aight, why not, might as well try it out :D

    • Gamma ( GammaGames@beehaw.org ) OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      It’s pretty much just make, but I find it easier to work with

      • ma1w4re ( ma1w4re@lemm.ee ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        I see, I see.

  • Gamma ( GammaGames@beehaw.org ) OP
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    Discovered just yesterday, my life is easier

    • λλλ ( lambda@programming.dev ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Neat.

    • Xirup ( Xirup@yiffit.net ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      This looks awesome to use with Qemu, thanks.

      • Gamma ( GammaGames@beehaw.org ) OP
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        Spreading the good word 🙌

  • Kache ( Kache@lemm.ee ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    I’ve often been able to alias drun='docker compose run --rm --build' and simplify down to:

    drun test
    

    Should be able to encode all those wayward args into docker-compose.yml or Dockerfile and only use vanilla docker commands – that’s the whole point of containerization

    • Gamma ( GammaGames@beehaw.org ) OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      The env file is the weirdest part, the container itself has a required environment variable and if I don’t pass it in command line (only have it in the test compose file) the base compose fails because it has no port.

      Most of the other commands are to merge the compose files so I can keep my base compose file clean!

      • Kache ( Kache@lemm.ee ) 
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 years ago

        Simpler to keep everything in one compose file if you can, under a test service that doesn’t build unless explicitly named

        Un-weird that env var and use the normal, boring feature of defining environment under your test service

        • Gamma ( GammaGames@beehaw.org ) OP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          The variable is already in the environment, it just doesn’t have a default because it’s required for each container

          • Kache ( Kache@lemm.ee ) 
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            You can reference envs from the host in docker compose, so code it in instead of manually passing tribal knowledge in: https://stackoverflow.com/a/73826410

            • Gamma ( GammaGames@beehaw.org ) OP
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 years ago

              Yep, you can also set defaults, required, alternates, etc

              This discussion did help me realize that my problem was that I forgot an !override on one of my service’s options. Now it’s just merging the two compose files and setting the profile, thanks for that!

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 239 users / day
  • 1.57K users / week
  • 5.09K users / month
  • 8.2K users / 6 months
  • 464 local subscribers
  • 34K subscribers
  • 1.63K Posts
  • 26.9K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code