Forum Moderators: not2easy

Message Too Old, No Replies

Ooh to be bitten by a spider

<div class="spiderbait">

         

Propools

2:56 pm on Jul 24, 2007 (gmt 0)

10+ Year Member



We hired a programmer to do the backend for the over-haul of our site. He is using
<div class="spiderbait"> on some of the pages. I just have the "sinking" feeling that one of the SE's will hose us. It's the word that gets me, or do you think this might be a "good" thing?

jatar_k

2:58 pm on Jul 24, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



personally, I'd give him a smack and make him change the name of the "spiderbait" class to something that looks less like a target on your forehead

digitalghost

2:59 pm on Jul 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a joke by the guy designing your site. Won't help, doubtful it would hurt either.

Try <div class="uniquecontent"> ; )

Demaestro

3:02 pm on Jul 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't think they take into account the names of CSS classes.

I could be wrong but it really should make no difference.

If it was something offensive...like sheep$%^*&# then I wouldn't want it there in case anyone was peeking through the source.

We had an custom web app at my old job and someone made a variable name called goatfu$%^&

It went into production and one day the client called and said he got an error... something about goatfu$%^& is not defined..... there were a few meetings after that. I believe the client was pissed.

Propools

3:04 pm on Jul 24, 2007 (gmt 0)

10+ Year Member



Demaestro
That is so funny. I wonder if (just fooling around) I built some test pages for that logic? LOL

jatar_k

3:05 pm on Jul 24, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have had similar experiences Demaestro, too many examples of smart alecs to list

my opinion, it isn't funny, what about when you get a manual review. Not sure how funny it would be. If it needs to be named spiderbait and that is it's sole purpose then I am guessing there may be more fundamental issues.

Naming it this way is just foolish and a modicum of professionalism should be smacked into him, personal opinion, actual results may vary ;)

Demaestro

3:12 pm on Jul 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Defiantly professionalism needs to be in play..

To me the Class name or variable name should do some form of self commentation.

I love names like....

class="blue_bar"

class="ridge_border"

class="thin_border"

You don't even have to look at the rest of the code to loosely know what each of these classes will give you.

This type of naming convention will make things easier for others who come along to make changes or add things and will make it easier for you when you come back to a site that hasn't been touched for a while. you won't have to go through things like ....
class="bg1_thry5".... to figure out what they are for.

It might take longer to type out a long name but it is worth it when you come back and revisit it after some time.

Propools

3:13 pm on Jul 24, 2007 (gmt 0)

10+ Year Member



jatar_k,
We got slammed in the mid 90's for doing what some conisdered to be "black hat". So, we don't do that anymore. I'm thankful for your input and have passed it on to my contractor. Thanks. :)

justgowithit

4:45 pm on Jul 24, 2007 (gmt 0)

10+ Year Member



I love names like....

class="blue_bar"

class="ridge_border"

class="thin_border"

At the risk of spinning off topic - I used to use class names like this until one of my older sites became riddled with class names that were worse than ambiguous, they were downright misleading.

Through various redesigns and restructures class="left_div" was actually in the lower right, class="blue_back" actually produced a gradient, class="float" was actually an absolute, etc., etc.

I try to stay a little less function-specific now-a-days so that I don't have to run through pages and change class names so that they make sense. Although, I never really considered goatfu%# or spiderfood.... ;)

Essex_boy

8:36 pm on Jul 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



ON a less than funny note, I came across a CSS file with rascist words words.

I was not amused, lucky for the author he wasnt around.

jtara

3:45 pm on Jul 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



While this certainly is a poor choice for the class name for any number of reasons, consider the bigger problem: IS the content of that div "spider bait"?

If so, renaming the division is the least of your worries. Your biggest risk is improving search-engine algorithms intended to ferret-out systematic spider-baiting.

You've got TWO problems:

1. Your programmer isn't on your team.

2. You've apparently adopted the dubious policy of putting search engines ahead of users.

I'm assuming there's a reason behind his use of the term - it's not just something arbitrary that popped-into his head. He disagrees with your direction.

Monkey

10:41 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



Hmm sounds like bored programmer....dislikes "suits" and wants to go against convention.

Probably quite intelligent and maybe has made up a story of "names" to keep himself amused (I assume "him" 'cause girly programmers tend to be more professional and corporate!)