Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

15,025 karma · joined Apr 22, 2012 (14y ago) · 2,479 submissions

sfir6i2z@mailer.me
Submissions

comment 10mo ago · link · parent

What is the benefit of having this be a standard? Can't an agent follow a guide just as easily in document with similar content in a different structure?

comment 10mo ago · link · parent

I don't think it's meant to be a point against abstraction or a point against complexity. I think it's widely understood that abstraction is part of how advancement is made in our practice, as well as in other disciplines. I have taken this saying to be an observation that there is almost always possible failure beneath the façade provided by the abstraction. Therefore, yes, you avoid having to let that complexity enter your brain, but only when the abstraction is holding. Beyond that point, often after pages are sent, you will still have to engage with the underlying complexity. A proactive measure following from this idea would be to provide support in or alongside your abstractions for situations where one must look under the bonnet.

comment 10mo ago · link · parent

You can do better now:

    #!/usr/bin/env java --source 25
    void main() {
        IO.println("Hello, World!");
    }
https://openjdk.org/jeps/330 https://openjdk.org/jeps/458 https://openjdk.org/jeps/512

I often combine these approaches with https://get-coursier.io/ when I need to fetch third-party dependencies.

comment 11mo ago · link · parent

What you are describing is basically remote buildkitd. That allows all of your docker builds to share a big cache. The cache-to/cache-from approach is of limited usefulness.

35.

Modeling Inclusionary Zoning's Impact on Housing Production in LA (2024) [pdf](ternercenter.berkeley.edu ↗)

1 points · by oftenwrong · 11mo ago · discuss

comment 11mo ago · link · parent

This is based on this write-up:

https://www.linkedin.com/pulse/wont-main-break-all-time-your...

archive copies:

https://archive.is/wI4b0

https://web.archive.org/web/20251211132753/https://www.linke...

https://ghostarchive.org/archive/bN17w

comment 11mo ago · link · parent

Triggering off of changed file paths is not a great way to achieve this because it's disconnected from the underlying dependency graph.

This is also a standard feature of GitLab CI.

comment 11mo ago · link · parent

What if I want to do something on my land that will poison the ground water for the area? What if I want to raise an invasive species on my land that will likely escape and devastate local wildlife? Should society be permissive and wait for the damage to be done before stopping me, instead of being proactive and stopping me from doing so before the fact?

comment 11mo ago · link · parent

The problem is always how well one can prove that any harm was done, or that theoretical harm would be done.

comment 11mo ago · link · parent

This headline is misleading.

>This applies to work-managed devices and doesn’t affect personal devices.

"All Your Text Messages" implies _all_ messages, which is not the case.

comment 1y ago · link · parent

Maven does not support "scripts" as NPM does, such as the pre-install script used for this exploit. With scripts enabled, the mere act of downloading a dependency requires a high degree of trust in it.

comment 1y ago · link · parent

I think some people would enjoy something akin to HyperCard for building custom TUIs and/or highly efficient web UIs.

comment 1y ago · link · parent

Would a wider road not embolden drivers to increase their speed?

44.

The Surprising Lack of Good Permitting Data and What to Do about It(bostonindicators.org ↗)

6 points · by oftenwrong · 1y ago · discuss

comment 1y ago · link · parent

There is something to be said for having some basic data access libraries already in place, even if they are not ideal, so that developers can bang out functionality more quickly. That is the typical selling point of ORMs, isn't it? While there are well-known downsides, you can skip the ORM when it's not a good fit, or later when you realise that it is causing a problem.

Generally, I prefer to create functions for specific queries, rather than for specific "entity" types, and the return type of each query matching the result of the query. This fits with the reality that queries often involve multiple entity types.

My favourite application-later database tool so far is https://www.jooq.org/ because it allows for code generation from the database schema, allowing for type-safe construction of queries. I find this makes it easier to create and maintain queries. It is a relatively unopinionated power tool, with minimal attempts at "automagic" behaviour. I find myself missing jOOQ now that I am not working much with Java.

46.

Four Strategies for Organizing Code (2016)(medium.com ↗)

2 points · by oftenwrong · 1y ago · discuss

comment 1y ago · link · parent

It's less complicated than you might think. A Java Development Kit (JDK) is a filesystem directory, and includes everything necessary to run a Java program. Most of the mysterious installers and version managers are managing a collection of these JDK directories in some fixed location on disk. You can download a JDK directory (tarball), and use the `java` binary within it directly.

There is also a convention of using the `JAVA_HOME` environment variable to allow tools to locate the correct JDK directory. For example, in a unix shell, add `$JAVA_HOME/bin` to your `PATH`.

48.

The Oddest Car Park in the World? (2015)(speedhunters.com ↗)

4 points · by oftenwrong · 1y ago · discuss

comment 1y ago · link · parent

A live demo is better for selling. A live demo says "this is real and it works".

comment 1y ago · link · parent

I have been struggling with some team members who don't have taste, and amplify that via this sort of uncritical application of AI. The issue for one if them seems to be that they think the AI is perfect. They think: "If it comes up with it, it must be good/correct. If people are not using it for everything, they are wasting time doing something that the AI could do." It's frustrating to work with people like this because they rapidly produce bad results. I find it disrespectful to generate a large design document in one go, probably without even reading it, and then put it up for review, wasting the reviewers' time picking it apart. Someone "with taste" could produce something decent to begin with.

comment 1y ago · link · parent

Don't discount the technical innovation required to integrate existing technologies in a novel and useful way. Docker was an "off the shelf" experience unlike any other solution at the time. You could `docker run ...` and have the entire container environment delivered incrementally on demand with almost no setup required. It did have a social factor in that it was easy for people to publish their own images and share them. Docker Hub was provided as a completely free distribution service. The way they made distribution effortless was no doubt a major factor in why it took off.

https://www.youtube.com/watch?v=wW9CAH9nSLs

comment 1y ago · link · parent

In many systems it is reasonable not to include a zone. Usually that goes hand-in-hand with the desire to use a more compact representation, such as storing a numerical timestamp with a customary interpretation (usually UTC or TAI). If you must store a string, you may as well include a zone. Using ambiguously-zoned timestamps is an invitation for bugs. I feel your pain.

53.

Trusting builds with Bazel remote execution(blogsystem5.substack.com ↗)

4 points · by oftenwrong · 1y ago · discuss

comment 1y ago · link · parent

I think there was an even earlier example of merge trains at Etsy mentioned here: https://pushtrain.club/

This blog post about choosing which commit to test is also relevant and may be of interest: https://sluongng.hashnode.dev/bazel-in-ci-part-1-commit-unde...

comment 1y ago · link · parent

EVs still produce air pollution from tyre, brake, and road surface abrasion. There is also new research that indicates resuspension of particles is a major source of roadway-related pollution.

This review is a good jumping-off point for research on the subject if you are interested: https://www.sciencedirect.com/science/article/pii/S096669232...

comment 1y ago · link · parent

Storing an IR also means we can create languages beyond the limits of syntactical practicality. Imagine, for example, an entire comment/documentation dimension of the code. Instead of commenting on a line near some code, you could attach comments semantically to an expression, or to a variable, or to any unit of code.

comment 1y ago · link · parent

Unison's immutable definitions also enable a bunch of compelling capabilities. No merge conflicts. Incremental everything: build, test, lint, distribution, rendering as formatted text, et cetera. Trivial to apply "hot" updates to running systems.

comment 1y ago · link · parent

Protobuf is typically serialised using a TLV-style encoding.

https://protobuf.dev/programming-guides/encoding/

A major value of protobuf is in its ecosystem of tools (codegen, lint, etc); it's not only an encoding. And you don't generally have to build or maintain any of it yourself, since it already exists and has significant industry investment.

59.

Understanding Bazel Remote Caching(blogsystem5.substack.com ↗)

2 points · by oftenwrong · 1y ago · discuss

12345
83