[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Web Design Discussion
User Name
Password

Old 01-18-2004, 10:32 AM   · #1
Tripecac
New Member
 
Tripecac's Avatar
 
Trader Rating: (0)
Join Date: Jan 2004
Posts: 14
NP$: 26.00 (Donate)
Tripecac is an unknown quantity at this point
Directory Names for Movies, Albums, etc.

What are some best practices for naming directories after titles of books, albums, movies, etc.?

For instance, let's say you have a site that talks about Spielberg movies, and you want a directory for each movie. What sort of names make the most sense, in the long run?

Let's use "The Color Purple" as an example:

1) /movies/1985/The Color Purple/
2) /movies/1985/TheColorPurple/
3) /movies/1985/thecolorpurple/
4) /movies/1985/the_color_purple/
5) /movies/1985/color_purple/
6) /movies/1985/colorpurple/
7) /movies/1985/2/ (if it was his second movie of 1985)
8) /movies/1985/07/04/ (it it was released on July 4th)
9) /movies/1985/0123/ (some arbitrary movie ID)
10) /movies/0123/ (same ID, without the year)
11) /movies/1985_02/ (another ID, this time using a year plus a release number)
12) /movies/1985b/ (same idea, but using "b" instead of "2")
13) /movies/1985_TheColorPurple/
14) /movies/1985b_TheColorPurple/
15) /1985/movies/TheColorPurple/
16) /1985/07/04/movie/
17) /1985/07/04/TheColorPurple/
18) /movies/TheColorPurple
19) /movies/The Color Purple (1985)/
20) /TheColorPurple/
21) /the-color-purple/

And so on... Decisions need to be made about:

a) capitalization
b) word separators
c) completeness of title
d) dates
e) ids
f) categories (movies vs tv shows vs books, etc.)

Ideas?

Travis


Please register or log-in into NamePros to hide ads
Tripecac is offline   Reply With Quote
Old 01-18-2004, 02:33 PM   · #2
adam_uk
Senior Member
 
Trader Rating: (17)
Join Date: May 2003
Posts: 2,211
NP$: 6170.25 (Donate)
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
Breast Cancer
hmmmm depends how the data is going to be shown

if there are going to be alot on a page use a unique id for each
or if its just a page with a link somthing small use number 3

keep everything lowercase
wouldnt recomend using word seperators or spaces
the completeness would help because you wont have to remember what the move is. it will tell you

if your going to have alot of movies i would sort them buy date yes, probably by year would be yes

give each film a unique id, will help for comments, browsing etc etc
adam_uk is offline   Reply With Quote
Old 01-18-2004, 09:17 PM   · #3
InteractAsia
Connecting the World
 
InteractAsia's Avatar
 
Location: Merlion City
Trader Rating: (14)
Join Date: Nov 2003
Posts: 1,220
NP$: 75.00 (Donate)
InteractAsia has a spectacular aura aboutInteractAsia has a spectacular aura about
yep a unique id is good and it keeps everything in good order and not look messy
__________________
ermm..do i need to put my sig here?
Free Short URL | Free Reseller Hosting | Free cPanel Blog Hosting
Hottest New Posters & Prints
InteractAsia is offline   Reply With Quote
Old 01-19-2004, 03:39 PM   · #4
Tripecac
New Member
 
Tripecac's Avatar
 
Trader Rating: (0)
Join Date: Jan 2004
Posts: 14
NP$: 26.00 (Donate)
Tripecac is an unknown quantity at this point
Thanks for the replies!

Two more questions...


QUESTION #1
What happens if you have albums and songs?

You now have to choose whether to have a song be "within" an album, *or* have a song be a sibling of an album. Since a song can exist on multiple albums (compilations, live CDs, etc.), you don't have a clean tree (1-to-many) relationship but instead a web (many-to-many). To me, this is an argument for keeping songs at the same level as albums, but I'd like to know what you think:

Here are some options: (using "Beat It" on Michael Jackson's "Thriller")

1) /albums/thriller/beatit/
2) /albums/thriller/songs/beatit/
3) /songs/beatit/
4) /songs/b/beatit/ (a folder for each letter)

#3 will result in a TON of directories, but if you start adding dates or album names to the directory structure (e.g., /songs/thriller/beatit/ or /songs/1985/beatit/, you are basically forcing a 1-to-many relationship, which is imperfect in this case).


QUESTION #2
What about versions?

Let's say MJ has 10 different versions of "Beat It", some live, some studio, some recorded on different dates, some on the same date... How would you organize each of these versions, in terms of directories?

Let's say there's a version (the third) recorded live on Christmas 1987:

1) /songs/beatit/ (all versions discussed on one page)
2) /songs/beatit/version3.html (exposes file extension)
3) /songs/beatit/version3/ (subdir for each version)
4) /songs/beatit_version3/ (each version treated as a standalone song)
5) /songs/beatit_03/ (shorter version id)
6) /songs/beatit/03/
7) /songs/beatit/live19871225/ (verbose version name)

Which of these options is most likely to be usable and still around 20 years from now? Which makes it easier to add versions w/o shifting around page contents?

Thanks!

Travis

Last edited by Tripecac : 01-19-2004 at 03:44 PM.
Tripecac is offline   Reply With Quote
Old 02-04-2004, 04:59 PM   · #5
Tripecac
New Member
 
Tripecac's Avatar
 
Trader Rating: (0)
Join Date: Jan 2004
Posts: 14
NP$: 26.00 (Donate)
Tripecac is an unknown quantity at this point
There should be a consistent algorithm that turns a title into a directory name.

1) It should be "mindless" to apply; we should never have to make judgement calls. Given an input (a title), there should be only a single viable output (directory name). It should be automatable.

2) It should be flexible enough to handle "realistic" input in the current problem domain, but not much more. Flexibility is expensive. We shouldn't start thinking about movies and books if all we need to handle is music.

3) The algorithm should not influence the inputs. If we decide to map "Beat It" to "beatit", that might discourageMichael Jackson from releasing a song called "Be a Tit". Not cool. (either the title or the notion of the algorithm influencing the input) "beat_it" or "beat-it" would be better. "Beat It" would be perfect, except for the space and the capitals... *as long as* Michael doesn't release two songs by the same name. What about versions???

Travis
Tripecac is offline   Reply With Quote
Old 02-05-2004, 10:37 AM   · #6
Tripecac
New Member
 
Tripecac's Avatar
 
Trader Rating: (0)
Join Date: Jan 2004
Posts: 14
NP$: 26.00 (Donate)
Tripecac is an unknown quantity at this point
Wow, this board is quiet! Either that, or I asked a hard (or boring) question!

Is there a more appropriate forum for this kind of topic?

Travis
Tripecac is offline   Reply With Quote
Old 02-06-2004, 01:55 PM   · #7
Anthony
Permanent Resident
 
Anthony's Avatar
 
Name: Anthony
Location: NYC
Trader Rating: (142)
Join Date: Dec 2003
Posts: 9,202
NP$: 26.71 (Donate)
Anthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant future
Member of the Month
October 2004
Just keep the directory structure logical and simple. That should work best!
Anthony is offline   Reply With Quote
Old 02-06-2004, 03:08 PM   · #8
Tripecac
New Member
 
Tripecac's Avatar
 
Trader Rating: (0)
Join Date: Jan 2004
Posts: 14
NP$: 26.00 (Donate)
Tripecac is an unknown quantity at this point
Thanks for the reply! Unfortunately, "logical" and "simple" are exactly what I'm trying to define!
Tripecac is offline   Reply With Quote
Old 02-06-2004, 03:23 PM   · #9
Anthony
Permanent Resident
 
Anthony's Avatar
 
Name: Anthony
Location: NYC
Trader Rating: (142)
Join Date: Dec 2003
Posts: 9,202
NP$: 26.71 (Donate)
Anthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant future
Member of the Month
October 2004
Well, I was sort of pointing towards not using underscores or dashes...
Anthony is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Traffic Down Under EscrowDNS Proof is in the Parking
Advertise your business at NamePros
All times are GMT -7. The time now is 08:44 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0