HNHacker News
TopNewBestAskShowJobs

philwelch

36,564 karma · joined March 23, 2009

submissionscomments
philwelch··on Live coding interviews measure stress, not coding skills
In my own career, managing stress has been a much greater challenge than the technical skills, so if anything this vindicates live coding interviews.
philwelch··on Carbon Language: An experimental successor to C++
Maybe not, but an Objective-C++ codebase might be a good candidate.
philwelch··on Carbon Language: An experimental successor to C++
Zig is designed to interoperate like this with C, and Kotlin with Java.
philwelch··on Documents detail U.S. soldiers shot by their own Sig Sauer guns (2024)
There is tons of video evidence.
philwelch··on Documents detail U.S. soldiers shot by their own Sig Sauer guns (2024)
If you don’t have the attention span for nine minutes of video I found a YouTube short for you: https://youtube.com/shorts/cOUfurKIjnI

This same footage was in at least one of the compilations, as is footage of other discharges, and I shared the compilations largely to underscore the sheer number of incidents. If it’s not worth your time to watch it’s not worth my time to handhold you through it.

Edit: I should have predicted this. If I share a compilation of videos, I get complaints about the format, and if I share a single short, I get nit-picked. This isn't a good faith disagreement, this is a couple of people playing a shitty game of "winning arguments on the internet" at best. ummonk shared a clearer example in this comment: https://news.ycombinator.com/item?id=44697503

philwelch··on Documents detail U.S. soldiers shot by their own Sig Sauer guns (2024)
And to your point, one would also expect law enforcement to be more concerned than the military about the quality of their pistols. A police pistol is the primary weapon but a military pistol is more of a last resort.
philwelch··on Documents detail U.S. soldiers shot by their own Sig Sauer guns (2024)
The SIG P320 does go off on its own. The sheer number of incidents with that model in particular, many of which occurred on camera and around multiple witnesses, is telling. SIG may have once been a reliable and trustworthy manufacturer but that’s no longer the case.

https://youtu.be/b33AXiuytn0

https://youtu.be/z789IuTQLs8

philwelch··on Documents detail U.S. soldiers shot by their own Sig Sauer guns (2024)
The safety issue with the SIG P320 is real. I’ve seen footage of multiple instances of a P320 discharging in the holster without the trigger being touched; in fact you can find much of that footage on YouTube. There’s a growing list of law enforcement agencies, shooting ranges, training facilities, and now even the US Air Force either banning the P320 or withdrawing it from service. Yes, it’s true that a lot of people (even cops and Alec Baldwin) will negligently discharge a firearm and lie about not pulling the trigger, but the sheer number of reported incidents with the P320 in particular, as well as the massive amount of footage of these incidents (a happy side effect of ubiquitous police body cameras) provides very conclusive evidence.
philwelch··on Vanishing home field advantage in English football
I think regular seasons are actually better mechanisms for discovering the best team because playoffs always suffer from low sample size. A bad 90 minutes is enough to ruin more than one playoff round in the NFL and probably enough to make the difference in the NBA as well. Playoffs are better optimized for drama.
philwelch··on Vanishing home field advantage in English football
Most flags that have blue don't have sky blue, they have a darker blue. If pink was as dark it would be red.
philwelch··on Parsing Protobuf like never before
If performance isn’t an issue, why not JSON?
philwelch··on Beyond Meat fights for survival
Considering that this manufacturer of ersatz meat is unprofitable and bordering on insolvent, it seems that people do not, empirically, want to eat it.
philwelch··on Beyond Meat fights for survival
Farm subsidies primarily happen because farmers vote. And you haven’t shown any evidence that farm subsidies privilege beef over potatoes.
philwelch··on Valve confirms credit card companies pressured it to delist certain adult games
> Republicans literally argue it's better for the country to have school shooters and for survivors and parents to live with PTSD for the rest of their lives than to limit access to military-grade weapons.

Can you quote any Republican who has “literally argued” this or are you just spreading lies that make it easier for you to vilify and dehumanize people who disagree with you politically?

philwelch··on Valve confirms credit card companies pressured it to delist certain adult games
This isn’t about “trying to show a sensual human body”, it seems to be about incest porn specifically. There are still plenty of pornographic games available on Steam, even absurdly offensive ones such as the multi-part “Sex with Hitler” series.
philwelch··on I want an iPhone Mini-sized Android phone (2022)
I’ve never had battery issues with my mini. But then again, I just want an unobtrusive tool. You can make a lot more money selling phones that are targeted to compulsive/addictive “whales” than you make selling normal phones for normal people.
philwelch··on Zig's New Async I/O
Most forms of dependency injection are abstractions over parameter passing. If you find yourself passing the same parameters into many different function calls there are ways of abstracting that, even in Zig. It’s not going to look like Spring and if that’s a dealbreaker for you, just use Spring, it’s a free country.
philwelch··on Zig's New Async I/O
> so the central idea of dependency injection, a concept with a wiki of like 5000 words [1], is just pass parameters to functions...?

Specifically, parameters that refer to a dependency that is being injected.

And yeah, there are a lot of fundamentally simple ideas that can be massively overcomplicated. Let’s take a look at that Wikipedia article:

> There are several ways in which a client can receive injected services:[29]

> * Constructor injection, where dependencies are provided through a client's class constructor.

> * Method Injection, where dependencies are provided to a method only when required for specific functionality.

> * Setter injection, where the client exposes a setter method which accepts the dependency.

> * Interface injection, where the dependency's interface provides an injector method that will inject the dependency into any client passed to it.

You’ll notice that these are more or less an enumeration of ways to pass parameters into functions in object oriented programming. Most of the complexity isn’t the idea of dependency injection itself but rather in building abstractions for doing dependency injection, especially in an object-oriented language.

And yeah, a lot of the complicated versions of DI, like Spring, probably are mostly snake oil. But I object to the notion that I am peddling snake oil because I’m not advocating for anything like Spring or claiming that DI is anything more than parameterization.

philwelch··on Zig's New Async I/O
Not at all. Dependency injection is the injection of dependencies as logical parameters. The simplest and arguably best way to inject logical parameters to a segment of code is to use function parameters. You can have a complicated DI framework that involves Java class annotations and megabytes of XML, but that’s not the central idea.
philwelch··on U.S. abandons hunt for signal of cosmic inflation
> I am not optimistic that the systemic solutions to the problems that I'm talking about are going to come from anyone in American politics

As I said, I think we probably both disagree with each other and Trump about what those solutions are. But what you said was that no one in American politics is willing to even acknowledge the problem in the first place, and that was false.

philwelch··on Zig's New Async I/O
Passing in your dependencies as function arguments is a form of dependency injection. It is the simplest and thus arguably best form of dependency injection.
philwelch··on Reverse proxy deep dive
The model itself isn’t nonsense because it’s not a model of load balancers; it’s a model of network protocols. Load balancers might handle multiple levels of the stack for the same traffic, but so does any other networked program, eg handling cross-domain redirects.
philwelch··on U.S. abandons hunt for signal of cosmic inflation
I’m not pleased with Trump’s trade policies either but your central claim was that nobody is willing to address the issue at all, and that’s simply not true. You, me, and Trump all probably mutually disagree with each other’s preferred solutions, but we aren’t in denial about the problem itself. It is one of the most widely discussed economic and national security issues we have if not the most.
philwelch··on U.S. abandons hunt for signal of cosmic inflation
Your point is like saying whoever invented the car also invented the wheel.
philwelch··on U.S. abandons hunt for signal of cosmic inflation
What are you talking about? The current president was elected on the platform that offshoring was a bad idea that has created a threat to American hegemony. Free trade is politically dead now.
philwelch··on Reverse proxy deep dive (2024)
Original, Medium-free URL is https://startwithawhy.com/reverseproxy/2024/01/15/ReversePro...

Meta request: can we change the URL to the original source? This isn’t quite blogspam (since it’s the same author reposting the same piece onto Medium) but Medium is annoying enough that I’d still rather resolve to the original source

philwelch··on AI note takers are flooding Zoom calls as workers opt to skip meetings
So many people calling themselves “engineers” these days don’t even know the first thing about siege warfare.
philwelch··on Swearing as a Response to Pain: Assessing Effects of Novel Swear Words
Albeit rare, triple compound words are nonetheless commonly used and recognized in English. Many of them sound formal and archaic but they are nevertheless still in common usage nowadays, not merely a relic of the days of highwaymen and crossbowmen. The archaic examples heretofore used notwithstanding, it would be false to claim that there are no triple compound words whatsoever.

(Inasmuch as I've made my point, I will spare you any further woebegone prose.)

philwelch··on Swearing as a Response to Pain: Assessing Effects of Novel Swear Words
It just takes longer to standardize them but English absolutely has compound single words. Examples include “folklore”, “pancake”, “manslaughter”, “oatmeal”, “pocketknife”, and “gunman”.
philwelch··on ICE test train reaches speeds of up to 405.0 km/h
Here's one of the most famous examples: https://maps.app.goo.gl/yxgJryDok962rdHB8

There's even a Wikipedia article with some photos: https://en.wikipedia.org/wiki/High_Five_Interchange

← PreviousPage 10 of 34Next →