Horror code story: I once worked in a project that had NO source control and one day we had to merge A LOT of changes made by multiple people one by one MANUALLY. We stayed until midnight. And that's why I love git. #DevDiscuss
01:58 AM - 30 Oct 2019
2
8
Yesterday's DEVDiscuss made me remember about this one and now I can't stop thinking about it. The frustration.. the uncertainty!
Many years ago my supervisor at the time was making major changes to dozens of business objects and, of course, tons of unit tests would fail. He solved the problem by commenting out all the unit tests. No time for unit tests because, "the clients don't want to pay for that."
That turned out to be a very costly mistake in the years that followed.
For me it was quite different.
My supervisor didn't want to have unit tests, and I wasn't able to change his mind.
So, I created them anyway (just to be sure that my code worked correctly) and I didn't include the project into the solution.
Of course, it turned out that they were useful, especially for a particular algorithm. But of course he didn't recognized the value of the tests, and that he was wrong.
One dark and stormy night, I was installing a Linux update and during the install the power went out, the machine wouldn't boot, then the power went out during the reinstall....
Updating UAT database that was being used by testers... with the wrong update script....... breaking the database............ I did not back up .......................................................... I... love... my... job...?
(in the end it was ok but half a day spent updating very old back up and data was lost)
I feel your pain. My current gig involves extending a 20 year old vb6 application. That’s of course when I’m not maintaining automation systems written in auto hot key...
For me, it was agreeing to maintain a PHP application, then discovering that the 200+ base files were almost exact copy-paste duplicates of each other with some minor differences, and "version control" was copying a file with a name like page1.php... or pageA.php, or page1X.php, or old_page1A_x2.php, or... 😱
Also, most of these files were just stacks of includes of other "versioned" files.
In February 2020, I purchased a software company started in 2005. The entire platform was written in VBScript for ASP Classic sites. I have been working since to convert it slowly without disrupting the active customers to a modern platform like Node or PHP
Me too. I even went to the MAX conference in Salt Lake City. I built an online game show in Flash/ActionScript back in 2001. At a certain point the AS runtime would garbage collect my class definitions and then nothing would work. We worked around it by forcing a browser refresh after the end of each game to give the user a fresh runtime.
Oldest comments (81)
Spent about two hours working on a complex new part of the system I was on. It worked first time without any issues.
I think the devil will come looking for me later in life...
Yesterday's DEVDiscuss made me remember about this one and now I can't stop thinking about it. The frustration.. the uncertainty!
I love this 😂
I had to work on a project where all static HTTP requests had to be GETS and all API calls had to be PUTS and we were forced to use hard tab 4 spaces.
no... NO 😭
Real horror comes when the things are "realistic". So I'll go with this one from one of my previous jobs.
This must be April's Fools day...
Many years ago my supervisor at the time was making major changes to dozens of business objects and, of course, tons of unit tests would fail. He solved the problem by commenting out all the unit tests. No time for unit tests because, "the clients don't want to pay for that."
That turned out to be a very costly mistake in the years that followed.
For me it was quite different.
My supervisor didn't want to have unit tests, and I wasn't able to change his mind.
So, I created them anyway (just to be sure that my code worked correctly) and I didn't include the project into the solution.
Of course, it turned out that they were useful, especially for a particular algorithm. But of course he didn't recognized the value of the tests, and that he was wrong.
One dark and stormy night, I was installing a Linux update and during the install the power went out, the machine wouldn't boot, then the power went out during the reinstall....
And this is why a 100$ UPS is the best Christmas gift a girlfriend can buy for a techie.
Reading a Pure PHP API where the routing was validated only with if's and the route you need to go was in the url query like this:
somefile.php?query=I_need_coffee
The worst terrors are those you know exist, and yet cannot see.
Like invisible characters that choke the life out of your YAML parser.
Updating UAT database that was being used by testers... with the wrong update script....... breaking the database............ I did not back up .......................................................... I... love... my... job...?
(in the end it was ok but half a day spent updating very old back up and data was lost)
I spent a couple of years maintaining a VB6 application.
My current position involves maintaining a legacy vb6 application. Thankfully we're starting to switch over to VB.net, but it's a slow process...
I feel your pain. My current gig involves extending a 20 year old vb6 application. That’s of course when I’m not maintaining automation systems written in auto hot key...
Lucky for me, that era is long behind me. Working with .Net core now.
Did a
git pull
out of habit on a project repo I'm the only contributor for and git pulled changes down from the remote repo 😳For me, it was agreeing to maintain a PHP application, then discovering that the 200+ base files were almost exact copy-paste duplicates of each other with some minor differences, and "version control" was copying a file with a name like
page1.php
... orpageA.php
, orpage1X.php
, orold_page1A_x2.php
, or... 😱Also, most of these files were just stacks of
include
s of other "versioned" files.Sounds like you were hired in hell.... How long did you last there?
Thankfully it was a freelance gig, but I maintained it for 2 years. I was always filled with dread whenever I got a feature request for this app.
Gosh 2 years😱😱 that's terrifying
Had a a manager that would walk up behind me grab me by the shoulders and gently squeeze them to get my attention.
I was burnt out at the time and a bit jumpy, and that habit of his was pretty uncomfortable.
Literally made me look over my shoulder while working. Does that count?
I inherited a project to write VBScript for ASP Classic sites. For a large public corporation. In 2014.
In case this helps you, according to stack-overflow Vb script is the least loved programming language.
In February 2020, I purchased a software company started in 2005. The entire platform was written in VBScript for ASP Classic sites. I have been working since to convert it slowly without disrupting the active customers to a modern platform like Node or PHP
I was an ActionScript developer, does that count?
Me too! 😂
Me too. I even went to the MAX conference in Salt Lake City. I built an online game show in Flash/ActionScript back in 2001. At a certain point the AS runtime would garbage collect my class definitions and then nothing would work. We worked around it by forcing a browser refresh after the end of each game to give the user a fresh runtime.
Definitely counts.
My first gig was damage control from the last ActionScript developer and boy howdy, it gave me plenty of cautionary tales of what not to do.
Same.
ActionScript, where a vector is a fixed-size array, and an array is always a vector. Shudders