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

Docker has a lot of quirks and rough edges that may be attributed to its history. It was open-sourced rather hastily from dotCloud, and caught on largely due to its appeal as an easy-to-use, open, and complete package for containerisation, unlike other containerisation ecosystems that already existed. In some ways it's an example of a "worse is better" solution (which is not a bad thing). Some of the things you mention are just the typical sort of bad design decisions that get made without the benefit of hindsight. I'm sure we have all made similar missteps while designing systems. It's also true that some of these flaws made it more approachable, and actually helped with adoption. For example, a reproducible image build would be great, but it would not be as easy for a newbie to throw together as a quasi-shell-script Dockerfile that lets you run whatever non-reproducible commands you like. That less-opinionated disposition of Docker was part of what made it easy to pick up. In the near future we will probably see a new containerisation ecosystem rise with an overall better design and more disciplined approach. Docker will always have its place in history as the implementation that made containerisation mainstream.

392.

Pedestrian Deaths and Large Vehicles(sciencedirect.com ↗)

45 points · by oftenwrong · 5y ago · 96 comments

comment 5y ago · link · parent

The Wirecutter has been accused of changing their recommendations based on their ability to monetise product links as an affiliate:

https://www.xdesk.com/wirecutter-standing-desk-review-pay-to...

comment 5y ago · link · parent

Glad to see there are other fans of Granola Shotgun on HN. Most of the titles Johnny uses are probably too vague to capture interest here, but a few submissions have made the front page:

"Letting Go of Nostalgia Urbanism" https://news.ycombinator.com/item?id=25626389 https://www.granolashotgun.com/granolashotguncom/2mvygaw3y67...

"The Show Horse and the Work Horse" https://news.ycombinator.com/item?id=20497711 https://granolashotgun.wordpress.com/2019/07/22/the-show-hor...

"Eating Jell-O with Chopsticks" https://news.ycombinator.com/item?id=20060732 https://granolashotgun.wordpress.com/2019/05/27/eating-jell-...

"Guaranteed Minimum What?" https://news.ycombinator.com/item?id=14326505 https://granolashotgun.wordpress.com/2017/05/05/guaranteed-m...

395.

We’d rather have the iceberg than the ship(granolashotgun.com ↗)

346 points · by oftenwrong · 5y ago · 327 comments

comment 5y ago · link · parent

There are ways to resolve merge conflicts automatically in some cases given some assumptions, but there is no way to resolve any given merge conflict without a system that can create a correct program. I won't bore you with the formal proof for this (especially since I have no idea how to construct such a proof). Consider that some merge conflicts require new code to be written to resolve them.

For example, here's an original program:

    if(foo()) {
      send_money_to_oftenwrong()
    }
and here's a change we would like to merge:

    if(bar()) {
      send_money_to_oftenwrong()
    }
and here's a concurrent change we would like to merge:

    if(baz()) {
      send_money_to_oftenwrong()
    }
How do you produce the correct program from these conflicting changes?

---

Also for example, an unsophisticated and unsound method for automatically resolving some merge conflicts:

1. Assume that if the build and tests succeed, the program is correct. (This is the most important bit)

2. Accept all non-conflicting changes.

3. For conflicting changes, accept one side of the conflict.

4. Build and test the result. If it succeeds, merge it.

5. Otherwise, attempt the same with the other side of the conflict. If it succeeds, merge it.

6. Otherwise, it cannot be merged automatically by this method.

Note that this approach could also apply to a CRDT-based merge.

comment 5y ago · link · parent

For user changes, a solution based on OT/CRDT may be appropriate.

For code, you need merge conflicts. Let me put it like this: Do concurrent edits in google docs always produce a valid and correct paragraph, with no grammatical errors, and that communicates the proper thoughts?

398.

Reactive SQL with JOOQ 3.15 and R2DBC(blog.jooq.org ↗)

2 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

I think there are some potential applications.

For example, you want to have a project in the monorepo, but also share it outside of your organisation, and even have external contributions brought back in.

Or, you are working in a project in the monorepo, but you don't want to (or can't) check out the entire repo. You can still checkout just that project and its deps.

Or, you are working in a polyrepo-using organisation, and you want to experiment with using a monorepo while continuing to allows devs to work in the polyrepos that it is composed from. No big-bang cutover necessary.

comment 5y ago · link · parent

I apologise for the title. HN has a short limit for title length, so I came up with my own title. I thought this title did a decent job of presenting, using short language, the main application that the authors gave top-billing in the README.

I am not affiliated with the project.

JOSH claims to be reversible, so it could be used in either direction, which is where the multiple use cases come in. Treating subsets of a repo as their own repo, or treating multiple repos as one. I would say there is some application overlap between this and git submodule/subtree/subrepo and also tools like copybara.

comment 5y ago · link · parent

I've favourited this comment. Why do some accept mediocrity when it comes to the achievability of a comfortable standard of living? Perhaps it would help them to frame this in the language of a SaaS company, since I know so many HNers strive for excellence in that area: Our company is failing to deliver value to many of our customers; how can we do better?

402.

Josh: Get the advantages of a monorepo with multirepo setups(github.com ↗)

246 points · by oftenwrong · 5y ago · 135 comments

403.

Rabbit Hemorrhagic Disease Virus(rabbit.org ↗)

1 points · by oftenwrong · 5y ago · discuss

404.

Full-time minimum wage workers can't afford rent anywhere in the US(cnbc.com ↗)

77 points · by oftenwrong · 5y ago · 105 comments

405.

JOOQ 3.15’s New Multiset Operator Will Change How You Think About SQL(blog.jooq.org ↗)

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

406.

Perfecting the password field with the HTML passwordrules attribute(scottbrady91.com ↗)

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

comment 5y ago · link · parent

>After growing tired of modern software development practices

I'm curious to know what practices pushed you over the edge.

I sometimes struggle to keep emotional distance from work, especially when I feel that others are making our collective effort less effective. I have to remind myself sometimes that I don't actually need to care. At the same time, I wonder if I would be happier starting my own thing, and calling the shots. Of course, then I would have to care.

408.

Calculating Pagination Metadata Without Extra Roundtrips in SQL(blog.jooq.org ↗)

3 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

I had the same thought, and found this:

https://github.com/earthly/earthly#how-is-earthly-different-...

comment 5y ago · link · parent

Milk is slightly acidic: https://sciencenotes.org/is-milk-an-acid-or-base/

411.

Who Is Being Monitored?(tutanota.com ↗)

11 points · by oftenwrong · 5y ago · discuss

412.

git update: the odyssey for a sensible git pull(felipec.wordpress.com ↗)

4 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

This reminds me of another, similar blog post:

Let's Build A Traditional City (And Make A Profit) (2013)

https://www.andrewalexanderprice.com/blog20130330.php

...which was also discussed on the HN front page:

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

There is also a sequel post:

Let's Build A Village From A Parking Lot (2015)

https://www.andrewalexanderprice.com/blog20151203.php

comment 5y ago · link · parent

There's a great old (2005) blog post on this topic:

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

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

comment 5y ago · link · parent

>I was also expecting something like a decentralized form of cloud computing, similar to Plan 9 where you can just attach remote resources to your local PC and get instant access to their CPU, storage, etc.

This was definitely a common vision. Being able to attach machines together ubiquitously. We would be able to have a room of multiple computers, as well as computers over the network, all working as one machine; sharing peripherals, audio-visual inputs and outputs, CPU, storage, etc. And it could all be used by multiple people at once. There would be no walled gardens required to share my screen with someone else across the world, or play the same music from every device.

comment 5y ago · link · parent

Software services would all support being plugged into a distributed transaction manager, as in https://en.wikipedia.org/wiki/X/Open_XA . Instead there has been more of a shift toward embracing inconsistency.

Another: There was always this idea that in the future, applications would be built to run on the database, such as with stored procedures. Obviously, this was widely done, and continues to be done, but it never really matured in the way we expected. There is still a big gap in tooling to make this easy.

This is also related to the ideas we had back then about object persistence. One day, we imagined, we would just manipulate objects in memory, and all of the concerns about persisting those changes, including making it performant, would be taken care of.

Also, transactional memory was surely going to be the norm, whether in software or hardware.

comment 5y ago · link · parent

This app is silently installed even for users enrolled in Google's Advanced Protection Program.

https://landing.google.com/advancedprotection/

comment 5y ago · link · parent

I don't doubt it, but what is the source of this figure?

comment 5y ago · link · parent

The site could provide an opaque ID for user. Also, anti-tracking on the part of the EU could be enforced by law.
1
131415
83