TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How many ways can you slice a URL and name the pieces?

66 点作者 remi超过 13 年前

7 条评论

forgotusername超过 13 年前
I have no idea why some think it's a good idea to 'supplement' the browser's built in navigation by overriding yet more of its standard keys. On pressing left arrow, I expect it to behave uniformly, not navigate to some other page. If you insist on doing this, then at least use accesskeys= attribute. Instead I'm left reeling, hands off, staring at my keyboard as if it is an unknown enemy preparing to attack.<p>Really don't care about presentation (serve your blog in text/plain all I care), but some things are unforgivable. Didn't get reading past the first few lines.<p>Is it really unfair to assume someone who makes this mistake could not hold any kind of useful, complex, technically valid opinion that would teach me something new?
评论 #2929859 未加载
pragmatic超过 13 年前
Surely there is a name for this phenomena.<p>Just like human languages have more than one word for the same thing (words for sex, genitals, alcohol, people you like/love/hate).<p>When something is popular (like the things I mentioned above) words to describe it flourish.<p>Also, the url is a close to a universal thing as we have in programming. Almost every framework evolves to eventually deal with a URL (Greenspun's Tenth Rule).<p>So maybe this is asking why the word for (sex|drugs|etc) are different in English than Russian.<p>&#60;/wild speculation&#62;
评论 #2929764 未加载
mildweed超过 13 年前
Yet another lovely cheatsheet to print off and hang on the wall by my desk. Thank you remi. Perhaps I should put up a blog post with all my cheat sheets some day.
saurik超过 13 年前
I was somewhat disappointed that the author of this article left out URI "path parameters": semicolon-delimited name/value pairs that can be attached to each component of the slash-delimited path.
评论 #2930194 未加载
jisaacstone超过 13 年前
I see the block at the end as "<p>A few conclusions: "/* is more prevalent than "/<i>. Yet anecdotally developers use "/</i> more, and in practice most schemes are protocols. "/* is used consistently (to mean the same thing) as are "/* and "/<i>. "/</i> has been used consistently for the past 10+ years and in a way consistent with its operating system roots. "/* is used inconsistently as to whether or not it includes the leading "#" hash/pound symbol. However, notably absent from any specification or platform was the alternative phrase "/*.<p>"<p>I feel there is something wrong
adnam超过 13 年前
And absolutely any combination gets named "baseUrl".
tantalor超过 13 年前
I've seen people confuse "http" with "http:", as in "the 'http:' URI scheme".<p>The name of the scheme is "http"; "http:" is meaningless.
评论 #2929161 未加载