Better HN
topnewbestaskshowjobs
Log inSign up

swish_bob

304 karma · joined Sep 23, 2016 (10y ago) · 200 submissions

Submissions

comment 6y ago · link · parent

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 ...

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

And a late 80s early 90s children's TV programme.

comment 6y ago · link · parent

"Are your parents proud of what you do for a living?" is quite effective.

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

It's (mostly) a broadcast service. Them metaphor in this case, it's the radio station boosting your signal ...

comment 6y ago · link · parent

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 ...

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Use a graph database?

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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 ...

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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).

comment 6y ago · link · parent

Which is a modded IntelliJ ..

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

or even:

  result = Optional.ofNullable(nullableVariable)
                 .map(NullableType::someMethodCall)
                 .orElseGet(this::fallbackIfNullMethodCall);

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Your choice is a salary that's too low or no salary. Which do you choose?

comment 6y ago · link · parent

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 ...

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

But that's a pun! It's literally the whole point!

comment 7y ago · link · parent

Most obvious in English when you're talking about "the quick and the dead".

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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-...

1234567