Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
paledot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
481.
▲
by
paledot
6y ago
Not better, unless the point you're trying to make is that three-atrikes laws are evil and destroy lives and communities. In which case, yes, absolutely.
482.
▲
by
paledot
6y ago
A bit the opposite. Trump has consistently downplayed the threat, and the (blue) states have taken it seriously and saved lives. Fortunately it's well within their rights to be more restrictive than the federal government, just like it
483.
▲
by
paledot
6y ago
That's a fair use case, although I might still wrap that one-liner in a Docker container because the service consuming the mock is probably Dockerized. But indeed it doesn't make sense to configure and run another nginx container
484.
▲
by
paledot
6y ago
That was my thought too (the sarcasm). This was amazing when it was introduced, but in the age of Docker it's no longer really relevant to bootstrapping a basic dev environment.
485.
▲
by
paledot
6y ago
I'm with you on everything but the docs. More than once I've had to dive into the source when the docs tell me one thing but the behaviour in some edge case is different. PHP's docs are extensive, but not nearly as reliable a
486.
▲
by
paledot
6y ago
Yes, of course you should be able to do that using an internal API. Maybe even an internal mailto: link, in the interest of interoperability. But no mail client should ever respect attachments requested by a mailto: link followed by a bro
487.
▲
by
paledot
6y ago
Yeah, but "outsourcing outfit" won't get you billions in VC funding the way "AWS for employees" will.
488.
▲
by
paledot
6y ago
I feel like that makes China a better example than it otherwise would be, because it shows that the Japanese model can work elsewhere too. Although this is also the country that built a hospital in Wuhan in a weekend. Perhaps European compa
489.
▲
by
paledot
6y ago
I'm going to be a bit controversial here and say that that mapping logic should always exist even if toLower() were reliable across all locales. You're mapping between different use cases here, eg. internal to logfile to API to
490.
▲
by
paledot
6y ago
While there are times where that quote applies, in the vast majority of cases, that's the programmer's cop-out upon discovering that the feature they thought was done is in fact broken and obtuse, and they don't care to take
491.
▲
by
paledot
6y ago
<title>https ://totally-your-bank.com/</title>
492.
▲
by
paledot
6y ago
Not sure about employability, at least here. A few months ago I searched for Rust job postings in Montreal (a decent-sized tech hub), and the only three results were Morgan Stanley accepting Rust as a "C++ or similar" language, an
493.
▲
by
paledot
6y ago
Why oh why is it always "the family farm"? At this point, that deserves its own named fallacy. Fine, let's make the first $10 million tax exempt. Or is the hypothetical "family farm" a family farm like Johnson &
494.
▲
by
paledot
6y ago
They're valuable for when you're looking for why they broke the code base. This looks like dead code, will I break anything if I remove it? Git blame gets me the ticket number, details on the particular change being made, and (i
495.
▲
by
paledot
6y ago
That would work great for half an hour, until your Bluetooth connection drops for no reason, the dongle pairs with your car or phone instead, decides it's a headset now, or one of the hundred other things that inevitably go wrong with
496.
▲
by
paledot
6y ago
One competitive advantage of trains is that if they sell more tickets than anticipated, they can (capacity permitting) add an extra car at relatively low cost. An airline has to add another plane or bump passengers. Equally, rail companies
497.
▲
by
paledot
6y ago
And sorry, what's Uber on the hook for here? Don't tell me they didn't know.
498.
▲
by
paledot
6y ago
You always need to get government involved. The free market can regulate many things, customer interest is not one of them.
499.
▲
by
paledot
6y ago
Even (especially?) oil companies can't be persuaded to set aside money to clean up their own damn wells, or at least their governments can't be persuaded to make them pay. We have zero chance here.
500.
▲
by
paledot
6y ago
Right now, woodworking and gardening. Later, who knows. Probably I'll circle back around to programming, but building things for myself instead of for other people. I'm not really sure what I'd find more fulfilling in the day
501.
▲
by
paledot
6y ago
I'm sure work could become my life if I wanted it to, but I want to back off, not double down. I definitely understand the abstract idea of a "pushing force", though. Part of this may be about learning to do without it. I
502.
▲
by
paledot
6y ago
I've seen a few workarounds, each worse than the last, including casting back to array, round-tripping through JSON with the array flag set, and reflection. Hence the public service announcement that this is perfectly doable with the c
503.
▲
by
paledot
6y ago
Good point. My method may behave unexpectedly if you call `sum(true, false)`, but it's not identifiably different than `sum(1, 0)`. Sorry, it was late, and I failed to mention my actual use case: I work on a legacy application and want
504.
▲
by
paledot
6y ago
RP1 is effectively a purer version of Jet-A, and is a very common propellant. I'd say it's more popular than hydrogen, but I'm not sure I can back that statement up. It's what fuels the Falcon 9 lower and upper stages.
505.
▲
by
paledot
6y ago
Kerosene burns, hydrogen explodes. And kerosene doesn't actively damage the tank it's stored in, like hydrogen does.[1] Also, while its energy density per kilogram compares favourably to kerosene, its energy density per litre does
506.
▲
by
paledot
6y ago
Worth emphasizing that this directive applies per file, and affects functions called (not those defined) in that file. Not sure if there's a mechanical reason for that, but if I'm writing a new class I'd like some assurance
507.
▲
by
paledot
6y ago
> Important to notice that casting an array with numeric keys into an object is valid, but one can't dereference its value because property names may not start with numbers. Not true, actually. The (admittedly obscure) syntax to acc
508.
▲
by
paledot
6y ago
I'm in the same place as you are, not FAANG salary but my wife has a FAANG job and we have enough savings to both retire now (early 30s) if we wanted to. I'm trying to figure out what I'd do if I "retired". Tentativ
509.
▲
by
paledot
6y ago
Please no. Squash and merge means that when someone (maybe you) comes across a strange-looking line of code in 18 months and uses git blame to figure out why it was added, they'll be presented with a 1500-line wall of text with no cont
510.
▲
by
paledot
6y ago
All of this, although 30 commits is getting a bit extreme. If you can write 30 commits, each with its own tests, your PR could almost certainly be smaller while still delivering value (not dead code). But I regularly end up with 10 commits
More ›