HNHacker News
TopNewBestAskShowJobs

jniedrauer

2,487 karma · joined May 18, 2018

submissionscomments
jniedrauer··on A pure WebAssembly / JavaScript port of FFmpeg
After playing around with immediate mode GUIs in WebAssembly, I can envision a future which renders any kind of content blocker obsolete. The internet could be turned into cable television. I don't want to sound overly pessimistic, but it seems very plausible that this is the future we will eventually end up with.
jniedrauer··on The testing pyramid should look more like a crab
There is some value in unit tests for plumbing. Something I see a lot is a set of values being transformed across several domains, losing data at each step. A very simple test that inputs values on one end of the pipe, and checks the values on the other end of the pipe, makes it very easy to be sure that you didn't drop something.
jniedrauer··on The testing pyramid should look more like a crab
> real clients, faked services

I'm curious what you think this looks like in practice. I've had success with these kinds of tests, but only for very simple external services. For example, writing a fake elasticsearch backend for a few known inputs and outputs might be a good fit. But what about an RDBMS? You can't realistically write a mock backend that can talk to a real client.

jniedrauer··on The West’s Infernos Are Melting Our Sense of How Fire Works
Use firefox reader mode.
jniedrauer··on Unpopular opinion: Weekdays/weekend split isn't for everyone
Have story points been useful to you, even when incentives are aligned? I find that they're often orders of magnitude off, in either direction.
jniedrauer··on Unpopular opinion: Weekdays/weekend split isn't for everyone
> you should measure relative performance

This is also easier said than done. How do you measure programmer performance? LOC is obviously not a reasonable metric. Closed tickets isn't either. It takes an experienced manager who understands code to understand what work is actually being done, and managers like that are rare and valuable.

jniedrauer··on Waymo pulls back the curtain on 6.1M miles of self-driving car data in Phoenix
Have you driven in Arizona? There are thousands of miles of road where you can be almost completely alone. Waymo is not driving on those roads. I think you'd need data on human-caused crashes within the test area to have a reasonable comparison.
jniedrauer··on Humans Are Bad at URLs and Fonts Don’t Matter
A browser-based password manager mostly solves the confusables problem. If your password manager matches by domain name, and someone tries to phish you, it will immediately clue you in that something's not right.

Unfortunately this doesn't solve the problem in general, because most people don't use password managers.

jniedrauer··on GM, Ford knew about climate change 50 years ago
It's not like there's a lack of historical precedent for a profit motive causing them to work against the interests of the general population. See also: Streetcars[0]

[0] https://en.wikipedia.org/wiki/General_Motors_streetcar_consp...

jniedrauer··on A one-line change decreased our build times by 99%
One of the (many) things that drives me batty about Jenkins is that there are two different ways to represent everything. These days the "declarative pipelines" style seems to be the first class citizen, but most of the documentation still shows the old way. I can't take the code in this example and compare it trivially to my pipelines because the exact same logic is represented in a completely different format. I wish they would just deprecate one or the other.
jniedrauer··on AWS NLBs and the mixed up TCP connections
I've found that for RDS, a writer instance and a hot standby reader instance with automatic failover work pretty well. When a failover happens, you're usually looking at about 30 seconds of downtime, which is "good enough" for most purposes.
jniedrauer··on Facebook Container for Firefox
Persistence. If you log into a website in a container, cookies will be stored locally within the context of the container. Those cookies can't be used to track you on other sites outside the container, but they do fulfill their purpose within the container.
jniedrauer··on Voyagers Detect an Increase in the Density of Space Outside the Solar System
Most of the escape velocity of the voyager probes came from a gravitational slingshot around the gas giants. I don't think additional rocket power would help much.
jniedrauer··on What if we had Local-First Software?
I started playing around with gioui the other day. It looks like it has a lot of potential. I was curious if it could redraw efficiently enough to be used as a go equivalent to pygame. Have you experimented with anything that requires a high refresh rate? I guess I need to finish my experimenting and find out for myself.
jniedrauer··on There are only four billion floats, so test them all (2014)
Tests come with a non-zero cost. They're code that needs to be maintained. Often complex code, with poor documentation. I don't think the value provided by testing states that you will never actually encounter in production outweighs the cost of maintaining the tests.
jniedrauer··on Rust 2021: GUI
Are you suggesting that vscode is "not professional"?
jniedrauer··on Cities Experiment with Remedy for Poverty: Cash, No Strings Attached
Increase the frequency and reduce the quantity of disbursements. This won't solve for individuals who are completely incapable of taking care of themselves, but it will cover the vast majority.
jniedrauer··on Rust 2021: GUI
> If you are targeting Linux with a professional GUI application your only options in 2020 are

There are other options. Maybe unpopular options, but options nonetheless: Electron, and immediate mode GUIs.

They certainly have downsides. But there are "professional" GUI applications in widespread use that are written with both.

jniedrauer··on Fatal brain-eating microbe found in Lake Jackson, Texas water supply
Signals can travel relatively fast across the entire length of a human central nervous system. Proximity to the brain likely benefits signal-to-noise ratio more than speed.
jniedrauer··on Fatal brain-eating microbe found in Lake Jackson, Texas water supply
>whereas nobody is going to die if they can only smell wolf poo a second later.

I'm still alive today because I can detect smoke very early. This ability has saved me from indoor electrical fires and wildfires. Hunter gatherers who lived in makeshift shelters probably depended even more frequently on this ability.

jniedrauer··on Time spent programming is often time well spent
Examples of common patterns add incredible value. A 1000 page document may contain everything you need to know to implement a protocol, but a well written example will be far more useful for most.
jniedrauer··on Time spent programming is often time well spent
I've been writing code professionally for quite a while now. I'm not trying to land my first coding job. The vast majority of programmers working on side projects are already established in the industry.

I've learned a few novel things from my unfinished side projects, but I've never really used them in my day job.

jniedrauer··on No script is too simple
Nothing is quite as succinct as shell. The python equivalent to this would probably be at least 10 lines of code.
jniedrauer··on Hubble Captures Crisp New Image of Jupiter and Europa
The famous "deep field" image from Hubble almost didn't happen, at least for many more years, due to limited time availability[0].

> “The telescope allocation committee would never have approved such a long, risky project,”

Other similar "high risk" experiments would be more likely to occur if time constraints were not such a concern.

[0]: https://www.nationalgeographic.com/science/phenomena/2015/04...

jniedrauer··on Smoke has caused temperature forecasts to go crazy
We had fires like this in Washington in 2018. 2019 was a small respite. But I expect this to be at least a biennial thing from now on.
jniedrauer··on Letsencrypt, the Good, the Bad and the Ugly
I'm a huge fan of acme.sh. You can easily automate its use in an infrastructure pipeline, set up some simple alerts for failure cases, and then more or less forget about it.
jniedrauer··on We didn't encrypt your password, we hashed it
Must include 1 special character, except for the following: ;`'"-
jniedrauer··on How satellite ‘megaconstellations’ will photobomb astronomy images
I recently went for a run around Mt Saint Helens, which I started before sunrise. It's a very desolate area, with limited light pollution. I suddenly noticed dozens of satellites flying overhead and was startled by how vivid they were. First time I've ever seen them. My response was to become a little bit choked up. I haven't felt pride in humanity like that for a while. As we become a space faring civilization, the night sky will be influenced by us more and more. It's not worth holding progress back for the sake of a nice view.
jniedrauer··on Is TDD Dead? (2014)
> Your CI/CD should just prep the database you need instead of mocking.

This is a hard one. A lot of tests require setup steps even if you're using a real database, so it's not even that different than a mock. And if you can't give each test its own database to work with, then you have to run your tests serially. I'm working on a codebase that spins up 4 separate database engines in docker, and each test has quite a few setup steps. The result is brittle tests that take hours to run, so they're not very useful as a release gate. I've been bitten by mocks before too though, so I don't have good answers.

jniedrauer··on Secret gyms and the economics of prohibition
You're coming from the perspective of someone who is still getting newbie gains. If your goal is to be reasonably fit and healthy, you're on the right track.

But some people have been going to the gym for decades and take it very seriously as a hobby. Losing access to the gym will set them back years.

← PreviousPage 4 of 22Next →