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. This is now obsolete, but many URL-parsing libraries have an API for that for compatibility.
HN user
uranusjr
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.
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 their individual branches. Without merging fast, you can only gather opinions from people actively reviewing patches, which are a far more minority group and likely to be biased.
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 library.
They offer educational content. From limited consumption I would not rate it as high quality. More like acceptable I guess.
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 have very concrete evidence otherwise.
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 have decidays, centidays, etc. and not have hours, minutes, and seconds in the system at all. A system with days, decidays (2.4 hours), millidays (1.44 minutes), and microdays (0.0864 seconds) doesn’t seem bad to me at all, I’m sure people would come up with a good name for 10 microdays for daily use (0.864 seconds).
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 parent message, not the conclusion, so you need to use something else to raise objections toward it.
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 particularly related to the numeric system as suggested.
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.
Side note, but do you mean it reeks of a witch hunt? (Just making sure.)
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 awkward at best; one is a new drug with possible negative health implications (for whatever reason), while the other is a food product with an already illegal additive. It’s not particularly useful to compare the reactions toward the two.
I believe it’s more like half of the Japanese gairaigo (Chinese excluded) come from English, not half of the entirety of Japanese.
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 stuff they don’t ever use (presumably) hurting readability. You can’t please everybody.
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.
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 Flask. (I think there’s already libraries for the tag syntax, you just need to hook it into Flask, or literally any Python web framework really.)
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 new language would think implicit self/this is a good idea is so beyond me.
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 game for bureaucrats and intellectuals, while Shogi being a more people’s game. The obvious parallel between the battlefield also makes Shogi more popular among samurais, who yakuzas draw a lot of inspiration from.
In general I think the two are of comparable popularity in Japan, but I wouldn’t be surprised if real yakuza people do like and play Shogi much more than Go.
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 China’s perspective, if you ask a random Chinese on the street the answer would most likely be him, with Carter being a distant second (during whom the US officially recognised the PPC government).
The practice used to be prevalent throughout the Sinosphere but felt out of favour a bit in recent years.
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 enough to support. Of course you can also argue those can be easily rewritten to be function scoped, but that is a design tradeoff you make that author did not (or didn’t want to).
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.
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.
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 awkward.
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 with PDD you’d get one emitting seemingly random values priced at like $3.
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 methods such as Boshiamy.
自行車 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 parent said, author really seems to have shockingly little experience with non-colloquial Taiwanese Chinese to confidently publishing such a page.
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 tool you have; motor vehicles are much more powerful so people become much more entitled.
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 only one of these is acceptable.
Code zh-tw means the Chinese variant used in Taiwan. The technically correct code for Traditional Chinese is zh-hant.
It’s an entirely separate issue from the flag, but the developer technically should label the languages “Chinese (China)” and “Chinese (Taiwan)” in the dropdown instead, to better correspond to the flags.