The Artima Developer Community
Sponsored Link

Java Buzz Forum
/article/111 vs. /article/my-body-wont-let-me

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
/article/111 vs. /article/my-body-wont-let-me Posted: Jul 27, 2006 12:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: /article/111 vs. /article/my-body-wont-let-me
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

DHH has been talking CRUD recently, and although I like some of the ideas, there is one that I disagree with.

DHH seems to prefer using ids in URLs, and uses the logic that "we learnt our lesson from composite and business keys".

URLs are precious. Ideally they should be carefully planned. As soon as you have a popular web property that is highly trafficed and linked too, you realise this.

"Oh man I wish I could just change X"

Of course, you can change URLs, but you end up with growing code to handle the old styles. For SEO purposes you probably want to make sure you 301 perm redirect to make sure Google and co are up to speed. You don't want any juice to be lost via duplicate content.

I really want readable URLs that have meaning. URLs are the gateway to the content. If your users can guess things based on urls then you have won (or you may have lost if your usability is so bad that the user needs to guess urls ;).

If I have visited 100 articles on a site and I want to remember one of them.

I start to type: http://site.com/article/

and at this point I get a dropdown history. If the dropdown is just lots of /article/XXXXX that will not help me at all.

If the dropdown has /article/title-kinda-thing then it does.

If you go with this scheme then you do need to do the thinking about changing URLs. In this case you may want to NOT let anyone change the slug for the article once they have published it, else you need to redirecting old ones all over again.

In general I do like the exercise of seeing how CRUD like you can make your controllers. It can be really tough to have just a few of those methods :)

Read: /article/111 vs. /article/my-body-wont-let-me

Topic: Tiled Previous Topic   Next Topic Topic: Megan Van Petten's Chance

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use