I learned two things today

The first thing I learned is that dry erase markers don’t work under the shower.

Sherman DD (Duplex Drive) amphibious tank with...

Image via Wikipedia

It gets too steamy and awesome … I’m going to have to find a better solution for efficient shower brainstorming. Some sort of water resistant marker that works on tiles but can be erased without too big a hassle.

tl;dr –> no matter what it seems like, the first price a client suggests is never fair.

Another thing I learned is never again to take a job making a “simple extension to our existing website, it’s pretty simple and easy”.

At least, I will never again take such a job without raising their suggested price at least 50%.

Admittedly, that’s my bad, they gave me an offer and I simply took it without thinking too much about it. Seemed like an easy enough job, the price seemed fair, something that would easily accomodate my normal hourly rate in the time I thought was needed to complete the job. And I like money, it lets me buy food.

I still think I scheduled enough time.

But I forgot to account for the annoyance of working on a legacy system I don’t have the first clue about. What’s worse, the website seems to have originally been developed in the time when everyone and their grandmother was making a custom CMS.

Yeah, you can’t even begin to imagine.

Let me just share a couple cookies from the beautiful source:

if ($admin_super == 1) $superuser = 1;
 
if (($superuser == 1)) {	...
// added by /../, 16/01/2006, modified 20/12/2007

Yes. That bad.

To make it more fun, the admin interface is made so every form can only handle a single database table.

Naturally my extension requires a data model encompassing many interconnected tables.

But ok, I get it, five years ago my code wasn’t exactly perfect either. It still isn’t. Maybe I could have done a little better, maybe I would have done worse.

The thing that really gets me though is having to chloroform my coding standards, drag them to a dark alleyway and rape them, listening to their muffled sobs. I cry a little every time! But a choice had to be made, either rewrite this client’s whole website, or rape my standards and complete the project within budget, then learn a good lesson and never do this again for cheap.

Oh and I’ve found at least two possible/obvious security holes so far.

Not to mention that user passwords are stored in plaintext in the database and the admin’s password is stored in a config file in plaintext … oh yeah. Gotta love that!

Good lesson. Taking it to heart … no matter what it seems like, the first price a client gives is never fair.

PS: the main developer guy specifically warned me that this isn’t opensource and I should treat the source with the respect and dignity it deserves

Enhanced by Zemanta

Related Posts

---
Need a freelance developer? Email me!

You should follow me on twitter
 Subscribe to RSS

9 responses so far

  • Viral Solani

    good Article……………

  • http://twitter.com/zidarsk8 Miha Zidar

    I have seen the code first hand, and I must say I feel really sorry for you.

  • http://twitter.com/zidarsk8 Miha Zidar

    I have seen the code first hand, and I must say I feel really sorry for you.

  • Anonymous

    underwater slate

  • Smotko

    Was this the project you tried to give to me for half of what they are paying you? I think I tried to warn you :)

    And if I recall correctly, I managed to get into their admin interface by copy pasting sql injection code from wikipedia.

  • Andy Cassell

    I wouldn’t want to be responsible for ruining you shower, but wax markers/pencils might work depending on your tile.

  • http://twitter.com/zidarsk8 Miha Zidar

    Sadly there is an even easier way of getting in, than copy-pasting something from wikipedia. 

  • http://swizec.com Swizec

    I wasn’t trying to give it to you, just wanted to get some help :P

  • http://swizec.com Swizec

    Thanks for the suggestion. I’ll give it a shot.

« Going from Slovenia to Palo Alto... Crayons … best productivity... »