by dalke · 12y ago · 0 comments
To get a sense of its history, https://books.google.com/ngrams/graph?content=code+smell&yea... put a start date of around 1998. It was definitely in Fowler (1999) "Refactoring: Improving the Design of Existing Code".
See also http://c2.com/cgi/wiki?CodeSmell , which claims "A code smell is a hint that something has gone wrong somewhere in your code. ... KentBeck ... seems to have coined the phrase in the "OnceAndOnlyOnce" page" and points to "Refactoring" as earliest known use.
The phrase you refer to - "this code smells" - and the implication that it reflects hygiene, has different meaning and intent. While related, they are not the same thing as a "code "smell." Compare "the wine smells" vs. "wine smell" to get a sense of how there can be a difference.
The modern use of the term "hipster" dates from 1999-2003, claims Wikipedia at http://en.wikipedia.org/wiki/Hipster_%28contemporary_subcult... , but it's easy to find things like the 1998 alt-comic "Urban Hipster #1" at http://www.indyworld.com/uh/uh01.html which predate 1999 and use hipster in its modern meaning.
In any case, the term 'hipster' is derived from a term in widespread use from the 40s-60s, which then fell into disfavor. To get a rough idea of the change in use pattern, see https://books.google.com/ngrams/graph?content=hipster&year_s... .
Obviously the 1940s "hipster" term predates "code smell" as applied to computer code, because there was no computer code in the 1940s.
So no, "code smell" does not predate the term "hipster."
I agree with you that "code smell" did not originate from hipster use.
But I don't think EpicEng implied that either. The parent comment is "it tends to be used by hipsters with little to no experience building complex systems." I don't see in it an implication that hipsters came up with the term.
So if that is fit2rule's point, then it's rather like saying "fixed-wheel bicycles existed before hipsters" - true, but a tangential remark which ended up derailing the conversation.
I know of no use of the phrase "code smell" before 1999, with its modern use. Could you speak more about your recollections from the 1980s? Was it used the same? Do you have a citation or reference?
Who knew I would get such an education on the term "code smell"? :)