Lisa Sabin-Wilson. Designer. Author. Espresso and WordPress addict

Stupid Coding Bloopers

on: Jun/6/07 and its been viewed 3,834 times

Sometimes when I’m coding and working on designs, my brain goes on auto-pilot and I make some of the weirdest errors in my code, without even knowing it - causing me to load the design I’m working on and then say…”WTF??” when it doesn’t work the way I think it should. I go back and look at my code and I see some pretty silly stuff that tells me I need to pay more attention to what I’m doing. Like what?

Well…

In a CSS container where I want to define a height and width of an element… the normal thing would be:
height: XX; width: XX

My blooper? weight: XX

Yes, I combine the two words and wrap it into one definition…and I do it all the damn time! Not because it makes sense. Not because that’s the way I think it should be - - it just… happens. Like my brain just wants to shortcut it.

Another? My header tags. You know - h1, h2, h3, h4…for some reason, this is my biggest blooper ever. I think my poor brain gets confused because my fingers write the tags incrementally. Huh? For example (I had to remove the regular brackets around the header tags because WordPress kept correcting my code blooper!):

h1- This is an H1 -h2

See how I started with an h1 and I closed that with an h2? That’s because 2 comes after 1, silly. Makes sense, doesn’t it?
I *think* it’s because I start in my CSS by writing:

h1, h2, h3, h4, h5, h6 {margin:0; padding:0;}

So when I’m writing the actual code in the template when I type h1 — my brain automatically wants to type h2 next…or whatever. It just happens.

Personally, I think I’m writing new world CSS over here… CSS shorthand? I’ll be discovered as genius someday. Maybe it’s code dyslexia? Got any coding bloopers, or am I just weird that way?

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • blogmarks
  • E-mail this story to a friend!
  • Fark
  • Furl
  • LinkedIn
  • Ma.gnolia
  • MySpace
  • Ping.fm
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon
  • TwitThis
  • Yahoo! Buzz

Posted on: June 6, 2007

Posted in: CSS, Design, Geeky Things

Tags: , , ,

/*--- 5 Responses to “Stupid Coding Bloopers” ---*/

  1. Danalyn
    3:23 pm on June 6th, 2007

    lol. I feel your pain, sister!

    One of the ones I catch myself doing a LOT (probably holdover from doing inline css) is instead of writing class=”blah”, I end up using style=”blah”…then spend 2 hours trying to figure out why my classes aren’t showing. :((

  2. Lisa
    3:38 pm on June 6th, 2007

    Ha - that’s a good blooper. I can totally see myself doing that! =d>

  3. Jay
    4:26 pm on June 6th, 2007

    I do the same thing with the style/class mix up.

    I also tend to forget what I named the CSS class. For instance, I’ll name it “comments” and then reference “comment” (no s). That’s usually a solid 20 minutes of my life I can’t get back :)

  4. Joni
    8:03 pm on June 6th, 2007

    I just had a coding blooper this morning! I made an image and saved it as “header_title.jpg” then I called it from the CSS as “header-title.jpg”. I spent some time refreshing the page, uploading the image, deleting the old one and re-uploading the image, but it just wouldn’t budge! I took a break, drank a glass of water, and when I came to check on the codes again I realized I typed a hyphen in the CSS instead of an underscore. Duh! The stupid hyphen got me thinking there was something wrong with my FTP software. :-w

    Should have just done a copy-paste. lols

  5. Lisa
    3:29 am on June 7th, 2007

    Jay - if I had a dime for everytime I’ve done the ‘comments versus comment’ thing, I’d be a rich, rich woman! haha :)

Leave a Reply

  • Li-sa Sa-bin Wil-son: [lee-suh sey-bin will-sun] - pronoun; 1. A wife, mother & friend; 2. Blog Designer & WebHost; 3. Author of WordPress For Dummies; 4. Scuba diver; 5. Downhill Skier; 6. Am. Photographer; 7. Espresso sipper;
    contact me »
    WordPress For Dummies, author Lisa Sabin-Wilson, Amazon.ComWordPress For Dummies, 2nd Ed. is due to be released early in 2009. It covers WordPress.com and WordPress.Org through version 2.7. I will update my site when I have a firm date you can count on...read more »

  •  

    • I was interviewed by Grant Friendman of Colorburned - he has it up on his site this morning. I talk design, tools, WordPress, blogs and life experiences that lead me to the career I'm enjoying now. Thanks, Grant!

      - #
    • Thanks to WPZoom for including me in their talented list of WordPress "Rockstars".

      - #
    • I'm scheduled to appear on the WordPress Weekly show on Fri. 11/28 - starting at 8pm and goes until... well, until we're done. We'll be talking WordPress For Dummies and WordPress 2.7. Check out Jeff's WordPress Weekly information page to find out how you can listen in..and even call-in and participate!

      - #
    • I just donated to the prize pool for the WordPress MU Plugin Competition. REALLY looking forward to the great MU plugins they come up with! What a great idea! Are you a plugin developer? Well get over there and enter...and win! :)

      - #
    • The panel picker for SXSW 09 is now live and you're able to vote for panels/presentations you'd like to see at SXSW in Austin in March 09. My Panel on WordPress Magazine Theming is up, if you're care to cast your vote for it - I'd surely appreciate it! It's the ONLY prospective panel at SWSX about WordPress - - let's get WP represented!! Go here to cast your vote and thanks!

      - #
    • Lisa: Neville, great to hear from you. I surely appreciated our...
    • Neville Hobson: Great news, Lisa. Although I’ve been blogging...
    • Lisa: Dave, thanks for dropping by - happy to hear that the book...
    • Dave Schlottman: Thanks for the heads up on the release date for...
    • Lisa: Good to hear, Gary - - I still have the picture you sent me...
    • Gary LaPointe: Very exciting! As I’ve been doing more and...
    • release date | Lisa Sabin-Wilson: time, when the 1st Edition was...
    • Lisa: I love 2.7, Marc - but I suppose it’s all a matter of...
    • Lisa: Happy to help, K. :) My husband often talks about moving to...
    • KTown: Lisa, I’m getting ready to move back to Wisconsin (my...
    • Marc McDermott: I have to say that I was not so much impressed with...
    • Lauren: Thank you so much for the tip. I got the same exact...
    • Danalyn: Yeah, google: How to use WordPress
    • newbie: :(( I am a newbie to blogging and i have no idea how to use...
    • Lisa: I’m feeling the same way Lisa, 2008 was a year that was...