Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 10, 2016, 06:27:11 PM
  • Proudly celebrating 10 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 856 times)

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,398
    • View Profile
    • Donate to Member
The WET Cart - Coders beware, you might cry
« on: December 08, 2011, 04:28:21 PM »
Quote
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
  • **
  • Posts: 8,408
  • "In my dreams, I always do it right."
    • View Profile
    • Donate to Member
Re: The WET Cart - Coders beware, you might cry
« Reply #1 on: December 08, 2011, 04:57:14 PM »
I cried laughing! ;D  Especially at the comments... and the google comments about the DRY Principle... made my day!