KBD

Keith Devens .com

Tuesday, December 2, 2008 Flag waving
Well, "actual" compliance means bug-free. That's hard to assure in a system of the size of a CL.... – Kent M. Pitman
← Brad Cox's Objective-C BookCox & Forkum: Bad Moon Rising →

Daily link icon Friday, November 4, 2005

Should I pollute my root namespace?

I've decided that my wiki has long since been dead. Editing has been disabled for a while, and I don't even remember whether that was an accident or not (i.e. whether I was working on the software and left it broken (and whether that was intentional or not) or whether I just decided to disable it). Public editing just did more harm than good (extraneous pages were created, comments would be left I didn't need, and discussions would form (and a wiki isn't a good place to conduct a discussion)).

But, I still want a place to put random pages. So, should I:

  1. Put all random pages at my root (i.e. right under keithdevens.com/)?
  2. Clean up the /wiki and put all random pages there?
  3. Create a new namespace like /pages and put random pages there?

I'm leaning towards A because:

  1. I already have certain content pages at my root, such as the pages in my tabbed navigation at the top
  2. Even though they're at the root, random pages can still have structured (i.e. nested) URLs
  3. Why have the extra nesting of a /pages or a /wiki? It's like "of course they're 'pages'. They're on your web site, after all". Or alternatively, "Huh? /wiki, but uneditable pages?"

Chris Langreiter puts all his stuff under "space". Ian Bicking puts all his stuff at the root, but that's the root of blog.ianbicking.org so that doesn't count. Main reasons I'm reluctant to choose A are:

  1. It pollutes my root namespace and seems "messy" to me
  2. Lots of little pages at the root make trivial little pages as important, as far as the URL is concerned, as important pages like /about or /software
  3. I feel like it's hard to change to something else later if I do it this way

Opinions very welcome.

← Brad Cox's Objective-C BookCox & Forkum: Bad Moon Rising →

Comments XML gif

Simon Willison (http://simon.incutio.com/) wrote:

If you want to avoid polluting your namespace, a good bet is to use subdirectories for years. In my experience a year's worth of random stuff fits nicely in a single directory.

∴ Simon Willison | 4-Nov-2005 8:05am est | http://simon.incutio.com/ | #8605

Keith (http://keithdevens.com/) wrote:

Thanks for the suggestion. That's a good idea. It's what the W3C does for many things. Unfortunately it doesn't work for pages I want to keep current. That is, I wouldn't want to have a URL like '/2001/about' for my about page (for example), since that implies the page is out of date.

Keith | 4-Nov-2005 12:39pm est | http://keithdevens.com/ | #8611

l.m.orchard (http://decafbad.com) wrote:

I'd say, for things as site-general as an 'about' page, go ahead and put it at the root level.

For anything else, such as one-off experiments and random things, I use a /year/month/ scheme. And then, whenever I update those things, I tend to just upload the new version at a new date-based directory for some crude versioning.

∴ l.m.orchard | 4-Nov-2005 12:46pm est | http://decafbad.com | #8612

Keith (http://keithdevens.com/) wrote:

For random experiments or temporary things, that's a good idea. But the reason I mentioned my wiki in the beginning of the post is because a lot of the pages there are the type of pages I'm considering. For examples, my wiki pages on jEdit, ProgrammerFonts, Calvinism, Presuppositionalism, Regular expressions and even Acno's Energizer.

Also, I mentioned Chris Langreiter's site because I admire it. Earl's site too. Both use Vanilla, Chris' software. Maybe I should call my namespace 'space' (but that's always irked me).

Keith | 4-Nov-2005 1:05pm est | http://keithdevens.com/ | #8613

DJ Hannibal wrote:

What about the last thing that we talked about?

∴ DJ Hannibal | 4-Nov-2005 8:37pm est | #8614

Keith (http://keithdevens.com/) wrote:

The last thing we talked about was doing it like Wordpress does it, but as I pointed out before you seem to have misunderstood my question. My question wasn't about implementation, it was about site structure (i.e. what should my URLs be?).

Keith | 4-Nov-2005 9:00pm est | http://keithdevens.com/ | #8615

DJ Hannibal wrote:

Oh. I see. I have no idea of how the site is really implemented, but from you have told me it is all driven by a database.

If it were me, I would choose to put nothing at the top level. I would choose to do it like Google Directory and build a taxonomy.

Top/Computers/Python
Top/Computers/CSharp

etc.

∴ DJ Hannibal | 5-Nov-2005 12:05am est | #8616

Keith Gaughan (http://talideon.com/) wrote:

I'd just create a subdirectory called 'stuff' or 'sundry' and throw all the randomness in there. A little bit more organisation within that for things like experiments might be useful.

∴ Keith Gaughan | 5-Nov-2005 2:58pm est | http://talideon.com/ | #8619

Keith (http://keithdevens.com/) wrote:

Build a taxonomy! Nooooo! Smiley

In any case, don't you know, taxonomies are out, tags are in Smiley winking

I'd just create a subdirectory called 'stuff' or 'sundry' and throw all the randomness in there.

That's probably the best idea. I've actually already ripped out my wiki software and replaced it with the software that'll serve my "pages". If I ever want to promote a page to the root or vice versa I've already got a rename feature that'll serve a 301 (I've also got delete that'll serve a 410). Since all of my individual pages that exist are already under /wiki, I'm just going to leave it as my home for random pages. It's basically a private wiki then, which I'm ok with.

Also, my pages software will let me create URLs based on the year or year/month, so I still may use that for some things. Thanks for the input, all.

Keith | 6-Nov-2005 12:31am est | http://keithdevens.com/ | #8620

DJ Hannibal wrote:

In any case, don't you know, taxonomies are out, tags are in.

That is like the "labels vs. folders" debate has cropped up in many discussions on "Outlook vs. Gmail". I believe that programmers like labels, but many end users still like folders.

Silly end users. When will they ever learn?

∴ DJ Hannibal | 6-Nov-2005 10:45am est | #8621

Keith (http://keithdevens.com/) wrote:

Well, that was said tongue-in-cheek, but in any case I'm not developing end-user software. However, on the web, tags do seem to win (Flickr and Gmail are certainly well-received end-user products).

Keith | 6-Nov-2005 11:41am est | http://keithdevens.com/ | #8622

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 6 posts

Recent comments XML

new⇒Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

WhatIsMyIP.com

http://www.thesysteminfo.com is​another good alternate to​whatismp.com... I...

Kripz: Nov 26, 8:51pm

Girls, please don't get breast implants

Actually I think it's sweet when a​man loves a woman whether she's big​or n...

218.186.12.228: Nov 26, 9:40am

Generated in about 0.239s.

(Used 8 db queries)

mobile phone