Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
z9znz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
z9znz
4y ago
len() is not the same as __len__. The built in len() function does type checking and produces a useful exception/message if you provide an argument for which len() is inappropriate. Instead, if you do someobj.__len__ and that object
272.
▲
by
z9znz
4y ago
That defense doesn't really hold up. len() makes no sense for numbers, booleans, None, and probably other types I cannot think of at the moment. Python has a LONG list of built in functions, most of which are only applicable to a few t
273.
▲
by
z9znz
4y ago
Ahh dunders, and the lack of proper privacy mechanisms... It is generally considered bad practice to call dunders, with the idea being that those are more private or more internal methods which you should not directly depend on (unless you&
274.
▲
by
z9znz
4y ago
Ruby default "values" may indeed be expressions, but the typical use is to provide a value which does not depend on state each time it is provided (and a value which does not share memory with previous or future generations of sai
275.
▲
by
z9znz
4y ago
You are flat out wrong, and I cannot see any way to make this clear to you. Perhaps this is a language barrier problem? > if you couldn’t pass mutable arguments you would cripple the language This is not about passing mutable arguments.
276.
▲
by
z9znz
4y ago
It seems you are misunderstanding something fundamental about this issue. This is not a problem of mutability or immutability of function parameters, but rather that parameter default values are immutable. (But even to your point about ma
277.
▲
by
z9znz
4y ago
> But obviously it's done a lot of things right to gain the reach that it has. Indeed it has. It is a very accessible (and even moreso "available") language. But it has so many odd (and frankly wrong) peculiarities that b
278.
▲
by
z9znz
4y ago
Bringing up Javascript really doesn't help your argument as it is pretty universally deemed a "poorly designed language". Many, many people have written about this. Somewhat randomly selected is this: https://med
279.
▲
by
z9znz
4y ago
I've covered this in detail before, so I didn't feel like rehashing it. Also, while in fact I did have a run-on sentence (because I failed to use a semicolon in one place where I used a comma), I don't believe it's reas
280.
▲
by
z9znz
4y ago
No offense to people who are good people and put in great effort, but that alone does not mean one is infallible. Python is a very poorly designed language, and when I would sometimes dig to find out why things here how they were, Guido was
281.
▲
by
z9znz
4y ago
So you watched the video, and you don't find it odd that in his uniform safe storage environment, MANY of his older Samsung phones had swollen batteries even though his other non-Samsung phones did not? This guy, "Mrwhosetheboss&q
282.
▲
by
z9znz
4y ago
If he's that smart, he should be more than capable of developing a number of other livelihoods - not the least of which could be coaching.
283.
▲
by
z9znz
4y ago
Of all the useful replies given to my question, this one seems the most significant. I had not considered from the buyout perspective. This probably has a high risk of happening within the next 10 years. An if Cloudflare continues doing w
284.
▲
Ask HN: What's so bad about Cloudflare?
14 points
by
z9znz
4y ago
|
23 comments
285.
▲
by
z9znz
4y ago
> working class getting larger chunk of the pie I don't see this happening as a net result. There are just too many powerful (wealthy) interests working multiple angles to ensure that a vast majority of any gains go to the top. The
286.
▲
by
z9znz
4y ago
I don't think he used a VPS; I think he just has a bare metal server (Linux). Hetzner has very performant, spacious servers for cheap. Provisioning time is usually less than 2 hours. In my experience using their servers over the last
287.
▲
by
z9znz
4y ago
I beleive he said it's a boring B2B SaaS. And it's probably a niche market such that possibly (likely?) nobody reading HN would be involved in and be interested in his product.
288.
▲
by
z9znz
4y ago
Is the guard freq available (to receive from) at flight altitude? At least one of the reports supposedly involved the entire flight time.
289.
▲
by
z9znz
4y ago
Having annoying or disturbing loud human noises over the PA system for the entire flight is not something one does to "arouse curiousity". There's no way this is a sanctioned AA marketing program.
290.
▲
by
z9znz
4y ago
> The most plausible explanation is that people are just easy to predict. Might be tough to admit, but that’s actually a much simpler explanation than Facebook having a back door into our messages, which are end-to-end encrypted. I disag
291.
▲
by
z9znz
4y ago
I think there's a natural bias people have to want to NOT see the bad in the organizations that pay them $$$$. This is certainly true in a lot of finance.
292.
▲
by
z9znz
4y ago
> focused on keeping core customers happy What a shocking business priority!
293.
▲
by
z9znz
4y ago
> It's really not a far step from "search for existing images with these keywords" to "generate image from these keywords/prompt". There's also the option to start with stock images, pick the closest, a
294.
▲
by
z9znz
4y ago
Our days are filled with communication. Eliminating unnecessary or pointless communication is beneficial as it saves time for everyone. A message is also clearer with less noise. In the case I highlighted, I would argue that the image and c
295.
▲
by
z9znz
4y ago
I know that feeling. You start a presentation, add a slide, and there you're faced with two boxes. The big Title, and the smaller but more imposing SubTitle. " B-21 Raider Making the detectable undetectable. That's Defining
296.
▲
by
z9znz
4y ago
The tech world shows us that the winning strategy is to just go ahead and do what you want, ideally with consistent financial backing, and pay our way out of any issues that arise.
297.
▲
by
z9znz
4y ago
Haha, Getty images should be planning a big pivot strategy, not worrying about AI content. I predict that within 5 years we will have this all refined to the point where we can generate almost any image we want, to our liking. If you'
298.
▲
by
z9znz
4y ago
The obvious answer to this policy is to take a photo of the inside of your home, family photos and all, and use that as your zoom background.
299.
▲
by
z9znz
4y ago
> Safety comes at a hefty price, however, as the tower’s tuned mass damper cost $4 million to build. A paltry 4 million for a project which cost almost 2 billion (USD); and I imagine it resulted in some measurable reductions in insurance
300.
▲
by
z9znz
4y ago
Don't most open source licenses have some form of "we are not responsible, use at your own risk" clause? In any case, Django has provided this for years, and it probably is one of the reasons why a lot of apps get built on Dj
More ›