Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben509
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
361.
▲
by
ben509
6y ago
Don't forget "whatis" as your standard third entry point on Unix. macOS does have a standard Help menu, and you can even live search from within it; it'll find a command within the menus and show you where it is, even if
362.
▲
by
ben509
6y ago
I think it's because naming things is hard, that link proves it by coming up with worse names for almost everything they tried to rename, and often far, far worse. Imagine the confusion if S3 were called "Amazon Unlimited FTP Serv
363.
▲
by
ben509
6y ago
Grep is not much of an advantage when Mac, Windows and Linux all have as-you-type full-text search of common formats like HTML and PDF.
364.
▲
by
ben509
6y ago
> Symptoms of what? If you're looking for root causes, the place to look is human nature. What do people naturally do, without even thinking? You get cities because people need things from other people, so there's value in livi
365.
▲
by
ben509
6y ago
Deleting spam is universally agreed upon as OK censorship. I think it's viewed as OK because everyone can see that many conversation forums can't even work if they're flooded with spam. And to head off the "no, deleting
366.
▲
by
ben509
6y ago
This appears to be aiming at mobile, so maybe a split screen wouldn't work, but I'd at least argue that directories should be at the top. There are cases where a file is associated with directory, e.g. you export a web page and it
367.
▲
by
ben509
6y ago
> Nevermind that the original takedown from MPAA was not in good faith. I think people are reaching that conclusion from prior bad behavior, and maybe courts should consider that. But I don't see a factual basis for that in their fi
368.
▲
by
ben509
6y ago
> Overpopulation and imbalanced distribution of resources is the root cause for everything wrong with this world. Those can't be the roots, since both are symptoms.
369.
▲
by
ben509
6y ago
There is definitely a point at which anyone will cheat, and one time I met that threshold. There was an Econ exam that I hadn't prepared for, and I got there fully prepared to flunk it. That day there was a problem with the photocopier
370.
▲
by
ben509
6y ago
I seen various descriptions of message passing in OOP that wind up meaning "invoke a method, alter an object, return an answer." Lots of different ways to describe a method, lots of ways to modify the object, lots of ways to retur
371.
▲
by
ben509
6y ago
As naming schemes go, though, my preference ordering is still mythology > Middle Earth > Harry Potter > dropping the last vowel.
372.
▲
by
ben509
6y ago
That's a fair point in two ways: most media outlets can't really deliver much more than a soundbite, and people experienced in communicating with them know this and simplify what they say to a soundbite. That's also true for
373.
▲
by
ben509
6y ago
Often, people aren't intentionally try to flood you with crap, they just want to tell their story. And they're told that people should have facts and evidence, so they go find facts and evidence. The intractable problem is their s
374.
▲
by
ben509
6y ago
I'd be interested in a short note on what made it slow / what makes it fast.
375.
▲
by
ben509
6y ago
The whole notion of priorities in safety vs. revenue never works for me. (And you can s/safety/security/ or s/safety/privacy/.) In a very limited scope, it could work. If a team has a sprint or something, they
376.
▲
by
ben509
6y ago
Popcorn apparently, if the MPAA is correct about the source code we now can't read, specifically helps users pirate movies. To avoid cranking the discussion up to 11, let me recast your analogy to, "if people break into houses wit
377.
▲
by
ben509
6y ago
Allow me to justify why end(1) and len are meaningful: Suppose indexing (and you can extend this to slicing if these are possible components of a Range type) is polymorphic. list[Index] means to find an element at Index, starting at the beg
378.
▲
by
ben509
6y ago
I'm not confusing it, perhaps MPAA is. And if Popcorn had made your point, then they'd have made a good faith counter notice. You're directly addressing the takedown notice by disputing its basis in law. But a judge can&#x
379.
▲
by
ben509
6y ago
No, the MPAA is going to sue them now. To file a counter notice, they must have a "good faith" reason for their dispute. The MPAA's claim is that Popcorn is used for piracy. IANAL and don't know the case law, so I don&#x
380.
▲
by
ben509
6y ago
How would you feel about: y[end(1)] y[len - 1] Either one then constructs a "reverse index" value, and the actual index is determined by the slicing operation.
381.
▲
by
ben509
6y ago
> It means no multi-line lambdas so you end up with these unreadable list comprehensions You can have multi-line lambdas, just use parens: (lambda: look.ma.im .on_two_lines) And, yeah, if it's complex enough that it
382.
▲
by
ben509
6y ago
I was annoyed by the number of RTFMs they call WTFs. They even claim some WTFs where Python behaves exactly as a naive user would expect, e.g. if I put 5 and 5.0 in a dict they are treated as the same key. I saw two valid ones: "Lossy
383.
▲
by
ben509
6y ago
A context-free grammar can do it; you'd have three productions "ascending comparison chain," "descending comparison chain" and "equality chain" to cover the valid possibilities. But, yeah, if there are con
384.
▲
by
ben509
6y ago
Every compiler and interpreter as well as all text formats like HTML, XML, JSON, etc. have a lexing pass that uses manually crafted regular expressions. Those are real world projects. The defensible form of this argument is that one should
385.
▲
by
ben509
6y ago
It might be nice to touch on composition as a good way to get started is to test out individual pieces and be confident they work when you're putting them together. If you're building a complex regular expression, setting smaller
386.
▲
by
ben509
6y ago
I don't think a great name helped "search.com", which was owned by CNet[5] at the time and has probably been handed off countless times since. I think I started using google back around '99, and what I recall is first no
387.
▲
by
ben509
6y ago
> The author says that a solution to the Post Correspondence Problem with infinite dominoes in finite time is impossible. He doesn't say an infinite set, though: > Turns out, there exists no algorithm that says “yes” or “no” to t
388.
▲
by
ben509
6y ago
Maybe try this: do longhand division of 7 by 7 or 9 by 9 or whatever, but instead of putting 1 in the first place, start with 0. 0.99 7 | 7.00000 0 7 0 6 3 70
389.
▲
by
ben509
6y ago
Here's one stupid, simple proof that doesn't require any predefinition. We do longhand division of 9 by 9, but start by putting a 0 in the first place. 0.99 9 | 9.0000 0 9 0 8 1 90
390.
▲
by
ben509
6y ago
{ 0.999... | 1 } using surreal number notation.
More ›