Connecting Tech Pros Worldwide Forums | Help | Site Map

Why is it called a 'slug'?

pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#1: Aug 14 '07
Ok, I'm intrigued. And a bit confused.

Why is it called a 'slug'?

For those of you that don't know what I'm talking about, or are wondering why I'm asking about living boogers on a technical coding site, a slug is essentially a human-readable version of a primary key.

In blogging and other CMS, the slug usually makes up the 'permalink' for the document. For an example, see this document.

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Sep 18 '07

re: Why is it called a 'slug'?


Well it's a stretch but maybe from the following:
http://en.wikipedia.org/wiki/Slug_%28typesetting%29
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#3: Sep 18 '07

re: Why is it called a 'slug'?


Heya, Plater.

Interesting. I checked out the article you posted, and I noticed a similar article about 'slug' as a news industry term.

It turns out that a 'slug' is also the term for an article headline in a newspaper, named after the physical 'slug' (or piece of lead) that is used in typesetting machines to space out paragraphs.

According to ABC News Radio, the word 'slug' possibly derives from a Scandinavian word meaning 'to move slowly' or (by extension) 'to be lazy'.

Slugs are definitely slower for a server to process than article IDs, that's for sure!

Thanks for the link; I think that about cleared it up for me.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#4: Sep 18 '07

re: Why is it called a 'slug'?


Quote:

Originally Posted by pbmods

According to ABC News Radio, the word 'slug' possibly derives from a Scandinavian word meaning 'to move slowly' or (by extension) 'to be lazy'.

The Dutch word for 'slug' (as in snail) is 'slak' which means exactly the same as
what you just described, which proves once again that Dutch happens to be the
mother of all languages.

kind regards,

Jos ;-)
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,580
#5: Sep 24 '07

re: Why is it called a 'slug'?


When I was much younger, I used to repair traffic signals. A bunch of cars moving down the road was called a 'slug', too.
jamesd0142's Avatar
Needs Regular Fix
 
Join Date: Sep 2007
Location: Wales
Posts: 467
#6: Oct 10 '07

re: Why is it called a 'slug'?


I disagree guys!

It was and always will be a slimey thing, that makes one hell of a mess in the garden.
Reply


Similar Software Development bytes