News for hackers. Stuff that matters.

battesonb

Do you have a write up about this? Actions are great, but my #2 gripe with actions, after the tenuous security posture, is that the default practice is not to run/validate actions locally.
Re:I am sorry, but everyone is getting syntax highlighting wrong on Wednesday October 15, 2025 @04:51PM (#45598252)
I'm surprised not to see any comments about rainbow brackets for the Lisp family of languages. I just started in a non-Emacs environment to avoid learning two things, but colourful brackets have made the paradigm shift a lot easier for me.
Re:I am sorry, but everyone is getting syntax highlighting wrong on Wednesday October 15, 2025 @04:43PM (#45598180)
Agreed on this. Especially with the return keyword argument presented in the same article.

An assertion of correctness relating to a matter of taste is, ironically, going to be trivially falsifiable. Even though I found myself personally agreeing with most of what the author had to say (for my tastes)! I definitely want to try lifting the visual importance of comments.

Re:More random home lab things I've recently learned on Tuesday October 14, 2025 @02:54AM (#45577017)
I can vouch for Mealie. My wife and I run it locally for family recipes and to pull down recipes from websites. I have a DNS ad blocker running, but most recipe sites are still a mess to navigate on mobile.

You can also distill recipes down. I find a lot of good recipes online that have a lot of hand-holding within the steps which I can just eliminate.

Re:Pixel 10 Phones on Wednesday August 20, 2025 @02:42PM (#44964875)
I'm exactly that person. Always running an older device and lamenting the lack of small devices. Unfortunately, the mainstream wants big devices, so we all get big devices.
Re:Collision Detection (2015) on Sunday January 21, 2024 @02:17AM (#39076376)
We somewhat have this with object picking. You can render objects with unique IDs to a framebuffer, so it's all in parallel. Then you just query the buffer at your mouse coordinates.

Of course you lose some properties of the object and it's on a one frame delay. There's the added complexity of collision response, working in 3-dimensions, etc. But, to the point of just "eyeballing" collision, we can actually parallelize it!

Re:Cog: Use Python in your source files to generate pieces of code on Wednesday December 13, 2023 @06:26AM (#38625779)
I look over at Zig with envy every time I have to write and, inevitably, look up how to write a Rust macro.
I started writing a static analysis tool for the BNF metasyntax. Basically one half of a parser generator, which I do not intend to implement as it's all just for fun!
Re:Ask HN: Is (n)vim worth the trouble? on Friday November 17, 2023 @02:59AM (#38300777)
I switched to Neovim because of RSI. I don't think I would have been able to keep my job without it. I know the other editors have Vim emulation plug-ins, but I found I would always reach for the mouse if I didn't know the keystroke(s).

There are definitely moments that result in a bit of time sinking. Overall the tradeoffs work out for me.

Re:Ask HN: Could you share your personal blog here? on Tuesday July 04, 2023 @05:03PM (#36592480)
https://battesonb.github.io

A relatively new blog. I've picked up posting more frequently in the last few weeks. Right now, I'm working through making a simple game end-to-end using WebGPU and TypeScript. I enjoy revisiting the linear algebra involved and focusing on something different to my work day.