It's more than a house. It's an adventure.

Thursday, March 25, 2004

Coder? Programmer? Developer? Architect?

Where do you fit in. I consider myself the 3rd. I don't see each individual page (I'm a web developer) as a singular, standalone piece of work. Rather, they're all parts of a larger system. If I see commonality, I build a function in an include file. I'm killing off my objects when I'm done with them. I'm conscious of my performance and memory usage. I try like hell to not repeat myself.

But my partner on my current project, I'm just surprised. I thought he was more experienced than I, but he's not seeing things as part of a larger system. I've spent the last 4 days cleaning up memory leaks, extraneous code, performance bottlenecks, what have you. I've found issues in my own code, to be sure, but the major issues were in his. And I'm still hunting them down.

Is it really that difficult to use Option Explicit from the get-go? Use With blocks? Create sections of HTML with response.write, instead of interspersing ASP inside the HTML? I'm fine with doing a copy & paste job to get started with a page, but if you don't change anything in what you pasted, and have identical code in 2 pages, why not put it in an include both pages use? Why have an If statement which has 99% identical code in both branches, the only difference being the class applied to one HTML element? I just don't get it.

So we were having memory issues on our servers with this app. Lacking a profiler, all I have is Task Manager. I've managed to cut the vast majority of memory issues out. Memory usage is way down. Performance is up (how much, I'm not yet sure). In 4 days I've cut about 1000 lines of code (out of a 22K LOC app) and optimized numerous pages. I'm not done yet, but I'm going after the big hitters for now.


Post a Comment

Links to this post:

Create a Link

<< Home