Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben509
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
98 ms
·
871.
▲
by
ben509
7y ago
It used to be just "personnel," not sure when the change happened but I'd spitball around the '50s in the US. The name change was more significant than simply a fancy new title, the idea went back to WWI and the labor mo
872.
▲
by
ben509
7y ago
I'm not following what you're saying it's a test run of. I agree that he probably wanted to cease being BFDL because it's a big job, but with the caveat that I'm terrible at following Internet drama, he did seem gen
873.
▲
by
ben509
7y ago
> "Empathy" is a buzzword in technical writing. We should use a term that is more clinical in technical writing. The "empathy" we're aiming for is fully understanding the user experience. That is a correct use of
874.
▲
by
ben509
7y ago
Not a bad idea.
875.
▲
by
ben509
7y ago
I think it's precedent because it's just a line after a block instead of before it. It certainly is a break from Python's "big outline" look. > What if the while statement was part of the loop and could be placed
876.
▲
by
ben509
7y ago
I often take the compromise technique: write a prototype and build off that. The prototype is generally a mess, but I throw that out anyway.
877.
▲
by
ben509
7y ago
Definitely agree about active noise cancellation, if anything, it makes voices worse . I've been pleased with Etymotic ER3XR. Though headphones don't help with visual distraction. I need to look into some dividers just to block o
878.
▲
by
ben509
7y ago
> The collaborative kind of setting really helps in creating a nice vibe Yeah, the vibe is the entire reason why they're popular. It's like the "I f*cking love science" image of science: science looks cool and fun if
879.
▲
by
ben509
7y ago
Same here. I get my happy vibes at work when I make a thing. > I do think it can be a strong contributing factor. Even if it's a small factor, an open office doesn't actually help with collaboration, so it's all downside a
880.
▲
by
ben509
7y ago
I'm not sure why the consistent way looks ridiculous. do: body() body() while x < 10 It's just a compound statement consumes the trailing while clause. Decorators already precede a function (or clas
881.
▲
by
ben509
7y ago
dis.dis(bar) shows: 0 LOAD_FAST 0 (x) 2 LOAD_CONST 1 (3) 4 INPLACE_ADD 6 STORE_FAST 0 (x) 8 LOAD_CONST 0 (None)
882.
▲
by
ben509
7y ago
It's the current year! This is slated for 3.9: https://www.python.org/dev/peps/pep-0554/
883.
▲
by
ben509
7y ago
Quoth the PEP[1], Guido changed his mind when he found proof that coders would write redundant (and expensive) code to avoid using a separate line to construct a temporary variable. So one might argue that a principle of python is that the
884.
▲
by
ben509
7y ago
Oh, nice! I'll have to add that to json-syntax.[1] [1]: https://pypi.org/project/json-syntax/
885.
▲
by
ben509
7y ago
It's not valid in an assignment statement, so you can't use it everywhere. FWIW, I agree with the sentiment; I use := for assignment in my language precisely because that's the correct symbol. But even there, my grammar accep
886.
▲
by
ben509
7y ago
No, just a SyntaxError. Generally, library authors won't be able to use it if they want to support many versions; same as with f-strings.
887.
▲
by
ben509
7y ago
You don't even need the locals() function to get into trouble: x = [1, 2, 3, 4] def foo(): x[0] += 3 # Okay def bar(): x += [3] # UnboundLocalError def qux(): x = [5, 6, 7, 8] # Binds a new
888.
▲
by
ben509
7y ago
One solution would be to borrow from Perl. You make a do block that executes once unless continued, and allow conditions on break and continue: do: thing() thing() continue if condition And you can now expre
889.
▲
by
ben509
7y ago
> The really frustrating part is that linked lists are actually bad practices in most instances nowadays "Fancy algorithms are slow when n is small, and n is usually small." -- Robert Pike Cons-based linked lists continue to be
890.
▲
by
ben509
7y ago
Worse, you are burning the cheeseburger off, and the fries, and most of the drink. There are just a few extra calories that you don't burn off, and that adds up over the course of a year. So the weight problem is technically an eat
891.
▲
by
ben509
7y ago
> By reporting these issues earlier we go from a situation where the user doesn't understand why Samba isn't working, to a situation where an explicit warning and a clue are given the minute an issue might require the user'
892.
▲
by
ben509
7y ago
The common contrasting explanation is that DC is projecting power by limiting how ostentatious it is, but nevertheless restricting other buildings from being tall. While the Capitol dome theory is a myth, the maximum height[1] allowed for b
893.
▲
by
ben509
7y ago
I thought extending _throws_ with an _as_ clause would make it far more manageable: void foobar() rethrows IOException as AppException rethrows FooError, BarError as WtfError { Being able to express that a bunch of internal exceptio
894.
▲
by
ben509
7y ago
A small point on your portfolio: Your portfolio should show products rather than projects . Not everything needs to be complete, but you should be able to show that it does something. Ideally, your resume is linking straight to a live de
895.
▲
by
ben509
7y ago
Yeah, every prosecutor who indicts someone on conspiracy charges is a conspiracy theorist, by the plain meaning of it. What crosses the line into "truther" territory is generally a fantastically organized coverup as explanation fo
896.
▲
by
ben509
7y ago
It would also protect people making calls that could lead to accusations of racial profiling.
897.
▲
by
ben509
7y ago
It's for when the good search engine is the site's own page. If I'm working on python and numpy and I want to look up `argsort`, I know I want to search the numpy page, so !numpy argsort takes me right there. Any kind of we
898.
▲
by
ben509
7y ago
For that specifically, use !dhub or !dockerhub to search the site directly. Really, the magic of DDG is bang queries. (Search for bang queries with, not surprisingly, "!bang".)
899.
▲
by
ben509
7y ago
I use DDG as my default everywhere, and when I don't find something, I'll !g it as a bit of a last resort. I'd estimate I'm doing that maybe 5% of the time. It seems to be even odds that I find a satisfying match, though
900.
▲
by
ben509
7y ago
They don't even need to clever as much as persistent, because of the selection effects.
More ›