HNHacker News
TopNewBestAskShowJobs

swish_bob

304 karma · joined September 23, 2016

submissionscomments
swish_bob··on This PIN can be easily guessed
i was so disappointed when I realised they were emulating a USB keyboard to enter the PINs. That first picture made me think they had a actual robot finger for a moment ...
swish_bob··on I Don't Use Classes
I am and have done both. I tend to prefer a functional style, but even then I'm going to be using classes (or a similar construct) for quite a lot of problems.
swish_bob··on I Don't Use Classes
I came here to talk about Liskov, but since you beat me to it I'll mention SOLID principles of class design instead, which it really sounds like the OP isn't aware of or just isn't following and it feels like is the source of a lot of their class based woes.
swish_bob··on No engineer has ever sued because of constructive post-interview feedback
Dunno, watching people cat something then pipe it to grep drives me up the wall. I'll let piping grep to wc -l instead of just using -c pass this time though.
swish_bob··on Knightmare: A DevOps Cautionary Tale (2014)
And a late 80s early 90s children's TV programme.
swish_bob··on U.S. files lawsuits over robocall scams
"Are your parents proud of what you do for a living?" is quite effective.
swish_bob··on The Shapes of Code
Your test should explain what it's testing. Via it's name or some other mechanism. Otherwise how do you know what's gone wrong when it fails?
swish_bob··on The Shapes of Code
Why it exists ought to be explained by the existence of a test.

This isn't always possible, but it's far more possible than many developers seem to think.

swish_bob··on Let's Reverse Engineer Discord
It's (mostly) a broadcast service. Them metaphor in this case, it's the radio station boosting your signal ...
swish_bob··on The propeller is giving way to the pump-jet propulsor on larger submarines
I remember trying to create an MHD proof of concept in physics at school after reading the book, well before the movie was released. I thought it was inspired by the book ...
swish_bob··on Is Git Irreplaceable? (2019)
I particularly enjoy IntelliJ's local history, which will go so far as to tell me whether the tests were passing or failing (and how many failed) on a specific file at a specific point in time.
swish_bob··on Is Git Irreplaceable? (2019)
Use a graph database?
swish_bob··on Engineer says Google fired her for notifying co-workers of right to organize
I'm stunned by the number of people who think that reviewing a PR is just a matter of checking the code works and looks clean.

Does nobody ask what the code is for and why you're doing it? I mean, I don't expect people to require detailed specs before approving, but a quick "what's this code for, and why are you doing it?" before addressing the details.

Surely that's the bare minimum, isn't it?

swish_bob··on Hacking GitHub's Auth with Unicode's Turkish Dotless 'I'
How would they complain to you? How would they know what the problem is?

Assuming they don't just fail to register and move on ...

swish_bob··on Hacking GitHub's Auth with Unicode's Turkish Dotless 'I'
So, when I registered for my primary email account (many, many years ago), Firstname.Lastname@provider was already taken, so I took FirstnameLastname@provider.

Are you suggesting I shouldn't be allowed an account with you if the person who beat me to my preferred email address also beat me to registering with you?

swish_bob··on Kotlin vs. Java
I've occasionally seen issues with thingId and thingID, but mostly they've been aesthetic or in serialised contexts (json is a swine for this).
swish_bob··on Kotlin vs. Java
Which is a modded IntelliJ ..
swish_bob··on Kotlin vs. Java
If you create a null reference to an Optional in any code base I have to deal with I will hunt you down and hurt you.
swish_bob··on Kotlin vs. Java
or even:

  result = Optional.ofNullable(nullableVariable)
                 .map(NullableType::someMethodCall)
                 .orElseGet(this::fallbackIfNullMethodCall);
swish_bob··on Kotlin vs. Java
Worse was when I had somebody adding the ip address as an Inet4Address on every message passed between machines in a production environment that explicitly didn't have DNS (banks have occasionally very odd ideas about securing subnets). Every single message was doing a reverse DNS lookup and then timing out. And there were a _lot_ of messages.
swish_bob··on College-educated workers are taking over the American factory floor
Your choice is a salary that's too low or no salary. Which do you choose?
swish_bob··on Apple’s Ad-Targeting Crackdown Shakes Up Ad Market
I've read loads of suggested explanations for why this is a thing over the years, and none of them have ever felt satisfactory to me.

However, none of the people doing this really care why this is a thing, they care that, for some reason, this is a thing. It's vastly more profitable than nearly every other type of advertising, and since nobody _really_ knows how that works either, they just follow their tried and tested patterns that work.

Obvious _you_ wouldn't be this dumb. But it turns out that, on average, you are exactly this dumb ...

swish_bob··on Apple’s Ad-Targeting Crackdown Shakes Up Ad Market
This makes it clear why it's in the individual advertiser's interest _and_ advertising network/website's interest to get more data on the users.

The cost to the advertiser has stayed the same (or in reality, has probably gone down slightly, as it's likely fewer people are bidding on the impression) while the revenue per impression has overall gone up.

swish_bob··on The Throughput Problem: Recharging Electric Cars Requires the Patience of Job
Even the jerry-can point is bullshit. I already have a portable battery pack in my garage for jump starting a car with a dead battery (because it's not possible to get another car onto the drive to jump start one that way). The tech to do the equivalent for a battery powered car is achievable, and I doubt it'll be terribly long before the roadside assistance companies are fitting the equivalent to a number of their vehicles.
swish_bob··on The Making of Margaret Atwood
She writes well, but the snobbery towards "genre fiction" irks me enough that I generally refer to her as a science fiction writer who does other stuff.

I get the impression I'm not alone and a whole lot of people who enjoy good writing that may or may not be science fiction just wish she'd accept it and move on.

swish_bob··on Tesla Cybertruck
SUVs have a dreadful record for safety. They feel safe, because they're so big, but they really aren't more safe than smaller vehicles.
swish_bob··on Instant stone (just add water) (2018)
But that's a pun! It's literally the whole point!
swish_bob··on Instant stone (just add water) (2018)
Most obvious in English when you're talking about "the quick and the dead".
swish_bob··on Amtrak Could Turn a Profit for the First Time
Nearly every part of this is incorrect.

Most Americans do not have good enough insurance.

The cost per person of health care in the US is far, far higher than that of the countries you're deriding.

People do, actually, choose to have their cancer treated in the UK.

Try to get mental health care in the US if you're poor.

Care being denied because you're too old, or too young is just crap. Your whole "the government will stop you" argument is based on one story where a child's parent's wanted to make their suffering last longer, even though the evidence was quite clear that the only people who would benefit from it was the people lying to them about whether there was anything that could be done.

The NHS is responsible for an astonishing number of advances in medicine. And no, it isn't a coincidence.

swish_bob··on Tesla’s European gigafactory will be built in Berlin
Numerous, repeated stories over the years. They keep claiming they've improved, and it's possible they have, but stories keep surfacing.

https://riskandinsurance.com/5-takeaways-from-teslas-safety-...

Page 1 of 7Next →