IceCream – Never use print() to debug again 4 days agoOr use tests and/or a debugger. Which gives you all the listed benefits w/o an additional dependency. 0ThreadHN
The 1987 game “The Last Ninja” was 40 kilobytes 4 months agoThat game felt like a graphics demo though. Almost unplayable. 0ThreadHN
Show HN: Sonar – A tiny CLI to see and kill whatever's running on localhost 4 months agohttps://github.com/helpermethod/pk/blob/main/pkI have a tiny shell function to kill whatever is listening on that port 0ThreadHN
Maybe comments should explain 'what' (2017) 7 months agoHis first "what" example actually explains "why" clear is called two times. The code perfectly captures the "what". 0ThreadHN
Installing Java in 2025, and Version Managers 8 months agoYou 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 0ThreadHN
Chibi Izumi: Phased dependency injection for TypeScript 9 months agoIt just gets rid of the boilerplate. Never had a problem with ctor injection in Spring. 0ThreadHN
Result is all I need 9 months agoUse the builtin Result class and runCatching/fold and be done with it. Yes, it has shortcomings but works well enough in practice. 0ThreadHN
Page Object (2013) 10 months agoThis 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. 0ThreadHN
Starship: The minimal, fast, and customizable prompt for any shell 1 year agoI use Starship without any customizations and its good enough for my every day use. 0ThreadHN
DropZap World – My falling block game with lasers, released after years of work 1 year agoReminds me of a game I've played on C64 AS a kid. 0ThreadHN
TIL: timeout in Bash scripts 1 year agoBash has no standard library. It has builtins, and commands. And commands are just external tools. 0ThreadHN
By default, Signal doesn't recall 1 year agoI have read almost the same thing 5yrs ago. And 5yrs before that. And so on. 0ThreadHN
Redis is open source again 1 year agoYet. It's a drop-in replacement, and both faster and cheaper. 0ThreadHN
Pinball Brothers – A Swedish-Italian Pinball Company 1 year agoCan such a company actually be profitable? The market seems tiny. 0ThreadHN
Magnesium Self-Experiments 1 year agoWhen 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. 0ThreadHN
Why “alias” is my last resort for aliases 1 year agoThis. Functions are almost always the better solution. 0ThreadHN
macOS Tips and Tricks (2022) 1 year agoThis is the first thing I recommend to new Mac users. 0ThreadHN
JetBrains Fleet drops support for Kotlin Multiplatform 1 year agoPerformance is one problem, but much worse are the countless bugs which plague the last releases. 0ThreadHN
How rqlite is tested 2 years agoThat's why I prefer test frameworks that make parametrised tests so easy that they become the default.Kotest and Spock are such frameworks. 0ThreadHN
Distributed Transactions at Scale in Amazon DynamoDB (2023) 2 years agoAurora Serverless Postgres e.g. 0ThreadHN
Today I learned that bash has hashmaps (2024) 2 years agoThey are also slow AF because a lookup takes linear time. 0ThreadHN
Be Aware of the Makefile Effect 2 years agoThat's why suggestions like RTFM! are stupid. I just don't have time to read every reference documentation of every tool I use. 0ThreadHN
Java in the Small 2 years agoKotlin 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. 0ThreadHN
Advent of Code 2024 2 years agoI will probably solve the first 7 puzzles like every year and then just stop. 0ThreadHN
PicoCLI – Powerful command-line parsing library for Java 2 years agoGreat library for scripting, especially in combination with GraalVM and JBang! 0ThreadHN
Curlwind: No-Build Tailwind 2 years agoWhile web dev remains a shit show, it's also amazing how much innovation is happening there.Curlwind looks super nice. 0ThreadHN
Innovation heroes are a sign of a dysfunctional organization 2 years agoWhat's missing from the article: The innovation heroes will not only leave, they will most likely also burn out. 0ThreadHN