Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

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

sfir6i2z@mailer.me
Submissions

comment 5y ago · link · parent

The author's previous article on the subject was discussed on HN:

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

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

comment 5y ago · link · parent

Here's a relevant, "classic" article along the same lines:

Clay Shirky - Ontology is Overrated: Categories, Links, and Tags (2005)

https://web.archive.org/web/20191117162526/http://shirky.com...

363.

Flowing from the Orinoco to Your Cocktail(rumreader.com ↗)

1 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

I was having some trouble loading this. Here is an internet archive snapshot, in case it becomes unavailable:

https://web.archive.org/web/20211104073437/https://changelog...

This is interesting to me because it explores the true intuitiveness of UI paradigms. What is intuitive to someone who is already familiar with common computer UIs is not necessarily intuitive to children, or to people who have never used a computer system.

A keypad with single-purpose keys is very intuitive, IMO. Something like this:

https://i.redd.it/6tmhfx75a8c01.jpg

One button for each application. One button for each operation. I have this crazy idea to obtain a large custom array of keys, and to map as many things as possible to single-key-presses.

As an aside, this is the kind of headline I'd expect to see on a HN-themed version of The Onion.

comment 5y ago · link · parent

It's sad that "riding inside a car, van or truck" and "pedestrian" are so high on that list, but also surprising that "bicycling" is so significantly safer.

comment 5y ago · link · parent

The available housing options govern our housing choices. I cannot afford a large flat in a very desirable and expensive neighbourhood, but I could possibly afford a very tiny flat there. If I want more space, I can live in a larger flat in a less desirable neighbourhood. If I want to own a car and have a car-centric lifestyle, I can live in a more distant suburb and live large. I can freely trade space, location, and cost as needed if the options exist. To the article's point, breaking the artificial scarcity on walkable neighbourhoods, and increasing the diversity of housing types, will allow more people to make these types of trade-offs.

comment 5y ago · link · parent

Stream has been given a `toList()` convenience method:

https://docs.oracle.com/en/java/javase/17/docs/api/java.base...()

368.

Engineers should not design streets(andrewalexanderprice.com ↗)

7 points · by oftenwrong · 5y ago · 12 comments

369.

Combative Anatomy: How to fight a dog(exigentcircumstance.wordpress.com ↗)

3 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

On this topic, what happened with https://www.jefftk.com/nextbus/ ? Seems to be a 404 now. Was there a breaking change or disruption in the nextbus API?

I loved its bare-bones UI. It was definitely one of the most usable webapps. I assume its a11y was nearly perfect as well.

If anyone would like to see it, here's an archived snapshot:

https://web.archive.org/web/20170622033104/https://www.jefft...

I also admire https://diskprices.com/ for the same reasons.

371.

America’s Car Crash Epidemic(vox.com ↗)

4 points · by oftenwrong · 5y ago · 1 comment

comment 5y ago · link · parent

Property tax increases when you improve the property, and land value tax does not. Therefore, property tax creates a disincentive to improve property, and land value tax creates an incentive to improve property.

comment 5y ago · link · parent

The first three sentences of the abstract contradict your comment; the scientists started with a question, not an assumption.

>When dogs interact with humans, they often show appropriate reactions to human intentional action. But it is unclear from these everyday observations whether the dogs simply respond to the action outcomes or whether they are able to discriminate between different categories of actions. Are dogs able to distinguish intentional human actions from unintentional ones, even when the action outcomes are the same?

It is newsworthy because new evidence has been found.

comment 5y ago · link · parent

I'm interested to hear more about your experience with it if you're willing to share.

comment 5y ago · link · parent

There is a bunch of information on how Google does documentation in the book Software Engineering at Google:

https://www.google.com/books/edition/_/WXTTDwAAQBAJ

One notable practice mentioned in the book is their g3doc system. Documentation is kept in the (google3) repo alongside the things documented. It is encouraged to update the documentation and the code at the same time. This also means the full history of the documentation is available in repo rather than in a separate wiki history.

There is also a system of URL-shortener-esque "go/ links" that allows people to easily link to or jump to documentation. For example, "look at go/foobar". The docs are also exposed in their code search system.

comment 5y ago · link · parent

The short lifetime of smartphone security updates makes me want to switch to a linux phone. It's just sad that I have to buy a new device due to software when I am perfectly happy with my current device hardware. I have computers that I have had for over 10 years, and they still get security updates because I keep them on the latest Debian stable. Why can't my phone be like that?

comment 5y ago · link · parent

Strength is only one aspect of healthy. Another is longevity, and yet another is avoiding illness. I.e. do powerlifters live longer? Are they less likely to develop cancers?

Furthermore, being healthy in your 20s is like not having engine problems in a brand new car.

comment 5y ago · link · parent

One aspect of environmental impact that may be overlooked here is the use of refrigeration. Some milk requires refrigeration depending on its processing and packaging. There are also cultural norms in play; Americans often believe that milk of any kind must always be kept cold, and American supermarkets often have completely open refrigerated shelving, which I have to imagine is very wasteful.

Photo of what I'm referring to: https://www.newhope.com/sites/newhope360.com/files/styles/ar...

comment 5y ago · link · parent

It's actually even worse: you can include both checked and unchecked exceptions in the `throws` clause. The compiler will only enforce handling of the checked exceptions included. Unchecked exceptions listed in the `throws` clause serve as an optional hint to others. Note that you can erroneously include any exceptions you like in the `throws` clause, even ones that are never thrown from the method. These quirks are often covered by static analysis.

comment 5y ago · link · parent

I agree that both exceptions and error values (aka result types) have their place. I would say that error values are good for when a caller should explicitly handle that case, and that exceptions are good for errors that a caller should not be expected to handle explicitly. A lot of times this breaks down as meaningful application errors vs operational or programming errors. I am struggling to find the right words for this, so I can give an example:

Let's say we have a function used to register a new user account on a site like HN.

An error value would be appropriate to return when the username is already taken, so that we can express to the caller that this is a possibility that must be handled. Most likely the caller would want to tell the user. A maintainer doesn't really care when this occurs, since it's part of the application's healthy behaviour.

An exception would be appropriate if the database is unavailable. The caller would not be expected to tell this to the user, nor is there any logical way for the caller to react to this situation specifically. In this example of a web app, the best course of action is likely returning a generic "unexpected error" message and/or a HTTP 500. The caller can typically let the exception propagate to the web layer's top level exception handler where it will be logged. As a maintainer of the system, a stacktrace is valuable for pinpointing the problem with the code path that lead to it.

(Checked exceptions, where available, blur these lines a bit)

---

In the Java world... (stop reading if you don't care about Java) ...it has been increasingly common to see types like Result<T,E> used for error values. Recently, there have also been additions to the language that make errors-as-values more practical. Sealed classes (a preview feature in Java 16, and a full feature in the soon-to-be-release Java 17) are basically an implementation of product types (with a characteristically verbose Java-ey syntax) that could be used to implement results. Returning to our example with this:

    sealed interface RegistrationResult {
          record Registered(Account newAccount) implements RegistrationResult { }
          record UsernameTaken() implements RegistrationResult { }
          ... 
    }
https://openjdk.java.net/jeps/409

beyond Java 17, you will be able to pattern-match over these with exhaustiveness enforced by the compiler. It will look something like:

    switch(registrationResult) {
            case Registered(Account newAccount) -> ...;
            case UserNameTaken() -> ... ;
            ...
    }
https://openjdk.java.net/jeps/405

381.

Fastest SaaS Landing Pages(superthread.fyi ↗)

2 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

There's a significant difference when "master" being used in contrast to "slave", such as with PATA drives.

The term "master" as used in git is thought to be derived from master-slave terminology by way of it borrowing the term from bitkeeper:

https://mail.gnome.org/archives/desktop-devel-list/2019-May/...

comment 5y ago · link · parent

I use a similar launcher: https://f-droid.org/en/packages/fr.neamar.kiss/

I have a lot of the features tweaked or disabled. The way it is configured, it basically acts as a static list of a few apps I use most, with a search bar to access anything else.

I find this setup to be more straightforward than the normal icons+folders type of launcher. I have handed my phone to other people who have never used it, and they have no problem finding things because you can just search.

384.

A Post-Mortem on LAPD’s E. 27th Street Fireworks Blast(la.streetsblog.org ↗)

4 points · by oftenwrong · 5y ago · discuss

385.

A Subway Named Mobius (1952)(fadedpage.com ↗)

40 points · by oftenwrong · 5y ago · 10 comments

386.

Sprawl Costs the Public More Than Twice as Much as Compact Development (2015)(usa.streetsblog.org ↗)

2 points · by oftenwrong · 5y ago · discuss

387.

Frank's Photography Site(viewoftheblue.com ↗)

2 points · by oftenwrong · 5y ago · discuss

388.

Modal is a prefab accessory dwelling unit to rent out or dwell in your yard(youtube.com ↗)

2 points · by oftenwrong · 5y ago · 2 comments

389.

RFC 3339 vs. ISO 8601(ijmacd.github.io ↗)

4 points · by oftenwrong · 5y ago · discuss

1
121314
83