TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

66 pointsby remiover 13 years ago

7 comments

forgotusernameover 13 years ago
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 未加载
pragmaticover 13 years ago
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 未加载
mildweedover 13 years ago
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.
saurikover 13 years ago
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 未加载
jisaacstoneover 13 years ago
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
adnamover 13 years ago
And absolutely any combination gets named "baseUrl".
tantalorover 13 years ago
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 未加载