News for hackers. Stuff that matters.

oweiler

Re:IceCream – Never use print() to debug again on Sunday July 19, 2026 @03:21AM (#48965700)
Or use tests and/or a debugger. Which gives you all the listed benefits w/o an additional dependency.
Re:Docker Offload on Monday April 06, 2026 @02:02PM (#47664510)
So like Testcontainers Cloud?
Re:The 1987 Game "The Last Ninja" was 40 kilobytes on Monday April 06, 2026 @10:39AM (#47661537)
That game felt like a graphics demo though. Almost unplayable.
https://github.com/helpermethod/pk/blob/main/pk

I have a tiny shell function to kill whatever is listening on that port

Re:Maybe comments should explain 'what' (2017) on Sunday January 04, 2026 @07:22AM (#46487291)
His first "what" example actually explains "why" clear is called two times. The code perfectly captures the "what".
Re:Installing Java in 2025, and Version Managers on Friday November 28, 2025 @03:50AM (#46076853)
You can also check in an .sdkmanrc into each respective project which defines the required Java version.

Then SDKMAN! will perform the switch automatically when you enter the directory.

https://sdkman.io/usage/#env-command

Re:Chibi Izumi: Phased dependency injection for TypeScript on Thursday November 06, 2025 @02:22PM (#45839170)
It just gets rid of the boilerplate. Never had a problem with ctor injection in Spring.
Re:We Programmers Need "Results" on Friday October 31, 2025 @06:40AM (#45770502)
Use the builtin Result class and runCatching/fold and be done with it. Yes, it has shortcomings but works well enough in practice.
Re:Page Object (2013) on Monday September 15, 2025 @02:24AM (#45246694)
This is honestly the main reason I prefer Playwright to Cypress. Playwright leans heavily into using POs, while for some reason Cypress doesn't.

So in almost every project the Cypress tests are a procedural mess, while the Playwright tests are mostly well structured.

I know that Cypress has other patterns for dealing with this but they never seem to get applied.

I use Starship without any customizations and its good enough for my every day use.
Reminds me of a game I've played on C64 AS a kid.
Re:TIL: timeout in Bash scripts on Monday May 26, 2025 @11:31AM (#44098400)
Bash has no standard library. It has builtins, and commands. And commands are just external tools.
Re:By Default, Signal Doesn't Recall on Wednesday May 21, 2025 @04:08PM (#44055758)
I have read almost the same thing 5yrs ago. And 5yrs before that. And so on.
Re:Redis is open source again on Thursday May 01, 2025 @02:33PM (#43861610)
Yet. It's a drop-in replacement, and both faster and cheaper.
Re:Strings Just Got Faster on Thursday May 01, 2025 @06:56AM (#43856047)
It's basically a "final" final value, which allows some optimization which were not possible yet. And the reason why final not meant "final" in all cases was serialization.
Re:Pinball Brothers – A Swedish-Italian Pinball Company on Saturday April 12, 2025 @06:46AM (#43663246)
Can such a company actually be profitable? The market seems tiny.
Re:Magnesium Self-Experiments on Sunday March 09, 2025 @04:56AM (#43307416)
When I started running I had horrible cramps and the mg made them much less severe.

Running for a year now, it doesn't seem to make a difference.

Re:Why “alias” is my last resort for aliases on Wednesday March 05, 2025 @02:26PM (#43271071)
`alias` is shell builtin.
Re:Why “alias” is my last resort for aliases on Wednesday March 05, 2025 @02:23PM (#43271030)
This. Functions are almost always the better solution.
Re:macOS Tips and Tricks (2022) on Friday February 28, 2025 @04:49AM (#43203726)
This is the first thing I recommend to new Mac users.
Re:JetBrains Fleet drops support for Kotlin Multiplatform on Wednesday February 12, 2025 @01:01PM (#43027894)
Performance is one problem, but much worse are the countless bugs which plague the last releases.
Re:Shell-ish scripting in Go with ease on Saturday February 01, 2025 @10:06AM (#42898853)
Did you do thorough error handling in Bash?
Re:How rqlite is tested on Wednesday January 15, 2025 @03:22PM (#42716394)
That's why I prefer test frameworks that make parametrised tests so easy that they become the default.

Kotest and Spock are such frameworks.

Re:Distributed Transactions at Scale in Amazon DynamoDB on Wednesday January 15, 2025 @08:04AM (#42710385)
Aurora Serverless Postgres e.g.
Re:Today I learned that bash has hashmaps (2024) on Saturday January 11, 2025 @07:21AM (#42665399)
They are also slow AF because a lookup takes linear time.
Re:Be Aware of the Makefile Effect on Saturday January 11, 2025 @07:04AM (#42665319)
That's why suggestions like RTFM! are stupid. I just don't have time to read every reference documentation of every tool I use.
Re:Java in the Small on Saturday December 21, 2024 @02:32AM (#42478067)
Kotlin is much better in that regard.

I use Kotlin scripts (.main.kts) as a replacement for Bash scripts for years.

You can inline dependencies without additional tooling, and Kotlin is still much more expressive than Java.

Older »