Better HN
topnewbestaskshowjobs
Log inSign up

oweiler

1,041 karma · joined Feb 24, 2014 (12y ago) · 544 submissions

Submissions

comment 4mo ago · link · parent

Or use tests and/or a debugger. Which gives you all the listed benefits w/o an additional dependency.

2.

Looking into the Past with Nano Banana Pro(jacob.gold ↗)

1 points · by oweiler · 4mo ago · discuss

comment 7mo ago · link · parent

So like Testcontainers Cloud?

comment 7mo ago · link · parent

That game felt like a graphics demo though. Almost unplayable.

comment 8mo ago · link · parent

https://github.com/helpermethod/pk/blob/main/pk

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

comment 10mo ago · link · parent

His first "what" example actually explains "why" clear is called two times. The code perfectly captures the "what".

comment 12mo ago · link · parent

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

comment 1y ago · link · parent

It just gets rid of the boilerplate. Never had a problem with ctor injection in Spring.

comment 1y ago · link · parent

Use the builtin Result class and runCatching/fold and be done with it. Yes, it has shortcomings but works well enough in practice.

comment 1y ago · link · parent

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.

11.

The Great Bitnami BSI Shift: What the New Costs and Licenses Mean for End Users(iits-consulting.de ↗)

1 points · by oweiler · 1y ago · discuss

comment 1y ago · link · parent

I use Starship without any customizations and its good enough for my every day use.

comment 1y ago · link · parent

Reminds me of a game I've played on C64 AS a kid.

comment 1y ago · link · parent

Bash has no standard library. It has builtins, and commands. And commands are just external tools.

comment 1y ago · link · parent

I have read almost the same thing 5yrs ago. And 5yrs before that. And so on.

comment 1y ago · link · parent

Yet. It's a drop-in replacement, and both faster and cheaper.

comment 1y ago · link · parent

Can such a company actually be profitable? The market seems tiny.

18.

A Bash function to detect if an alias overrides a command or builtin(github.com ↗)

3 points · by oweiler · 1y ago · discuss

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

`alias` is shell builtin.

comment 1y ago · link · parent

This. Functions are almost always the better solution.

comment 1y ago · link · parent

This is the first thing I recommend to new Mac users.

comment 1y ago · link · parent

Performance is one problem, but much worse are the countless bugs which plague the last releases.

comment 1y ago · link · parent

Did you do thorough error handling in Bash?

comment 1y ago · link · parent

That's why I prefer test frameworks that make parametrised tests so easy that they become the default.

Kotest and Spock are such frameworks.

comment 1y ago · link · parent

Aurora Serverless Postgres e.g.

comment 1y ago · link · parent

They are also slow AF because a lookup takes linear time.

comment 1y ago · link · parent

That's why suggestions like RTFM! are stupid. I just don't have time to read every reference documentation of every tool I use.

comment 1y ago · link · parent

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.

12345
19