Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uranusjr
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
uranusjr
3y ago
In the OG RFC 2396, each _path segment_ can specify parameters similar to query parameters, but using a semicolon to separate them to the main segment value instead of question mark. This has effects e.g. when calculating relative URLs. Thi
2.
▲
by
uranusjr
3y ago
This happened just last year IIRC in Korea. Nothing was in serious danger (except maybe some travel schedules). A comment already described the mechanism and why that’s not really a thing to worry about.
3.
▲
by
uranusjr
3y ago
Because merging into main better exposes the proposal to a more diverse crowd and attracts needed feedback. Especially when you’re managing multiple proposed features, it’s not viable for a mass of users to check out and test those from the
4.
▲
by
uranusjr
3y ago
Forwarding itself is trivial, just ~5 lines in __getattr__. The difficulty comes when you need to type check the thing. Fixing that would require some special treatment on the type system side and not really doable with a third party librar
5.
▲
by
uranusjr
3y ago
They offer educational content. From limited consumption I would not rate it as high quality. More like acceptable I guess.
6.
▲
by
uranusjr
3y ago
> The few people who do need it every day can probably work it out for themselves. People are much less sensitive to their own body odor than you may assume. Please default to taking a shower before you go to public places unless you hav
7.
▲
by
uranusjr
3y ago
I don’t know the exact history, but the rest of the metric system is designed with a base unit and decimal derivatives. Assuming we want to keep the day length consistent (I can’t imagine a system being practically useful otherwise), we’d h
8.
▲
by
uranusjr
3y ago
I think the parent’s logic is the other way around: the rule of law isn’t overwhelmingly relevant in China, so it’s no surprise the VPN law isn’t enforced. You may want to contend if China has the rule of law, but that’s the premise in the
9.
▲
by
uranusjr
3y ago
I’m pretty sure they started put as the exact numbers and were just shortened eventually for convenience. This kind of compound word shortening happens all the time in all languages, it’s just Korean happens to have it for numbers, not part
10.
▲
by
uranusjr
3y ago
I have this done to me a lot and honestly don’t feel a thing. People don’t really care about other people’s coding styles anyway (except they all suck); the thing got done, everyone got credit. I guess everyone feels differently.
11.
▲
Python Developers Survey 2022 Results
(lp.jetbrains.com)
9 points
by
uranusjr
3y ago
|
0 comments
12.
▲
by
uranusjr
3y ago
Side note, but do you mean it reeks of a witch hunt? (Just making sure.)
13.
▲
by
uranusjr
3y ago
I’m really unsure about the Chinese milk scandal analogy. While the Vioxx incident is definitely terrible on its own and may indicate the US government and merchants do not take enough responsibility, the comparison to the melamine is awkwa
14.
▲
by
uranusjr
3y ago
I believe it’s more like half of the Japanese gairaigo (Chinese excluded) come from English, not half of the entirety of Japanese.
15.
▲
by
uranusjr
3y ago
Welcome to the Python community, where type highlighting is a first class syntax feature, but actually checking it is optional (unlike the TypeScript compiler), and you get people complaining their favourite languages is polluted by ugly st
16.
▲
by
uranusjr
3y ago
I’m glad he decided to invent an English Literature correspondent to pick on, and also the 1990s was a better society than one that votes to poison a disliked person.
17.
▲
by
uranusjr
3y ago
Technically the string return type is just a shorthand, IIRC render_template returns a Response object that sets Content-Type and other things appropriately. But yeah it’s pretty trivial to create an HTML formatting library and use it with
18.
▲
by
uranusjr
3y ago
I used to mainly develop in C++ and implicit this was so frustrating. Nowadays it’s mostly Python and the explicit self is simply not an issue. (I also worked on Objective-C code at some point and that’s also fine.) Why any designer of a ne
19.
▲
by
uranusjr
3y ago
There are multiple factors and I’m not sure what the exact cause is either. The relative difficulty to build a playable bot is one. A Go game being relatively long and taxing may be another. Go also traditionally has a reputation of being a
20.
▲
by
uranusjr
3y ago
> ERNIE’s opinions are surprising, to say the least. It believes the best American president is Richard Nixon To an American. Nixon was the first ever president to visit the Communist China. He’s so obviously the best US president from
21.
▲
by
uranusjr
3y ago
The practice used to be prevalent throughout the Sinosphere but felt out of favour a bit in recent years.
22.
▲
by
uranusjr
3y ago
I’m not objecting to what you say. The latter part of my comment is simply considering cases where you only want to replace a part of the function (the author have some examples on the project page), where a decorator wouldn’t be flexible e
23.
▲
by
uranusjr
3y ago
There are examples of decorators having no runtime effects, such as typing.overload. Bit comments are probably more flexible here since it allows arbitrary blocks, not just function/class scopes.
24.
▲
by
uranusjr
3y ago
With modern caching don’t you also only download the web app once as well? I feel the reason web is worse is more because the download happens right before you want to use it, not ahead of time like app bundles.
25.
▲
by
uranusjr
3y ago
Python also has the DBAPI specification, which defines what interface a library must support to be considered a database driver. The author claiming Go’s sql package encourages writing SQL directly while Python doesn’t really seems a bit aw
26.
▲
by
uranusjr
3y ago
I don’t know if it applies to TEMU and AliExpress, but their originals (Pin Duo Duo and Taobao) cover different markets, with PDD being significantly lower in quality (and price). You can get sensors that work roughly fine on Taobao but wit
27.
▲
by
uranusjr
3y ago
Eh, you can find at least three (Traditional) Chinese input methods on any given modern system, and Pinyin is only one of them. Cangjie and Bopomofo require no understanding to Latin alphabets. Not to mention there are other less used metho
28.
▲
by
uranusjr
3y ago
自行車 is used since way before mainland China influence is significant, although 腳踏車 has always been indeed more colloquial. Rejecting 自行車 is like rejecting winter squash as American English only because you grow up calling it pumpkin. As par
29.
▲
by
uranusjr
3y ago
Road rage between cyclists definitely still exists, and personally I can recall a few incidents (of my entire life) that might count as road rage between pedestrians. I think this is all proportional to how to can intimidate people with too
30.
▲
by
uranusjr
3y ago
It depends on how you view it. If you want to show flags, use the region to annotate the language. If you want to show the script variant (Traditional vs Simplified), don’t use flags. I don’t see how you can naively come to the conclusion o
More ›