News for hackers. Stuff that matters.

spicypete

Re:Incoming: Vanguard On-Demand on Thursday June 25, 2026 @12:28AM (#48668885)
Great, refreshing read and a welcome break from the AI slopalypse.
Re:GitHub Copilot Coding Agent on Tuesday May 20, 2025 @12:52AM (#44037919)
(from a companies perspective, this is true). As a developer, you may not be paid by the task -- If I finish something early, I start work on the next thing.
Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @02:19PM (#43635468)
In the spirit of constructive feedback, I filed an issue for you: https://github.com/reteps/dockerfmt/issues/18

I fixed this in the 0.2.8 release https://github.com/reteps/dockerfmt/releases/tag/0.2.8.

Relevant reading about the `&&` normalization. https://pkg.go.dev/encoding/json#Marshal

Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @01:44PM (#43634999)
Then they can use one of the 14 in the `tests` directory :) https://github.com/reteps/dockerfmt/tree/main/tests
Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @12:16PM (#43633772)
What I can do for you is fix the bugs promptly! I resolved the bugs in the `0.2.7` release. I haven't graduated college yet and don't have a full time job, so my QA skills are still improving.
Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @12:13PM (#43633727)
This is a valid point -- I replied to why this is the way it is her: https://news.ycombinator.com/item?id=43629049. I understand it's not ideal for many, and I am open to PRs!
Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @01:28AM (#43629150)
I am certainly not in the business of writing my own shell parser ;) Though this is a fair point -- I think I could get a more rich level of control over the output by hooking into their parser, albeit with a higher level of complexity.
Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @01:06AM (#43629049)
I use `mvdan/sh` [1] under the hood for processing the commands. So it will reformat

  if [ foo ] ; then
    bar
  fi
to

  if [ foo ]
  then
    bar
  fi
And also format your example to

  foo
  bar
In this type of situation, it becomes a little trickier to disambiguate when I need to add semicolons and a backslash, and when I need to add only backslashes. If you use `&&` -- you have disambiguated the two cases so I can format it.

[1] https://github.com/mvdan/sh

Re:Dockerfmt: A Dockerfile Formatter on Wednesday April 09, 2025 @12:20AM (#43628837)
Is there any reason you prefer `set -e` over `&&`? I'm curious if this is a readability thing.
Re:Dockerfmt: A Dockerfile Formatter on Tuesday April 08, 2025 @11:35PM (#43628669)
Hi there — I’ll try to distribute a docker release of the binary tomorrow!
Re:Using GDB on Apple Silicon with Rosetta Emulation on Monday December 04, 2023 @06:44PM (#38524908)
I got GDB working on M1 with Rosetta - it's super fast and I wanted to show off how you can do it!