Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

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

sfir6i2z@mailer.me
Submissions

241.

Sapling SCM Internals: DrawDag(sapling-scm.com ↗)

1 points · by oftenwrong · 3y ago · discuss

comment 3y ago · link · parent

Some RDBMS features, such as stored procedures and views, can quite naturally be versioned, and become as ephemeral as your application code.

For example, have your application setup a schema to contain its version-specific database components. The schema will contain an immutable application version, such as its commit hash, in its name. This allows a given version of the application to only use its own set of sprocs and views. On deploy, run the SQL scripts to create the sprocs and views for that version.

You'll note that sprocs and views are not mutated under this strategy. This allows multiple versions to exist concurrently, which facilitates things like blue-green deploys.

comment 3y ago · link · parent

Yes, it is one of those things that many experienced makefile writers know to avoid, but the tool does not guide new users to this wiser approach. Contrast with Bazel, which does not pollute the workspace with outputs.

comment 3y ago · link · parent

I always see others complain about Makefile syntax, especially the whitespace, but that is, to me, one of the smallest problems with make. For myself, the top problems are:

- No tracking of changes to build rules. The build rule of a target should be one of its dependencies.

- No protection from dirty builds. Your sources root is also your output root, and make does not help you keep it clean.

- No options for extending the build to use alternate up-to-date checks (e.g. not mtimes), caches, execution mechanisms, etc.

These all have workarounds, but they require the developer to manually include the workarounds in every build rule.

comment 3y ago · link · parent

>ability to define your own functions to determine if a target is up-to-date.

Yes! A modular make-like would allow the tool to fit any scale. Imagine not only being able to define the up-to-date function, but being able to plug into remote build caches, and perform remote execution of build rules. There are already tools like this, such as Bazel, but they are less appropriate for the small scale than Make. The closest that I know of is BuildKit and related projects.

comment 3y ago · link · parent

That liability is a part of the proposed revisions to the Product Liability Directive, which is also covered by this letter.

The Cyber Resilience Act would potentially require open source developers to follow a compliance regimen, similar to any EU manufacturer. The concern is that this would place too high of a regulatory burden on item source projects. The act's view of the software world is less nuanced than that of the open source community, making a distinction only between commercial and non-commercial.

I don't fully understand the implications for open source projects, but it also seems like the legislators do not understand the implications for the EU. There is legitimate concern that the EU could be cut off from open source repositories as the entities running them seek to avoid liability.

comment 3y ago · link · parent

Michael "MrMobile" Fisher has reviewed the Unihertz Titan Pocket:

https://m.youtube.com/watch?v=DpQff_8R7es

Notable to me because he is one of the only phone reviewers that is enthusiastic about a return of keyboard phones.

comment 3y ago · link · parent

This project has an impressive scope, especially for a personal project. I think there is a strong demand for a small-scale build system like make, but without its footguns. I will be keeping an eye on this.

comment 3y ago · link · parent

Knit, like Make, is designed to provide incremental builds. In other words, a build that takes into account the graph of dependencies involved. Their goal is to only run build steps that need to be run. If a build target has already been built, and its dependencies have not changed, then the build rules associated with the target can be skipped.

Just, as far as I know, does not support incremental builds. Just is more intended to provide a set of project-specific scripts that are convenient to list and run. Make is sometimes used in that way with "phony" targets, but that is more of an evolved usage. Make's original purpose was to allow for defining builds in terms of dependency graphs.

250.

Zion Climbing in the 1930s(bigwallgear.com ↗)

58 points · by oftenwrong · 3y ago · 7 comments

comment 3y ago · link · parent

>Montana state Constitution ... guarantees residents “the right to a clean and healthful environment,” and stipulates that the state and individuals are responsible for maintaining and improving the environment “for present and future generations.”

That seems like a very solid foundation for the case.

comment 3y ago · link · parent

I've noticed that Slice ( https://slicelife.com/ ) hijacks Google Maps listings like this. They setup a fraudulent website for a local pizzeria, then suggests their website to Google Maps. Google Maps will, at least in some cases, accept that fraudulent suggestion. As a result, Slice becomes a leeching middleman in the pizza order.

I wrote a comment about it before:

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

comment 3y ago · link · parent

For me, it would take at least one positive and significant experience.

I would probably need to work on a team where at least some of my teammates had some mastery of the framework, including knowing how to use it effectively in the long term.

comment 3y ago · link · parent

I recognise that DI frameworks may have a place when working with large teams and large applications, but otherwise I discourage them for a few reasons.

The prerequisite knowledge problem:

"Manual" DI requires knowing the language. Framework DI requires knowing the language and the framework. This alone makes it harder for new people to approach the codebase if they have not familiarity with the framework, even if they have mastered the language. There are already several DI frameworks for golang, but which ones are your new hires familiar with?

The "how do I do X" problem:

If you want to do something with your dependency graph, it's usually straightforward to express with plain code, but it might not be immediately obvious how to accomplish the same with the framework. For example, having multiple dependencies of the same type. With "manual" DI this is totally unremarkable. With wire, it goes against its mechanism and requires a minor workaround.

The implicit graph problem:

A DI framework the frees you from having to think much about the dependency graph may cause you to accidentally create a messy, illogical graph. It's easy to end up cornered by dependency cycles, for example. With manual DI, a flawed graph is more obvious early on because it's code you have to read and write. Explicit, not implicit.

comment 3y ago · link · parent

One downside of Advanced Protection for Android users that intend on linking the account to their device is that you will not be able to install apps from "aftermarket" app stores, like F-Droid. You can still install apps with `adb install`, though.

256.

Distributor cancelled an order and we need to move 30k bags of coffee [updated](modest.coffee ↗)

402 points · by oftenwrong · 3y ago · 368 comments

comment 3y ago · link · parent

I recall reading similarly-alarming articles about other police junk science in the US. For example, Shot Spotter:

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

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

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

I believe I have read similar about drug sniffing dogs and certain forms of field drug testing.

There appears to be no sufficient mechanism for preventing junk science from tainting the process of justice.

comment 3y ago · link · parent

Would you say the same if your home was coated in black plastic soot? Why should we hold course after mere decades of turning a blind eye toward the consequences of our lifestyle? Plastic pollution was not a problem for millennia. You come up with a better alternative to that.

comment 3y ago · link · parent

If we cannot find a way to dispose of plastic without damaging people and the environment, perhaps we should stop producing it.

comment 3y ago · link · parent

IME that antipattern is common in small companies. This is mainly so because it's often the most expedient way to get something "working". A related problem is creating a new RPC for every variation of a query that an external service may require.

One better approach is to ensure each service's db has the data it needs already at query time. For example, each service should ingest events from elsewhere in the system, and accumulate the relevant data for its responsibilities. Joins should always happen in the db.

Another approach is to keep all the data in the same RDBMS. You can slice up the data into different schemas as you see fit. I have had a lot of success with this approach, reuniting databases where people have gone a bit too microservice-wild for their actual circumstances. You can vertically scale an RDBMS to quite a large size before seeking other approaches.

comment 3y ago · link · parent

The license for the proprietary layout engine (TALA), was quoted to me as US$240 for 12 months of updates. For comparison, a personal license for IntelliJ IDEA Ultimate is US$169 (for the first year; less for subsequent years). As an active user and proponent of text-to-diagram tools, and as someone who isn't shy about paying for software (including my personal IntelliJ IDEA Ultimate license), I'm keen on buying a better layout engine, but IMO this price-point is a bit much.

comment 3y ago · link · parent

    grep regex /var/log/logfile -05 #To view the 5 lines before *and* after the match
This appears to work with GNU grep, at least, but YSK that the POSIX grep option for this is `-C`.

comment 3y ago · link · parent

One use-case would be for including dependencies in a repo. For example, it is common for companies to operate their own artifact caches/mirrors to protect their access to artifacts from npm, pypi, dockerhub, maven central, pkg.go.dev, etc. With the ability to efficiently work with a big repo, it would be possible to store the artifacts in git, saving the trouble of having to operate artifact mirrors. Additionally, it guarantees that the artifacts for a given, known-buildable revision are available offline.

264.

On business adoption and use of reproducible builds(link.springer.com ↗)

6 points · by oftenwrong · 3y ago · discuss

265.

Made in Taiwan? How a Frenchman Fooled 18th-Century London (2018)(publicdomainreview.org ↗)

2 points · by oftenwrong · 3y ago · discuss

266.

Cities Illegally Assessing Residents for Routine Infrastructure Maintenance(strongtowns.org ↗)

2 points · by oftenwrong · 3y ago · discuss

comment 4y ago · link · parent

vim does:

    vim file +5

comment 4y ago · link · parent

This seems related to the Fred Brooks advice of "plan to throw one away", (also on the same wiki):

https://wiki.c2.com/?PlanToThrowOneAway

269.

Fewer drivers in Seattle’s Highway 99 tunnel could create need for bailout(seattletimes.com ↗)

3 points · by oftenwrong · 4y ago · discuss

1
8910
83