Slashdot Mirror


Tim Berners-Lee Is Sorry About the Slashes

Stony Stevenson writes "A light has been shone on one of the great mysteries of the internet. What is the point of the two forward slashes that sit directly in front of the 'www' in every internet website address? The answer, according to Tim Berners-Lee, who had an important role in the creation of the web, is that there isn't one. Berners-Lee revisited that design decision during a recent talk with Paul Mohr of the NY Times when Mohr asked if he would do any differently, given the chance. 'Look at all the paper and trees, he said, that could have been saved if people had not had to write or type out those slashes on paper over the years — not to mention the human labor and time spent typing those two keystrokes countless millions of times in browser address boxes.'"

16 of 620 comments (clear)

  1. Theres one technical point by sopssa · · Score: 5, Interesting

    From technical point of view, *not* having the // could create problems more easily. For example if you include port number in the URL and browser or program tries to look at what protocol it is based on value before first :

    http://tech.slashdot.org:80/story/09/10/14/1219215/Tim-Berners-Lee-Is-Sorry-About-the-Slashes
    http:tech.slashdot.org:80/story/09/10/14/1219215/Tim-Berners-Lee-Is-Sorry-About-the-Slashes
    Now if you dont write that http: in browser:
    tech.slashdot.org:80/story/09/10/14/1219215/Tim-Berners-Lee-Is-Sorry-About-the-Slashes

    Now the browser would think the protocol is tech.slashdot.org and tries to pass it to a responsible program instead of loading it. This means you would now need to actually type in the http: which none of us do now. Or dropping general URI support from browsers and IM windows and any other programs (you know all those irc:// spotify: and so on URI's). Or then typing in the :80 would be mandatory.

    1. Re:Theres one technical point by Viol8 · · Score: 5, Insightful

      Don't be an ass. Using ports allows someone to set up an ah-hoc server for testing or whatever easily. The last thing they want to do is dick about having to update DNS's bastard child before they can access it from the browser.

    2. Re:Theres one technical point by 3247 · · Score: 5, Interesting

      Or just use a different punctuation character for ports. If you think about how the design of URLs could have been better, other decisions are not cast in stone. The ':' also clashes with the separator in IPv6 addresses (which is an oversight on part of those who designed IPv6).

      http:org/slashdot/tech/story/... (use SRV record)
      http:[org.slashdot;8080]/story/... (use hostname and port)
      http:[123.45.67.8;8080]/foo/... (use IPv4 address)
      http:[2F00:BABA::1;8888]/bar/... (use IPv6 address)
      http:[47.0012.3400.0000.006F.7123.8f23.4012.0c80.0000.00]/ha/... (just kidding)

      --
      Claus
    3. Re:Theres one technical point by Random+BedHead+Ed · · Score: 5, Insightful

      http:org/slashdot/tech/story/... (use SRV record)

      I've always liked that idea (which I've seen before) because it treats subdomains in the same way it treats subdirectories under the document root, which opens a lot of possibilities for creative web hosting schemes (e.g., Slashdot could have put this story on a site at slashdot.org/tech, but when that server's load became high enough to justify a separate host the site could move to tech.slashdot.org - there would be no difference between /tech and tech. from a navigational standpoint).

      Also, the dot-com boom would have been the com-slash boom, which would have been much cooler.

    4. Re:Theres one technical point by tsm_sf · · Score: 5, Funny

      I'd still go to http://192.168.1.2:81/ for testing

      Dude, throw up a NSFW on links like that. You almost got me fired.

      --
      Literalism isn't a form of humor, it's you being irritating.
    5. Re:Theres one technical point by jc42 · · Score: 5, Informative

      So, what would you regexp for if all you had was a ":"? Normal text quite often does contain colons....

      Back in the early 1980s, before the folks at CERN gave us the first browser, there was another notation that was implemented by an assortment of networking software. It originated, as far as I can tell, with The Newcastle Connection (from the U of Newcastle-upon-Tyne" in England), one of the first fully-distributed unix file systems. What it did conceptually was to define a conceptual network directory one level above your root directory, named "/../". So to reference a file on machine X.Y.Z, you'd use a path like "/../X.Y.Z/...". The actual server on each machine typically wouldn't export its "/" directory, but rather would do what web servers do, and supply only a server-root directory (which could also be mounted by other machines by the unix mount command). So if you tried to access the file /../X.Y.Z/some/dir/foo.txt, you'd get the file that the remote machine had at /server-root/some/dir/foo.txt, so files outside the /server-root/ directory would be invisible to outsiders.

      This is, of course, merely another syntax for what the WWW calls "http://X.Y.Z/some/dir/foo.txt", but without the protocol field. The TPC implementation made the file readable or writable, depending on what the permission module allowed, via the usual open(), read(), write(), etc. library routines. This meant that all of the software on your machine was automatically able to use accessible files on other machines without any special coding. As with the Web, you just needed the machine name and the file's location relative to the server-root directory.

      The advantage of the Web's "http://" notation, of course, is that it allow the explicit use of different protocols. TNC's "/../" notation doesn't do that; the implementation gives direct access via the usual file-system routines, and hides the comm protocol inside the kernel's file-system code just as is done with local file I/O.

      Note that the "/../" notation isn't any more difficult to match than "http://", and it's a string that's equally unlikely to occur anywhere but in a TNC-style file reference. And note that there's no problem with adding a ":port" to the machine name with either notation.

      I've sometimes wondered why various browsers, especially the mozilla suite, haven't quietly implemented TNC notation and invited users to start using it. You don't need permission from any standards body to do this. It would only take a few lines of new code, wherever the software parses URLs. You'd have to add "/\.\./" as an alternative to "(\w*)://" at the start of the match, and make 'HTTP' the default protocol if omitted. While you're at it, add another * after the //, so omitting the second / will also work. But that's probably too user-friendly for any real web developer to bother implementing. ;-)

      (Actually, I've done this in a few projects that I've worked on. It doesn't break anything, and when people see that notation, they usually really like it and the new conceptual model of the Net that it puts into their mind. The Net becomes just a large, slow bus connecting millions of machines and their disks, joining them into one huge virtual computer. Replacing a big, messy communication protocol with a big, tree-structured file system gives a major reduction in complexity and points to a much easier way to do things.)

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
  2. From the year 2022 by suso · · Score: 5, Insightful

    I used my time modem to login to the Internet3 in 2022 and pulled this review from cdweggbuy (yes, that's a full URL because people thought it was ok to remove gTLDs and also got rid of that pesky http:/// for a VeriLogiSoft Computer Interface device. But of course I got infected by a future virus because my Firefox plugin that matches malicious content didn't know how to identify as a URL.

    Ok back to the present.

    The problem with letting people have what they want is that the majority of people don't understand why things are the way they are. Tim made the right choice,
    he just feels that it is wrong now because he's had to hear people complain about it for the past 15-20 years. But when it comes down to it you need some parts of a URL to indicate what something is.

  3. to think .. by Errtu76 · · Score: 5, Funny

    .. we could've had colondot instead of slashdot! I like it!

  4. backslashdot by thhamm · · Score: 5, Insightful

    Nah. Slashes are fine, but Microsoft should be sorry about backslashes!

  5. Slashdot by cffrost · · Score: 5, Funny

    So we could be called "Colondotters?" No thanks.

    --
    Thank you, Edward Snowden.

    "Arguments from authority are worthless." —Carl Sagan
    1. Re:Slashdot by Rosco+P.+Coltrane · · Score: 5, Funny

      Better than colonslashers I suppose...

      --
      "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
  6. Re:pronouncing www is a lot more of a problem by red_kenotic · · Score: 5, Funny

    Every time I set-up a sub-domain for work I always have to tell my boss "http://subdomain." out loud first, in the hope that he'll not prefix "www".

    Sometimes he still just does both, then asks me why it isn't working. This results in a lengthy conversation where we're both saying "http colon slash slash" and "www" to each other. Makes me want to stab him in the face.

  7. DNS by redhog · · Score: 5, Insightful

    What I wonder is why the designers of DNS put the name in reverse? If the name had been in most-significant-first order, one could have tabcompleted it properly (using history and maybe zonetransfers of smaller zones). Also, if http had included a way to get _parsable_ directory listings, the tab-completion could have gone even further...

    http://edu.wu<TAB>
    http://edu.wustl
    http://edu.wustl.wu<TAB>
    http://edu.wustl.wuarchive
    http://edu.wustl.wuarchive/p<TAB>l<TAB>d<TAB>f<TAB>
    http://edu.wustl.wuarchive/pub/linux/distributions/fedora

    --
    --The knowledge that you are an idiot, is what distinguishes you from one.
  8. Funny vs. Insightful by tepples · · Score: 5, Insightful

    I love that a post that begins "I used my time modem..." can be modded as Insightful. God bless you, you crazy mods.

    And crazier Slashdot admins. Because they want to discourage smart-ass comments, "Funny" gives no karma on slashdot.org. An alternating sequence of "Funny" and the allegedly M2-proof "Overrated" quickly drains a poster's karma. "Insightful", on the other hand, invites no such danger.

    ObTopic: Without the slashes, Slashdot would have been called something else.

  9. Re:Now explain triple-slashes by atomicstrawberry · · Score: 5, Informative

    The structure of a URL is:

    protocol://domain/path

    When you use the 'file' protocol, there is no domain, there is only a path. Thus the domain part of the URL is omitted and you get a triple-slash.

  10. Re:Stupid story by bendodge · · Score: 5, Funny

    Store a stupid bookmark. Then you only have to type https://blah.blah.blah/ one time.

    You should be more responsible than to link to https://blah.blah.blah/. It's got an invalid cert!

    --
    The government can't save you.