Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
B-Con
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
B-Con
11mo ago
> 3. Allows you to assert expectations on it. I think this is the crux that separates Fowler's mock, spy, and stub: Who places what expectations. Fowler's mock is about testing behavioral interaction with the test double. I
32.
▲
by
B-Con
11mo ago
Yes, this is absolutely dependent on the design S3 client. The reality of development is we have to merge different design philosophies into one code base. Things can get messy. 100% agreed. The approach I advocate for is more for a) organi
33.
▲
by
B-Con
11mo ago
There are different definitions of the term "mock". You described the generic usage where "mock" is a catch-all for "not the real thing", but there are several terms in this space to refer to more precise conce
34.
▲
by
B-Con
11mo ago
I generally advise to avoid introducing interfaces strictly for testing. Instead, design the data types themselves to be testable and only use interfaces when you expect to need differing implementations. ie, avoid premature abstraction a
35.
▲
by
B-Con
11mo ago
If you add a method to an interface, you break every source file that uses a concrete type in place of the interface (ie, passes a struct to a function that takes an interface) unless you also update all the concrete types to implement the
36.
▲
by
B-Con
11mo ago
This is the kind of minor celebrity Internet encounter that delights my day but is impossible to explain to anyone else. :-D
37.
▲
by
B-Con
11mo ago
My own personal reflections, that I realize may not be true for everyone. Hypothesis: Living in the moment and being content is a key aspect of happiness. The more you know, the smarter you are, the harder it is to live in the moment or be
38.
▲
by
B-Con
11mo ago
> Asking why smart people aren't happier is a bit like asking why people who can jump high aren't more empathetic. There's no direct link between the two, you have to dip out to the material conditions. I think the reason
39.
▲
by
B-Con
11mo ago
Dave Barry is a humor writer. I've followed him for 20 years and this is absolutely his style of writing, perhaps even paraphrased from one of his pieces. Hats off to OP if this is their original writing, it nails his style.
40.
▲
by
B-Con
11mo ago
https://www.bbc.com/news/articles/ckg1epp73ppo An article, for those who don't want to watch the submission's video.
41.
▲
by
B-Con
11mo ago
> Large companies should just fund startups and acquire them when the product has shipped I mean, that's basically what big tech has been doing for the left 15 years., not then people get upset that "Foo Corp doesn't innov
42.
▲
by
B-Con
11mo ago
Knives are a great example. Any chance it was this guy? https://youtu.be/pagPuiuA9cY I've watched like 3 hours of his videos on sharpening because he's pragmatic, approachable, and scientific, and now I actually u
43.
▲
by
B-Con
1y ago
I skimmed and somehow missed this. Thanks.
44.
▲
by
B-Con
1y ago
To be fair, from a functionality standpoint, AWS hosts like 1/3 of the value that a layperson gets from the Internet, which is all that a non-technical person really cares/things about. ie "the Internet" essentially ref
45.
▲
by
B-Con
1y ago
FAIR? FAANG typo, or is there a new acronym?
46.
▲
by
B-Con
1y ago
I want to see the postmortem, although I'm sure we never will. > Eight Sleep's system, which relies on backend servers for everything from real-time adjustments to data syncing, had no fallback. "It's unacceptable,&qu
47.
▲
by
B-Con
1y ago
A cold mattress with a warm top blanket is one of the irrational joys of life. A warm blanket is more satisfying when you have something cool to contrast it with.
48.
▲
by
B-Con
1y ago
Bruce Schneier said something (multiple times in his books, blog, etc) that really stuck with me as a young adult. Basically: If something is in the news, it's rare enough that you don't have to worry about it. Once the news stops
49.
▲
by
B-Con
1y ago
They should always allow you to delete your remote data. The left switch thrown should always be able to be "off". They can put a giant warming in front of the last "off" click or whatever, not it needs to be there. This
50.
▲
by
B-Con
1y ago
GDP is a known silly metric, but it's easy to define and measure, so we keep using it. I'm often reminded of the quote: "A man marries his housekeeper and that country’s GDP falls". GDP is uncomfortably linked to granula
51.
▲
by
B-Con
1y ago
People in the USA have been picking them up for weeks from Costco. I got mine ~2 weeks ago.
52.
▲
by
B-Con
1y ago
Chat supports rooms with chat threads without autodisappear. Everyone is in various rooms for their local team, broader team, org, and cross functional stuff. The net effect is Slack-like. There's also the ticket system. Sheets are com
53.
▲
by
B-Con
1y ago
Airplane mode + 10k battery lasts ~6-12 days, depending on the person and the phone. There are roughly 1 or 2 thousand attempted "thru" hikes per year, who hike from southern to northern border of the USA over the course of 3-5 mo
54.
▲
by
B-Con
1y ago
Probably not. The community is always hungry for ways to trim weight, any new offering in the field is interesting, but since the battery is one of the most critical items, well, people tend to be conservative and stick to established model
55.
▲
by
B-Con
1y ago
The cars behind the waymo and hit it were at fault for the collision. My guess is that the ambiguity is about the trade-off: "even if no one should hit you for slamming on the brakes, is it a good risk to take over a cat?"
56.
▲
by
B-Con
1y ago
> I am obviously not disputing your experience, but wanted to mention that this was not the standard pattern. The standard pattern for forced conversion at L6 (Staff) was either 6 or 7 reports (I don't remember exactly). Given more
57.
▲
by
B-Con
1y ago
GOOG has made a systemic push to eliminate the role starting ~3 years ago. At that time my M was a staff level IC TLM with 4 reports who was forcibly converted to EM. In those last 3 years I've only seen TLMs used to assist an overload
58.
▲
by
B-Con
1y ago
As a design reviewer, I think all design authors should internalize this concept: > But a good doc will lay out the problem and mental models in a way that the solution that took weeks of hard thought to invent will be clear to the reade
59.
▲
by
B-Con
1y ago
That hiring is by US companies moving at US speeds, who greatly eclipse the growth rate of EU companies, which is the point OP was making.
60.
▲
by
B-Con
1y ago
I've maintained one vanity email for about 15 years. I use it for literally everything. I unsubscribe from everything. It gets some typical low effort spam that the spam filters easily screen out, other than that it's pretty quite
More ›