[personal profile] sorrowmonkey
Okay, we got yet another change request today for this system which we've been working on since last November, and is scheduled to roll out to production on Friday of next week. The change is relatively minor, having to do with the labels used for the dates in the data warehouse. This seems like a reasonable straight-forward change.

The devil, of course, is in the details.

This horrible POS code is a spaghetti-mess of cut-and-paste repeated sections, which is only slightly different for each iteration. Basically, it is heavily optimized for time, and not at all optimized for space. Data warehouses tend towards this, since small improvements on a per-row basis yield massive overall performance.

However, the nifty little bit here is that we have huge other repeated sections of code that TRIGGER on these labels. I have to make the same 17 changes in 9 different locations. Also, I found an error in all 9 locations which I will need to fix later.

In short, I hate this code, the data, the project, the client, and the idiot programmer who wrote this.


Unfortunately, it is code that I wrote and felt pretty good about four months ago. Damn.

Date: 2006-02-09 04:47 am (UTC)
From: [identity profile] peregrine58.livejournal.com
A friend of mine throws out this one (of many ) comment to me (my ex boss, who is now my current boss again.) What's the best code you ever wrote? Code you've written twice. You learn and improve, I wouldn't sweat it.

Date: 2006-02-09 12:24 pm (UTC)
From: [identity profile] darthluna.livejournal.com
Poor bunny. i hate when you have to go back to your own stuff and discover what would have been better. sigh
You could, start adding weird comments to each repeated section to mark them as unique.
Then you'd have the '//bite me' section; the '//seagullls go dancing' section; etc.
And someday, some dev down the road will loose thier mind trying to guess what the bloody hell you were doing.

Profile

sorrowmonkey

March 2017

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 09:37 am
Powered by Dreamwidth Studios