Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nathan_long
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
nathan_long
7y ago
Why would we go beyond step 2? As a taxpayer, I could buy the argument that the govt needs a new font, and that, having made one, it should make said font available for free so taxpayers can get the benefit. I don't see why my taxes sh
92.
▲
by
nathan_long
8y ago
Everything is a tradeoff. You say: > sometimes you don't have a name ready and it's actually better to defer naming the thing until you know what it is You can do that without this feature; you can use throwaway variable names
93.
▲
by
nathan_long
8y ago
Verifying a user's email by collecting their password is ineffective for users with 2FA enabled and reckless/malicious for those (the majority) without it. Accidentally log that data somewhere, and you've opened a way for att
94.
▲
by
nathan_long
8y ago
Arguably, giving up your email login is worse than giving up your banking login, since attackers could use your email to reset the password on other accounts, possibly including bank accounts. For banking, a better system would allow you to
95.
▲
by
nathan_long
8y ago
> So is Verizon responsible even though nobody at Verizon had anything to do with it? Imagine if CompuServe still existed, but they had undergone 100% employee turnover in recent years. They'd still be liable, right? It seems to me
96.
▲
by
nathan_long
8y ago
> not an apples to apples comparison IMO I see what you did there.
97.
▲
by
nathan_long
8y ago
I think password management is a good fit for Mozilla. I perceive Mozilla to be trustworthy and competent, and the code for this is open source: https://github.com/mozilla-lockbox They also generally do a good job with UI,
98.
▲
by
nathan_long
8y ago
The bullet gem has helped me solve this problem in specific applications before, yes. My higher-level problem is that having lazy-loading on by default allows N+1 queries to creep in to a code base and you need a third-party gem to find the
99.
▲
by
nathan_long
8y ago
> Wouldn't you expect a carbon tax to be similar in price to the cost to get the carbon back out of the air? If the goal of the tax is to fund carbon removal and if that removal can be done immediately after emission without any dam
100.
▲
by
nathan_long
8y ago
> Callbacks suck, so write service functions for complicated CRUD. Working around ActiveRecord defaults is like the 2nd thing you learn to do at a serious Rails shop. I'm afraid you may not have been working with sophisticated Rails
101.
▲
by
nathan_long
8y ago
> I love how every time there is a post about Rails, someone preaches the holy grail of Elixir/Phoenix. I can understand how you might feel that way. I tried to make clear that I don't think it's the perfect answer to ever
102.
▲
by
nathan_long
8y ago
If the query was expensive and could be run periodically, I'd either create a materialized view that gets refreshed as often as necessary (maybe by https://dockyard.com/blog/2017/11/29/need-an-elixir
103.
▲
by
nathan_long
8y ago
> The problem I had with the bullet gem however is that some times you actually want N+1 queries. Especially with Russian-Doll caching. I know it sounds like I keep beating the same drum, but to me this problem seems like "we have s
104.
▲
by
nathan_long
8y ago
> Perhaps you don't want everything eager loaded, but you want an exception to be raised if you try to access an associated record that hasn't been preloaded. Yes, exactly. > When I need to load/use them along with many
105.
▲
by
nathan_long
8y ago
I haven't used Node, but I think it's funny how they tout asynchronous IO via callbacks. Meanwhile the BEAM has that plus asynchronous computation - you just write synchronous code and let the scheduler pause your BEAM process as
106.
▲
by
nathan_long
8y ago
I know how to preload associations, but I don't know how to globally disable lazy loading of associations. Do you know a way?
107.
▲
by
nathan_long
8y ago
Yep, I used it extensively on one project, configuring it to raise exceptions if it detected an N+1 query and gradually enabling it test by test as I fixed them. It's very helpful.
108.
▲
by
nathan_long
8y ago
I spent a couple of years dreaming of getting paid to work in Ruby and Rails and about 7 years doing so. There are many things I loved about Ruby, and Rails brought a ton of good ideas to web development, as this post describes (though I do
109.
▲
by
nathan_long
8y ago
This reminds me of the ISPs getting upset about the bandwidth they have to deliver on behalf of Netflix. "Our platform enables your app" is true in both cases. But so is "our app brings people to your platform." The powe
110.
▲
by
nathan_long
8y ago
> I hate being outright dismissive but it sounds like an expensive html/pdf form with a printer attached. I don't think that's dismissive at all. That's what it is, and it sounds good to me. Basically the computer is
111.
▲
by
nathan_long
8y ago
> none of the election committees were willing to commit to a full hand recount I don't see how any system can work if nobody is willing to double-check it.
112.
▲
by
nathan_long
8y ago
> Kiniy said Galois will design two basic voting machine types. The first will be a ballot-marking device that uses a touch-screen for voters to make their selections. That system won’t tabulate votes. Instead it will print out a paper b
113.
▲
by
nathan_long
8y ago
> But using less javascript is the hype today... Is it? This article on npm weekly ( https://medium.com/npm-inc/npm-weekly-133-billions-of-packag... ) says 4 billion packages were downloaded in a single week - represe
114.
▲
by
nathan_long
8y ago
> You think people can’t tell the difference between Melanesians, Caucasians and Sub Saharan Africans? Get someone to show you pictures and have you identify them. I bet you'll make a lot of mistakes. Historically, not only can peop
115.
▲
by
nathan_long
8y ago
> When you discover that some "race" is underrepresented in some field, it's completely possible that a major cause is that the median in that arbitrarily defined racial category is below the median in another arbitrarily
116.
▲
by
nathan_long
8y ago
A genetic test to see whether someone has ancestry from Melenasia or Sudan or Scotland is likely to give a different result than casual visual classification. The latter is what we commonly call "race".
117.
▲
by
nathan_long
8y ago
No. Go look at pictures of Melanesians. Are they "black"? Yet: > Among Templeton's conclusions: there is more genetic similarity between Europeans and sub-Saharan Africans and between Europeans and Melanesians, inhabitants
118.
▲
by
nathan_long
8y ago
> Race is a subjective classification based on objective characteristics. Perhaps more subjective than you think? Please read about the "one drop rule".
119.
▲
by
nathan_long
8y ago
> Templeton used the same strategy to try to identify race in human populations that evolutionary and population biologists use for non-human species, from salamanders to chimpanzees. He treated human populations as if they were non-huma
120.
▲
by
nathan_long
8y ago
I have also heard of medical examples like that. However, this article argues that generalizations based on apparent racial characteristics are medically unreliable. https://www.scientificamerican.com/article/race-is-a-
More ›