HNHacker News
TopNewBestAskShowJobs

dhbradshaw

1,223 karma · joined March 29, 2007

Working on 0tm8.com: gardening automation for coders
submissionscomments
dhbradshaw··on You Don't Need a GUI
GUIs were introduced pre-internet.

Now my discovery process for how to accomplish something on nix typically involves search and most likely Stack Overflow.

The surprise here is that in this context text commands are more* discoverable and easier to communicate than UI flows.

dhbradshaw··on Figma to React
Really good idea. I'd like this for Flutter as well.
dhbradshaw··on Do you really want Linux phones
Flutter runs on Linux. I use it as my primary development target when iterating on an app.
dhbradshaw··on Do you really want Linux phones
Flutter in vscode is quite good.

And although Flutter has historically been for ios and android, I actually prefer writing Flutter apps while running them on my Ubuntu box. It feels lighter and faster running them natively in Linux than running them in an emulator.

dhbradshaw··on Amazon S3 Object Lambda
This could be a fairly clean way to smooth out data schema changes over time.

Could also be a way to mess with people -- for example, you could have an image src that gives different results depending on the recipient.

dhbradshaw··on What happens when investment firms acquire trailer parks
After a cold snap recently I went out to visit an older couple in a trailer who had had their plumbing burst due to freezing.

The trailer was in really rough shape. They were huddling under blankets because heating and insulation were inadequate. And now they had no water.

Two things make me angry about the trailer park situation.

1. people living there who only get poorer from it. They own the portion of the home that decreases in value and rent the part that appreciates. If you're rich, sure. You can afford to own a depreciating asset and forgo the appreciation. But they're poor.

2. By having the lot renter own the trailer, they avoid many of the laws that protect renters with basic livability requirements. And yet those people are still paying rent alongside having to pay maintenance costs for their homes.

In the end at least in my area of the country it's much less expensive to buy a modest home.

dhbradshaw··on Flutter 2
They were pretty clear about the intention here: make the web available as a platform for running mobile and desktop-style apps.

If you're trying to create a classical website, it's not the right tool. Use html and css. If you're trying to make a rich app, I'd bet on Flutter.

I'd be interested in seeing it become easier to make a combination of the two -- flutter apps embedded in classical websites.

dhbradshaw··on Flutter 2
One question that's been in the back of everyone's mind with Flutter is "will Google toy with Flutter and then drop it? Or will they stick with it and make it the real deal?"

I take this post as partial evidence that they're making this the real deal. It's already surprisingly good, and there's reason to believe that it will get a whole lot better.

dhbradshaw··on Rust Foundation: Hello, World
I'm working on a little crud project. It uses rust all the way down, with actix-web as the http framework and sled as an embedded key value store. The idea is to replace the complexity and expense of using many nodes with one node that's extremely fast.

It's been a slow side project for the last month learning the ecosystem and figuring out how to properly deal with types etc.

But now I have a page that uses an opaque cookie stored in the database to identify the logged in user and return proof of success in a rendered template. My goal was to keep server latency for that request below a millisecond, and it ended up being about 100 microseconds on my laptop, so 10 times faster than I was hoping for. I'm just not sure how I could have achieved that with, for example, Django.

So I guess what I'm saying is that it's slow and challenging for me, at least in the beginning. But it's getting faster and easier over time. And in the end, I'm creating something with performance and reliability that would be hard to achieve in another way.

dhbradshaw··on Parents of daughters are more likely to divorce than those with sons
Hard disagree on the statement "High-quality men have no desire to raise someone else's kids" based on my experience with an amazing step father and a father who himself has been an excellent step father.

I might even venture to say that having the heart to care well for children who are not genetically your own is part of being a high quality man.

dhbradshaw··on Oxford vaccine shows sustained protection of 76% in 3-month gap til second dose
What exactly does "percent protection" mean in these announcements? Can we use the definition to derive a percent protection associated with having been through the virus? Is there a percent protection associated with your age / gender / race profile?

It feels like the number doesn't mean much without having a similar number for the null cases.

dhbradshaw··on Ask HN: What are you working on?
A place where authors can post their rough drafts privately for beta readers and collect analytics on reading behavior in order to see what sections of the draft are slower and faster reads and where they lose readers.

I'm having fun from the coding / architecture side by making it in Rust with Actix web backed by Sled. Trying to keep the time between request and response under a millisecond not including transit.

dhbradshaw··on Slack is down
We just had to route around this so we're trying out chat.google.com for the first time. Seems ok.
dhbradshaw··on Trading Time for Money
UBI will partially decouple housing demand from work locations. This could raise prices in rural areas and lower them in cities.
dhbradshaw··on Google outage – resolved
Wow, I'm glad there are a few things that I do that don't require Google auth.
dhbradshaw··on Is Stencil a Better React?
This article highlights Stencil's performance, which is great.

As a dev, I think Stencil's superpower is that it can future proof your components. You can write a Stencil component and you can later use it in Angular or Vue or React or Elm or whatever. Or maybe even no framework at all -- just a templated server generated page with some Stencil components.

That's pretty nice for a team that's transitioning between one framework and another or uses two different frameworks on two different sites but would like to share components between the two.

dhbradshaw··on Ask HN: Freelancer? Seeking freelancer? (October 2020)
SEEKING WORK AL USA Remote only

I propose to use PostgreSQL, Django, and Flutter to rapidly build you

- a connected app

- with a standard, organized and robust data store and

- clients for Android, iOS, macOS, Windows, Linux, and web.

Email me using this username at gmail to discuss more.

dhbradshaw··on Interview with Paul Graham
I think this is insightful.

Interestingly, in an immunology class I just took, the instructor suggested that allergies come from our immune system doing the same thing. If the environment is too sterile, it will come up with things to worry about even if the danger isn't really there.

dhbradshaw··on Rideshare operations are being suspended in California
This law looks like a hack to try to smooth over negative effects from the root issue.

The root issue is that health insurance is tied to employment, which reduces human freedom and distorts the economy in diverse ways.

Solve the root issue and many things become less complicated.

dhbradshaw··on Gitoxide: Pure Rust Implementation of Git
This is beside the point I was trying to make. The point is that Pure Rust > Rust + Non-Rust dependencies in the sense that it's easier to compile, cross compile, install, or deploy.

If it's pure rust, then I don't have to worry about dynamic or even static linking. I just compile the code for the target and I'm done. Cross compiling becomes simple. Installing becomes simple.

I'm repeating myself a bit here but just to clarify: there's no question that pure C is awesome for portability. And like with Rust it becomes less fun once dynamic linking gets involved.

dhbradshaw··on Gitoxide: Pure Rust Implementation of Git
There are several comments on the value of having this project be "pure rust".

Based on my experience, the main value is that it makes this code easily portable.

Meaning, if you can compile rust on your device, you can just run this code without worrying about also installing and appropriately linking the correct version of some C library. It's a huge convenience.

Of course, this only works if all dependencies are also pure Rust. I haven't verified that this is the case here. Here's hoping!

dhbradshaw··on Atlassian tells employees they can work from home forever
Apparently I'm in a minority but I love Jira for remote work.
dhbradshaw··on The Rise and Rise of JSON (2017)
The other day I saw an auto-generated json file with comments and trailing commas and got really excited. A little digging showed that it was using JSON5. Pretty sweet!

https://json5.org/

dhbradshaw··on The Lost Art of Growing Blueberries with Fire
We had raspberries planted in a good spot of ground and they completely failed and we sent back to the nursery letting them know and they sent us new starts.

Before we put in the replacement raspberry starts, we had a bonfire. The new ones took on the charred land and proceeded to take over the place and produce a nice harvest for several years.

dhbradshaw··on GitHub isn't fun anymore
I think, given his content, that this comment is overly broad. Instead, it should probably say that the Github trending page isn't fun any more.

And he gives a nice and precise reason for this: the Github trending page used to have all the qualities of a game. There were ranked participants and there was a clear, known score. If you wanted to do well in the game, then you knew exactly what you had to do. As a bonus, the rules happened to be such that the ranked results were actually interesting.

Now the trending page has an opaque score. Opaque scores and rules almost never make for a fun game.

Perhaps the results are interesting. If so, how do we know that? It's hard to judge whether or not they are because we don't know the scoring mechanism. So the page loses not only its fun but its meaning as well.

dhbradshaw··on Meander: a procedural system for generating maps of rivers that never existed
His son Hans is responsible for a whole body of work in river engineering.

https://www.engineering.uiowa.edu/news/life-and-pioneering-w...

dhbradshaw··on Driving engineers to an arbitrary date is a value destroying mistake
Right -- there isn't any booking its just about who brings the money for that sign on that day. You can pre-declare how much money you want to assign to an hour and sign but can't know that you'll win for that sign and hour. If you don't win there, you keep your money to use elsewhere.

But we have ~1500 signs and each of them is playing a new ad every ~8 seconds. In other words, there's plenty of space. Those 8 seconds can range from a penny to a buck depending on the time and place and on the current competition. If you want to show up, you can.

dhbradshaw··on Ask HN: Is there a search engine which excludes the world's biggest websites?
I've wondered too about something similar to that. Basically, I'd like sessions for searching.

Each session would have an updatable list of sites that are favored, whitelisted or blacklisted for a particular class of search.

dhbradshaw··on Driving engineers to an arbitrary date is a value destroying mistake
FYI, the billboard lag time was true until a few years ago, even for digital boards.

But now you can turn on a national campaign in a few days. (Disclosure: I work with Blip Billboards who are one of the major drivers of this change.)

dhbradshaw··on mdBook – A utility to create modern online books from Markdown files
I leave it in standard configuration, but fill in Summary.md by adding new content to the top. That way when I open it I see the most recent notes first.

I have a shell script that opens vscode and starts mdbook. For my journal the script also checks to see if there's an entry for today. If there isn't, it will add one to the top of Summary.md, which then creates a new file for me to write in for that day. In the meantime mdbook has opened up the book for me to look at that side.

When I open the book I see what I wrote more recently and can also go back to documents from the past.

← PreviousPage 4 of 10Next →