Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jdlshore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
811.
▲
by
jdlshore
5y ago
Depends on what you mean by unit tests. A lot of people mean solitary, interaction-based tests. However, the classicist approach is to have sociable, state-based tests, and those lead to great results. I have an article about this that’s go
812.
▲
by
jdlshore
5y ago
Kind of a weird article, TBH. I’m not sure where he got the opening idea that “unit” refers to the test rather than the unit under test. Similarly, I can’t agree that it’s okay to e2e test. I need my tests to be fast and reliable, and e2e t
813.
▲
by
jdlshore
5y ago
Command-Shift-A takes you to the extensions configuration page. Other than that, some extensions have a button which you can add to the menu by using Firefox’s menu configuration tool.
814.
▲
by
jdlshore
5y ago
They have—it’s their VPN offering. (Cue complaints about it not being the right way to fund Firefox, because it’s not a pure donation. Before you go down that road, tell me: what evidence do you have that pure donations would get enough t
815.
▲
AI learns to drive from scratch in TrackMania
(youtube.com)
1 points
by
jdlshore
5y ago
|
0 comments
816.
▲
by
jdlshore
5y ago
It’s unlikely autonomous cars will be privately owned.
817.
▲
by
jdlshore
5y ago
There’s probably better tools, but I use Keynote and Figma. With a bit of creativity, simple animation effects like “wipe” and “magic move” can go a long way. Figma only does the equivalent of “magic move,” but it’s better than Keynote’s. I
818.
▲
by
jdlshore
5y ago
Because I’m on a Mac, everything will be rendered at 2x resolution, giving me the same usable area as a 1920x1080 display, even though the physical area is larger. That’s a step backwards—I’m not willing compromise on usable area or 2x reso
819.
▲
by
jdlshore
5y ago
Speaking as someone who's in the market for a new display, I haven't been able to find a quality 27" 5K screen. LG has one, but it gets poor reviews. Everybody else is selling 4Ks, which is lower effective resolution than wha
820.
▲
by
jdlshore
5y ago
> similar to using a spy server I hadn't thought of it that way, but I think that's exactly correct. > How do you inject the createNull version in a test that does not have the [infrastructure] wrapper as a direct dependency
821.
▲
by
jdlshore
5y ago
I don't fully understand your question (I don't know what you mean by breaking the pattern), but I'll give it a shot. The short version is that the "Null" uses your real production code . The mock doesn't. Let
822.
▲
by
jdlshore
5y ago
I answered this question here: https://news.ycombinator.com/item?id=30591607
823.
▲
by
jdlshore
5y ago
Hey all, author here. I'm a bit late to the party but happy to answer any questions you have. The main question seems to be: what's the difference between null implementations and mocks? There's a practical answer to that que
824.
▲
by
jdlshore
5y ago
No, they’re a variant blackberry that originated in Marion County, Oregon.
825.
▲
by
jdlshore
5y ago
The benefit of a pair in this situation is figuring out the design flaws that make programming repetitive/mundane. If you’re doing a lot of repetitive work, there may be an abstraction you’re missing.
826.
▲
by
jdlshore
5y ago
It’s not the world, it’s GPs fantasy.
827.
▲
by
jdlshore
5y ago
> one little conflict away from a lawsuit I find this hard to believe. Which country’s laws are you thinking of? In the US, at least, companies such as Pivotal and Menlo Innovations, as well as others I’m not at liberty to name, require
828.
▲
by
jdlshore
5y ago
If you’re going to make claims like this, you should back them up. What hardware shortcuts were taken, specifically, and how do they relate to the topic at hand?
829.
▲
by
jdlshore
5y ago
Strong disagree. Metrics-based management leads to so much dysfunction. Read Robert Austin’s Measuring and Managing Performance in Organizations for the details, but the short version is that metrics distract people from things that are i
830.
▲
by
jdlshore
5y ago
Classic whataboutism. GM's irresponsible behavior doesn't excuse Tesla's irresponsible behavior.
831.
▲
by
jdlshore
5y ago
The GDPR explicitly only affects businesses selling to Europeans¹, so you're correct: you don't have to care about it. ¹GDPR Article 3, section 2a. A broad reading would assume that any use of a site by Europeans is also covered (
832.
▲
by
jdlshore
5y ago
Because JS is single-threaded¹ and is designed for use on the web. If you block that thread, then all event processing ceases—button clicks don't register, scroll events don't fire, etc. So all JS API's are designed to be non
833.
▲
by
jdlshore
5y ago
In JavaScript, "await" is syntactic sugar for promises. async function myFunction() { a(); await b(); let d = c(); return d; } becomes something like this: function myFunction() { return new Promis
834.
▲
by
jdlshore
5y ago
animated by Kurzgesagt, but written by Andy Weir (of "The Martian" fame)
835.
▲
by
jdlshore
5y ago
That article is written by a right-wing lobbyist who also denies climate change, the danger of second-hand smoke, and the dangers of asbestos. It's not a reliable source.
836.
▲
by
jdlshore
5y ago
Thanks, I've investigated further, and what I found was convincing. I was particularly disturbed to find that Wikipedia says Steve Milloy (behind junkscience.com, and the author of GP's source) is a right-winger who also denies cl
837.
▲
by
jdlshore
5y ago
What a terrible take. As someone with an interest in monorepos, who's currently working with a company adopting Nx, I found the page interesting and compelling. I spent a good 30-60 minutes following links and investigating deeper. You
838.
▲
by
jdlshore
5y ago
GP posted an article with carefully-made arguments and lots of citations. Your emotional anecdote is unconvincing in comparison and completely ignores GP's link. Do you have a better argument than using italics on the word "poison
839.
▲
by
jdlshore
5y ago
There are some kinds of errors that can’t be handled locally, but do need to be handled globally, or generically higher in the call chain. Continuing execution after the error occurs will make the problem worse. Exceptions allow you to ceas
840.
▲
by
jdlshore
5y ago
Sorry, that doesn’t pass the sniff test. I recently replaced the battery on my 2015 MBP. The local shop quoted around $250; Apple, $180 IIRC. It was a full top-case replacement due to Apple’s poor battery design, heavily discounted because
More ›