Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

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

sfir6i2z@mailer.me
Submissions

comment 4y ago · link · parent

I like to use:

    date -u +%Y-%m-%dT%TZ
because the time zone is unambiguous, the command works with POSIX date, and it's valid under both ISO 8601 and RFC 3339.

comment 4y ago · link · parent

I'm not sure what that means, but I don't think compose v2 is considered experimental at this point. It is included in Docker Desktop, for example. You might be running an older version. You can check `docker compose version`. Version 2.12.2 was released a few days ago.

comment 4y ago · link · parent

What have you seen?

comment 4y ago · link · parent

What use case are you addressing here? Docker can be used to maintain development tools in various ways, but I see it as mostly operating on a different level from asdf.

For example, asdf can install tools on a developer's system. asdf can route invocations to the appropriate version of an installed tool.

Docker can be used to install tools in isolation by way of an image build. That image can be shipped off, so that developers can pull the image, and do not have to run an installation procedure. Docker can pull and run the appropriate version on demand upon invocation.

It's also not a binary choice. You can use asdf in a Docker container, and you could use Docker in an asdf plugin.

comment 4y ago · link · parent

You probably want to use

    docker compose
not

    docker-compose
The latter was the name of the compose v1 binary, so using it may cause your command to be handled with a v1-to-v2 compatibility mode. Depends on how your installation is setup. Compose v2 is implemented as a Docker CLI plugin.

276.

repro-get: reproducible apt, dnf, APK, and pacman, with content-addressing(github.com ↗)

3 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

A simple and clear approach is adding "(required)", or the localised equivalent, to the required fields.

278.

The Four Companies That Make Freight Shipping Worse in the US(youtube.com ↗)

3 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

I am a long time user of Pixel (and Nexus) phones, and the quality control has never been that great, but some of the recent issues I see reported in online spaces like https://reddit.com/r/GooglePixel/ have me strongly reconsidering other options. The pace of updates is only worth it if the updates don't come with serious bugs. For example, there have been users reporting that the Android 13 update bricked their phone. I have learned to treat major version upgrades with suspicion, and so I only upgrade after a few patches have been released. Mind you these phones are expensive. Imagine spending $900USD on phone, only to have critical functionality break on update.

comment 4y ago · link · parent

This page has overlaid aerial photographs that let one compare Hartford in 1959 to Hartford in 2013.

https://iqc.ou.edu/2015/01/21/60yrsnortheast/

It's easy to see the loss of fine-grained urban development. It's almost like Hartford was heavily bombed during a war.

281.

The big idea behind Unison (the programming language)(unison-lang.org ↗)

3 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

Working forwards like this is definitely the right solution if it's achievable. I have worked with some government and police datasets, and they reflect that the records-keeping approach is very much designed with the old-world use case of manually reviewing individual records. For example, a record of a traffic collision would be perfectly fine if you wanted to go back see what happened in a specific collision. However, if you wanted to run an analysis over a set of collision records, you would run into problems like vehicle types being specified as 'free text' (anything can be entered), with no standard set of vehicle classifications (like an enumeration).

comment 4y ago · link · parent

Bravo! I haven't read the code carefully yet to fully understand the details of the implementation, but this is brilliant hackery.

As someone who has recently developed a focused interest on build systems, I have noticed the large vacuum in the space for a content-based Make-like that has a similarly low of a barrier of entry. HN user bobsomers said it well the other day:

"There is a much tighter, cleaner, simpler build system within Bazel struggling to get out. A judicious second take at it with a minimal focus, while taking some of the best ideas, could be wildly successful I think."

https://news.ycombinator.com/item?id=32831890

I think 'redo' is probably the closest contender these days.

apenwarr's redo implementation is probably the most popular, the most mature, and has been built with a lot of smart design choices:

https://redo.readthedocs.io/en/latest/

Pluggable caching, which AFAIK apenwarr/redo does not yet support, would be a great addition, to support remote, shared caching.

comment 4y ago · link · parent

I have been in similar situations.

Code can be fixed, but people sometimes can't be. You need to break down the "resistance to change" somehow. Trying to convince people can burn a lot of time and effort on its own. If you can't easily convince them, and you can't overrule them to dictate the direction, don't even bother.

You need people and you need budget. The business doesn't understand bad code, but you should find a way to make them feel fear. They have been drinking poison for years without feeling ill. Make them understand how easily the house of cards could come crashing down.

comment 4y ago · link · parent

>For a build tool, which is invoked many times to do relatively small amounts of work (compared to long-running server-side applications), it just doesn't make sense.

Bazel makes use of a client-server architecture. Java is used for the server component, for which startup time is not an issue. The CLI client is written in C++.

comment 4y ago · link · parent

Bazel has a stateful server component that caches information about the build graph and source files in memory. As you said, this allows it to check mtimes first to avoid re-computing hashes for source files.

Bazel can also read source file hashes from the filesystem if the filesystem supports it.

comment 4y ago · link · parent

Dependency management is painful almost everywhere. I see a glimmer of hope for the future in Unison, a language in which code exists as content-addressed ASTs. Dependency version conflicts cannot exist; there is not even a need to resolve a set of dependency versions.

https://www.unison-lang.org/learn/the-big-idea/

comment 4y ago · link · parent

One of the interviewees from this article, Son Luong Ngoc (sluongng), has recently been writing a great series of blog posts on the design of Bazel:

https://sluongng.hashnode.dev/

Tools like Earthly (and other BuildKit HLB frontend languages) will help more teams get some of the main benefits of Bazel with a lower bar of complexity. If you already know how to write Dockerfiles and Makefiles, you can write Earthfiles without much additional learning necessary. It provides a build that is repeatable, incremental, self-contained, never dirty, shared-cacheable, et cetera.

289.

British Empire Pitons 1920s+, notes on Japan(bigwallgear.com ↗)

1 points · by oftenwrong · 4y ago · discuss

290.

Cache Directory Tagging Specification(bford.info ↗)

1 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

I also dislike rooms arranged in the 'theatre' style, but my family does like to watch television occasionally. We have a small television cart that we can roll around. It not only lets us put it aside when we're not watching anything, but it can move between rooms. It is actually a computer monitor + speakers + computer + webcam, and we also use it for video conferencing.

comment 4y ago · link · parent

If you are interested in the "unlimited unique private email addresses" functionality, also take a look at these other services:

https://33mail.com/

https://anonaddy.com/

https://burnermail.io/

https://relay.firefox.com/

https://simplelogin.io/

These all support custom domains, except for Firefox Relay, which only supports a custom subdomain.

comment 4y ago · link · parent

I have always preferred a single big monitor vs multiple smaller monitors, since I prefer to switch workspaces (AKA 'virtual desktops' or 'spaces') over turning my head. Make sure your setup, whatever it is, allows for switching workspaces quickly and easily from the keyboard.

I used to have a 38" curved ultra-wide (LG 38UC99-W). The main thing I hated about it was the lack of vertical space. Ultra-wide might be fine for gaming or media production, but it's terrible (IMO) for development work. I also did not enjoy the curve because it seemed to make it harder to get a consistently good viewing angle. I suspect curved vs flat is mostly just personal preference, though.

I now use a single 43" flat monitor (Dell U4320Q), and it is great. More than enough space in both dimensions. For terminal work, I often tile them 2x2, or do "1 big, two small" in either horizontal or vertical. For my IDE, with its own separate-reality-UI-paradigm-in-a-window obnoxiousness, I let it take over the entire screen. I also keep my browser maximized, so I can keep a big vertical tab bar and my devtools open at all times. I like to keep my fonts quite large because I feel like it reduces eye fatigue at the end of the day.

One last piece of advice: ditch the stock stands and get some nice monitor arms. I consider this absolutely necessary. I cannot believe it when my fellow developers use the terrible monitor stands included in the box. They almost always have poor adjustability. Monitor arms are relatively inexpensive, and make it so much easier to get a comfortable, ergonomic setup. Not to mention they allow me to make bigger adjustments when I switch from sitting to standing. Plus, I can lift up my heavy monitor on its gas cylinder to access its ports and dust under it more easily.

comment 4y ago · link · parent

I have worked with Spring and Spring Boot extensively, and I also don't understand why people like it. It is convenient when it works, but otherwise it's a hindrance. It adds a significant layer of complexity to understanding how an application works, and to debugging.

295.

First Carabiners for Climbing(bigwallgear.com ↗)

3 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

Java should adopt something like the Checker Framework Nullness Checker in its first-party tooling.

https://github.com/typetools/checker-framework

comment 4y ago · link · parent

Unfortunately, records are only guaranteed to be 'shallowly' immutable. It would be great if future Java versions provided a straightforward way to enforce immutability.

comment 4y ago · link · parent

This community might be interested in OpenBeta, a project to make something similar to Mountain Project, but with open data. Mountain Project asserts exlusive rights to all user contributions.

https://openbeta.io/

https://github.com/OpenBeta

https://www.climbing.com/news/mountain-project-openbeta-and-...

https://www.eff.org/deeplinks/2021/03/free-climbing-rock-cli...

299.

Why we ignore thousands of daily car crashes(strongtowns.org ↗)

798 points · by oftenwrong · 4y ago · 979 comments

1
91011
83