DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

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

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
The WET Cart - Coders beware, you might cry
« on: December 08, 2011, 10:28 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"
Strength in Knowledge

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: The WET Cart - Coders beware, you might cry
« Reply #1 on: December 08, 2011, 10:57 PM »
I cried laughing! ;D  Especially at the comments... and the google comments about the DRY Principle... made my day!

Original address: https://www.donationcoder.com/forum/index.php?topic=29201.0