topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 6:25 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: The WET Cart - Coders beware, you might cry  (Read 2124 times)

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
The WET Cart - Coders beware, you might cry
« on: December 08, 2011, 04:28 PM »
The WET Cart

"I help out design firms with 'backend' coding for websites and web applications," writes Josiah, "usually this involves anything that's not HTML/CSS or copy/paste JS."

"Every now and then, I see something... a little more involved. Recently, I was working on a client's site that had an embedded 'store' where users can purchase promotional items. Aside from the tables used for layout everywhere, there was about 750 lines of javascript to calculate the cart. I'm pretty sure the original coder didn't quite get DRY principles... but he was well versed in WET (Write Everything Twice, or in this case, 76 times) principles.

Source code at "Source"

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: The WET Cart - Coders beware, you might cry
« Reply #1 on: December 08, 2011, 04:57 PM »
I cried laughing! ;D  Especially at the comments... and the google comments about the DRY Principle... made my day!