Monday morning sucks
-
No idea if it's worse but: I'm trying to wrap my head around mountains of spaghetti code written by a ex-colleague in order to try and fix the mountain off bugs in it, and all of that after getting only 1 hour of sleep last night (for some reason I just couldn't sleep). (Been trying to get my boss to agree to a full rewrite but no success as of yet)
-
I guess he/she left no comments and no readable code, right? We're in the same boat, more or less :)
I wish there where comments. To give you a idea at how bad this is (you can compare to your own situation then :) ) - A method to calculate all the days between 2 given dates that would run for 3 hours without actually doing something (hint year switch mend the loop went on until an integer overflow happened, not sure how to explain it in English correctly but you probably get the idea) - A class that inherits from another class that inherits from another class that... (about 5 or 6 layers deep). - A helper class that has only 2 or 3 methods in it but is 5000+ lines code. - A function called Convert... that actually updates the database (take a guess at how long it took me to find that bug) - Update = delete + insert (without transactions) (got most of that out of it (I hope)) - A function called Add... that actually doesn't do adds (well not only adds, also updates (see previous) and deletes) And then I'm not even touching the fact that EF was used in totally wrong way resulting in massive memory usage (8gig+ to get only 50 records) (got most of that out of it as well I think) So yeah it's been a long 8months cleaning this mess of a code up and the mess it made in the db's. (and still a long way to go I'm afraid)
-
Yeah, thanks for offering me that opening. :-\ And don't accept any chocolates he might offer you. ;) [I'll get my coat] Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
SoMad wrote:
I'll get my coat
Might as well, you're just making an ass of yourself here, it would seem... ;P
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
The problem with quotes on the internet is that you can never tell if they're genuine
Winston Churchill, 1944
-----
I'd just like a chance to prove that money can't make me happy.
Me, all the time -
Time machine? ;)
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
it would have been better than my machine!! :-D
-
Well, I'm not saying the intern's code from 2006 is necessarily worst than mine: I'm just saying that, supposedly, in 2014 I have more instruments than what he/she had back in 2006 and, also, it might be the case that stuff he/she used at the time is not working anymore, got lost, et cetera... Also, my IDE is going to complain a lot about this 2006 project, before letting me actually edit it. Software simply gets old (and ugly), it's not the coders' faults.
Dycz wrote:
...simply gets old (and ugly)
I think you just described about 3/4 of the programmers/developers that I know. :laugh:
It was broke, so I fixed it.
-
I wish there where comments. To give you a idea at how bad this is (you can compare to your own situation then :) ) - A method to calculate all the days between 2 given dates that would run for 3 hours without actually doing something (hint year switch mend the loop went on until an integer overflow happened, not sure how to explain it in English correctly but you probably get the idea) - A class that inherits from another class that inherits from another class that... (about 5 or 6 layers deep). - A helper class that has only 2 or 3 methods in it but is 5000+ lines code. - A function called Convert... that actually updates the database (take a guess at how long it took me to find that bug) - Update = delete + insert (without transactions) (got most of that out of it (I hope)) - A function called Add... that actually doesn't do adds (well not only adds, also updates (see previous) and deletes) And then I'm not even touching the fact that EF was used in totally wrong way resulting in massive memory usage (8gig+ to get only 50 records) (got most of that out of it as well I think) So yeah it's been a long 8months cleaning this mess of a code up and the mess it made in the db's. (and still a long way to go I'm afraid)
-
...I guess I've never seen an integer overflow really happening... really sounds like 8 months in hell!! Good luck
Dycz wrote:
..I guess I've never seen an integer overflow really happening...
Neither did I until that day.
Dycz wrote:
really sounds like 8 months in hell!!
Yep, and still a few more to go, but at least I got it semi-stable and semi-usable (a year after it's initial release)
Dycz wrote:
Good luck
Thanks, same to you :)
-
Yay!! Happy monday morning to everyone... I've just started my week editing code written by an intern back in 2006... Is there someone out there who's starting his/her week worst than me?
-
Yay!! Happy monday morning to everyone... I've just started my week editing code written by an intern back in 2006... Is there someone out there who's starting his/her week worst than me?
Dycz wrote:
I've just started my week editing rewriting code written by an intern back in 2006...
FTFY :-D /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Dycz wrote:
I've just started my week editing rewriting code written by an intern back in 2006...
FTFY :-D /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Or you find out the hard way, that your dentist moonlights as a proctologist :-\ Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty