• 0 Posts
  • 716 Comments
Joined 3 years ago
cake
Cake day: June 21st, 2023

help-circle

  • What I usually push for is that every CI task either sets up the environment or executes that one command™ for that task. For example, that command can be uv run ruff check or cargo fmt --all -- --check or whatever.

    Where the CI-runs-one-script-only (or no-CI) approach falls apart for me is when you want to have a deployment pipeline. It’s usually best not to have deployment secrets stored in any dev machine, so a good place to keep them is in your CI configs (and all major platforms support secrets stored with an environment, variable groups, etc). Of course, I’m referring here to work on a larger team, where permission to deploy needs to be transferrable, but you don’t really want to be rotating deployment secrets all the time either. This means you’re running code in the pipeline that you can’t run locally in order to deploy it.

    It also doesn’t work well when you build for multiple platforms. For example, I have Rust projects that build and test on Windows, MacOS, and Linux which is only possible by running those on multiple runners (each on a different OS and, in MacOS’s case, CPU architecture).

    The compromise of one-script-per-task can usually work even in these situations, from my experience. You still get to use things like GitHub’s matrix, for example, to run multiple runners in parallel. It just means you have different commands for different things now.














  • I recently built a voice-to-text agent in Rust

    Agent…? Uh, okay, let’s just use that word for everything now.

    I did not have the Rust toolchain installed on my system. I simply told the coding agent that I use Nix, and it figured out how to pull in the entire Rust toolchain through Nix, compile the project inside an isolated shell and produce a working binary.

    Sorry, where is the part where you built something?

    Anyway, NixOS gets a lot of praise. Maybe it’s something I should try if Manjaro doesn’t survive its current drama (though it seems like they have a path forward now).


  • TehPers@beehaw.orgtoProgramming@programming.devThe diminished art of coding
    link
    fedilink
    English
    arrow-up
    28
    arrow-down
    1
    ·
    7 days ago

    What’s with all these articles assuming some fictional reality that coding is replaced by LLMs now? Find me a tool that can build any software anyone wants to build, then ask yourself if you trust that tool to do your taxes for you (if you’re in the US anyway), book an entire 3 week $10k vacation for you, manage your finances and set budgets for you, and so on.

    What software does the author think people will build with these tools that’s “fast fashion” style slop? Even assuming a non-coder wants some random one-off software for something, in what world would they ask a LLM to write it for them rather than look for an existing program that does what they want?

    In the dev world, LLMs have proven that they cannot build production-quality software by themselves. They can build pretty demos maybe, but everything from Amazon’s tool recreating prod to whatever the fuck the Windows devs are doing shows that trusting an LLM to work on real software will eventually backfire.