HNHacker News
TopNewBestAskShowJobs

shireboy

1,717 karma · joined July 9, 2014

submissionscomments
shireboy··on A 100GW phased laser array for interstellar lightsail propulsion (2021)
Yeah, I was thinking space or moon based solar or solar + nuclear on this side. Why beam that energy down through atmosphere to earth, convert it to laser, then beam it back out? On destination side, I was thinking solar-powered (or whatever you call it when the star isn't Sol), but I like the idea of the sail storing laser energy (or would that break down - can a photon both impart momentum and have it's energy stored?) Your waves wouldn't have to be equal or limited to 2 waves : 1000 100MW wave 1 reverse-pushers could aim at slowing down 1 wave 2 probe, or a series of waves until wave N is slow enough to be caught by the star. Sounds like we're not slowing down at another star any time soon, but interesting to think about.
shireboy··on A 100GW phased laser array for interstellar lightsail propulsion (2021)
Nice. Exactly the kind of thought exercise I was hoping for.
shireboy··on A 100GW phased laser array for interstellar lightsail propulsion (2021)
This is something my kids and I have wondered about too and were hoping some more physics-minded soul here could rule in/out:

* Base laser "pushers" on moon, Lagrange points, etc.

* Use moon/earth pushers to push 1st wave lightsail craft(s) towards destination. 1st wave craft are also themselves equipped with laser pushers aimed back towards earth.

* Use moon/earth pushers to push 2nd wave lightsail craft towards destination

* 1/2 way to arrival, 1st wave starts pushing _back_ 2nd wave and moon/earth pushers stop pushing.

* 2nd wave "stops" at destination or slows enough to be captured in destination orbit.

shireboy··on Supermarket AI meal planner app suggests recipe that would create chlorine gas
“In the future, all restaurants are Taco Bell”
shireboy··on Supermarket AI meal planner app suggests recipe that would create chlorine gas
Can we just stop a moment and appreciate that last quote? Every now and then there is a quote that embodies the spirit of the age, like “One does not simply walk into Mordor” or “All your base are belong to us”. Maybe “You must use your own judgement before making any recipe produced by Savey Meal-bot” is more than just a caution on a random grocery chain’s marketing gimmick, but a greater comment on who we are as a society.
shireboy··on A New Mode of Cancer Treatment
Going to have to start following this Derek Lowe guy. He also had a good balanced bit on room temp superconductor. Well done science reporting without the hyperbole.
shireboy··on Semiconducting Transport in LK99 reproduction attempt
A little bit of a rabbit trail, but with this and similar science/reporting issues, I find myself wishing both the hype and the vitriol was taken out completely. What if the world could follow the LK-99 team and replication attempts in near real time and everyone had a sense like "if this succeeds, great, if not, we know one more way it doesn't work". And what if the millions of various studies on any topic were publicly accessible, instantly searchable, discussed intelligently, then novel ideas bubbled up and became studies themselves.

I understand I'm being naive here and ignoring "little" things like funding, profit motives, and basic human nature. But more what I'm suggesting is that there has to be a way to speed up scientific research and application while toning down the hyperbole. This really became apparent to me during Covid. There _have_ to be ways to rethink from first principles how we do and report on science.

shireboy··on Before you try to do something, make sure you can do nothing
To be sure, part of the challenge for me on that one is to ask it while not being a jerk. Yes, it’s a negotiation. Maybe you and I work in different circles, but in my experience people ask for features they don’t need all the time. They have a business problem, ask for what they think is the technical solution, but may not know the technical options available to solve the business problem. They may ask for a 500 page report so they can find a customer that meets x criteria, but really, better search would help them more. I had a customer sink hundred thousands into cryptographic digital signatures. I suggested the “business analyst” and upper management discuss with legal, and indeed in this case a checkbox sufficed instead.

As a dev I like to say my job is to translate English into nerd. Non- or semi- technical people should communicate the business problem and then together we’ll work towards the best solution. Sometimes the solution is code.

shireboy··on Before you try to do something, make sure you can do nothing
Related truisms I've come to:

* Watch the test fail first. Write a test FooMethod_Should_Do_X. Confirm it fails. If it passes, it means you're testing the wrong thing. Once it fails, make it pass. Once it passes, make it pretty while still passing

* The simplest thing you can do is nothing. As a developer, your first job is to talk customers down from that feature request without annoying them too badly. "What bad things happen if the app doesn't do X?", "Explain the business value of X to me. About how much time or money will this save?".

* This applies not just in code. In personal interactions, saying nothing or doing nothing is often better than prematurely doing the wrong thing. There is a time to say and do something, but it is usually later than we think and not on social media.

shireboy··on The Lava Layer Anti-Pattern (2014)
Struggling with this on a current project, except I’d say it’s not currently consistent. It already has “lava layers”, lots of bugs and unintended behavior devs struggle to reproduce in dev/test. We’re debating rewrite vs refactor now. I find myself going back and forth between dogmatic and pragmatic approaches. Which maybe is a good balance to try to strike.
shireboy··on Code the shortest path first
I get what he’s saying, but definitely several gotchas. The main project I work on these days has code that definitely isn’t the shortest path already checked in to main and running in prod. I’m that guy- set up ci/cd, apm, upgraded frameworks, and am working on major refactor. I tell management we can move faster on features and bugfixes if we can reduce the complexity of existing code.

But I do struggle with how far to take that. I worry I’m getting too deep and need to focus on features.

shireboy··on Show HN: I made CSS Pro, a re-imagined Devtools for web design
This is what I’ve wanted for ages from browser dev tools. It’s now fairly standard to have hot refresh where the dev server uses websockets to control injecting changes and refreshing the browser when changes are made in the code files. I want to go the other way. If I tweak css in browser, have a way to write those changes back to the project. The real challenge would be traversing a change in browser css back to scss/less.
shireboy··on Ask HN: How do you not take criticism of your work personally?
I don’t take criticism of my work personally because I’m usually the one giving it.

I’m only partly being snarky here. I think constantly about how I should improve past code, why I shouldn’t have done x, etc. Self criticism is healthy and takes some of the sting from external criticism.

Beyond that, I think “lean into the punch” is an affective strategy. If someone says my code is crap I can either 1) fight them and try to explain, justify etc or 2) say “you’re absolutely right”. 2 takes less energy and deflates most reasonable people’s criticism, esp in person. Of course if the criticism is wrong then that’s harder and maybe not even appropriate. But even then, framing it as “a valid criticism, but Im balancing that against X” helps the person feel heard and likewise more likely to hear your reasoning.

shireboy··on Spacetop, a radical laptop with no screen
Does nebula virtual desktop support rdp and browser? I remote into dozens of machines for work and most other things are browser based- email, chat, etc.
shireboy··on Why are there no antitrust claims vs. GitHub Copilot, when there is a precedent?
> “If GitHub can produce code by training an AI on all code it is hosting, Youtube could produce videos and music by training an AI on all content it is hosting, the Writer Guilds could produce books by training an AI on all books it owns the rights for, Shutterstock could produce more stock images by training an AI on all stock images it is hosting.”

There is a subtle difference here. Microsoft isn’t just producing code based on GitHub data. They are producing a tool that lets others generate code based on GitHub data. I do think consideration of the source data creators intent is important- and there is a case CoPilot hasn’t done that. But if Shutterstock wants to use any images _that they have been given license for and treat creators fairly for_ to build a tool that lets others generate images, they should be allowed.

Also, the op argues only MS has access to train based on all of GitHub. Others might run into rate limiting etc. However we know Amazon and others do have similar models. This would indicate MS may have a competitive edge but not a full market lockout.

shireboy··on Show HN: Boring Report, a news app that uses AI to desensationalize the news
Ah, I've had this idea for 5+ years now and just haven't had time to try to build a MVP. Before this year it would have been harder to do well - involve human writers and sentiment analysis. But lately I have been thinking about trying to do it with GPT.

I genuinely think there is a huge underserved market for a "world's most boring news and weather site". Almost everybody I talk to on all sides of the aisle recognizes that clickbait news is one root cause of lots of problems and want an alternative. In fact, in some ways, Hacker News is that site for me.

That said, I don't get why an app not a mobile-responsive website.

shireboy··on PornHub blocks users in Utah, cites state’s age verification law
Same way they do insider trading, pay-to-play, and cocaine orgies with laws against those on the books. The laws are for thee, not them, pleb.
shireboy··on The Geomagnetic Storm Continues
What a great anecdote. Makes me think of Tesla’s (the person not the company) vision of wireless power distribution through the air. Can’t we just put a big tesla coil in orbit and beam that down to power today’s “telegraph”
shireboy··on I’m ready to trade in my electric car
This to me is still the weak link. It’s not just chargers, it’s 30+ minute charge time. As great as electric is, an extra hour in the car on a road-trip with 3 kids is a tough sell. More chargers would help but it’s really battery tech and charge times that need a few more innovations before I’d consider for a car I might take a road trip in.
shireboy··on In Defense of No-Code’s Potential
The most important requirement IMO is his last: a clear off ramp. Export to code would be nice, but what I think the market really wants is to go back and forth between a coded and no coded experience. Let me start a quick app in nocode editor, open in code editor to tweak something and add feature I know I can do quicker in code, then let my non-tech coworker adjust as needed, but then I edit in code when he breaks something. And be open source, popular, pluggable, etc like author suggests. All the benefits of no code, all the benefits of code, with no walled garden.

A guy can dream at least.

shireboy··on Dishwasher Salmon
If you like this, you may be interested in the book Manifold Destiny: The Art of Cooking on your Car Engine.
shireboy··on All you need is data and functions
This is a bit of a rabbit trail, but something I’ve been wondering about lots of these new languages. Who uses them and why? I’m genuinely asking here. I have a hard time imagining going to a team or customer and saying “c#/go/java/python/javascript are the wrong approach for this project. We need to all learn this new language and use that instead.” Don’t get me wrong: I’m glad people are innovating, and I get that personal curiosity and growth might be good reasons to build a new language. But I just wonder about the real world uses and actual stories behind new and lease known languages. Why did someone create Gleam and how is it being used in production today? What are the long term goals for it? What would be the argument for using it on a company’s projects?
shireboy··on Launch HN: Codeparrot (YC W23) – Automated API testing using production traffic
Yes, I have it set up where I can play the tests manually via the .http file or automated via a test suite. In general, I parse the .http file- each ### represents a new test, next line is METHOD URL, next lines are headers, empty space, then request body. Would vary based on test framework, but for mstest, it looks like this:

[DataTestMethod] [DynamicData(nameof(GetAllHttpTests), DynamicDataSourceType.Method, DynamicDataDisplayName = nameof(GetTestDisplayName))] public async Task RunHttpTests(string endpoint, string method, string data){...}

To be clear, this is integration testing, not unit. Testing that certain HTTP requests work, not necessarily that they are correct.

shireboy··on Mathematicians discover shape that can tile a wall and never repeat
I'm confused - I see multiple repeating patterns. three light blue hats in triangle around dark blue. grey boomerang pattern. two white tiles with same rotation and layout. I'm sure I misunderstand what is meant by "pattern that never repeats", but please dumb this down for me.
shireboy··on Launch HN: Codeparrot (YC W23) – Automated API testing using production traffic
I just this week did something similar for a line of business app API I'm migrating. I added code to the API to record all unique requests to a .http/.rest format file (natively supported in vlatest Visual Studio 22 and via extension in VS Code). I can then play those back manually or via automated integration tests that read the .http files. Yes, I'm hand-waving over authentication and downstream database and 3rd party APIs, but overall it's working well to quickly test against tons of production-like API calls.
shireboy··on Steel Threads are a powerful but obscure software design approach
Microsoft calls this the strangler fig pattern and recommends it for large migrations: https://martinfowler.com/bliki/StranglerFigApplication.html

They make it somewhat easy to do using Yet Another Reverse Proxy (YARP). I’m in the middle of it for a .NET 4 to 6 migration. The challenge for me is that it introduces complexity. Developers have to think “do I fix this bug in v1 code or v2?” We have to host two backends instead of one. They both touch the same db, so that adds complexity- what if v2 does something in data that breaks v1? All solvable problems but just thought I’d share a from the trenches take. I do still think it is the right approach for this scenario.

shireboy··on Want an unfair advantage in your tech career? Consume content for other roles
Absolutely. As a developer (in an English speaking country) I tell people my job is to translate from English into Nerd. I sometimes further qualify that as "translate from <business or role> into nerd". Some of this has been codified into things like Domain Driven Design, but to me is just part of being a good developer: listen and understand the business, communicate well, and solve people's problems with code if you have to.
shireboy··on Local-First Web Development
FYI This crashes Brave iOS. Odd it doesn’t crash Safari iOS given they’re the same engine.
shireboy··on Small SaaS banned by Cloudflare after 4 years of being paying customer
Totally agree they should have provided a warning. Any Saas (and really would apply to social media, web mail, etc) should clearly warn before taking drastic action if possible. But I don’t see how you’d have dns without vendor lockin. It’s not like moving dns to godaddy would be better. Route53 is nice, but aws is also a vendor lots of people are locked to

Similar for ddos protection- you almost have to use somebody.

shireboy··on SQL should be the default choice for data transformation logic
I recently ran into this dilemma. I was tasked with writing a feature to allow importing a bunch of CSV into a system. Do I 1) stand up Azure Data Factory and build a pipeline to take the CSV from blob storage, massage it, and upsert the db or 2) write a few lines of C#+SQL to suck in the CSV and do the same? #2 is not quite as trivial as it may seem in real-world. Customer wants preview of data before update, undo capability, etc. But even so, I went with #2. I'm wary of doing things because they seem "easier" to me, but these huge data pipeline tools just seem like overkill at least for the use cases I'm tasked with.
← PreviousPage 5 of 20Next →