Slacking at home
I am fixing up a few problems with iblog.deathbyescalator.com and I found my self repeating a chain of gsub statements. I did it for 8 statements then tested to make sure it fixed the issue I was seeing. I thought to my self how ugly.. but it only for a small app no one will every use. I would never let that kind of thing to fly at work, but since I am at home I feel like I can slack? Does the location that I am coding at matter for the quality of my code? Is it the fact that I am being paid at work and at home I am not matter? Maybe its the amount of people that will see my code that changes how well I code? Since I am the only one who will ever see the iblog code I feel less compelled to make it DRY or clean.
I dont know what the answer is but I didnt keep the chains of gsubs. I did the right thing and make it a method.