DEV Community

Discussion on: Mandatory Copy and Paste

Collapse
 
robertmain profile image
Robert Main • Edited

Thank you, Scott. This perfectly describes a system I was forced to work on at a previous job.

There were multiple copies of bootstrap copied and pasted all over the place. Bootstrap 2 JavaScript was mixed with bootstrap 3 CSS which had been horribly bastardised by hand and checked in. There were several chunks of lodash also checked in and embedded in an HTML template along with an implementation of fisher yates shuffle that would probably give a cs professor PTSD. Attempts to move to package management and stop checking libraries in were dismissed by the original "developer" and management as "it would make the app too bloated"... Presumably in a way that 3000 lines of duplicated garbage doesn't. There was date format conversions that worked by string explosion and manipulation. It was a total clusterfuck of a web application and by far the worst code I have ever seen in my life (and I'm including the WordPress core in that)

Even worse was that attempts to refractor so I could actually follow the logic resulted in management interviews to explain why I was doing "unnecessary work". It wasn't until the app launched and our users complained that it didn't actually work did anyone concede that maybe, just maybe I might have a point. At that point, management lectured the entire dev team on learning to speak up if there are problems.

I want to go back to my previous job, print this rant out and nail it to their fucking foreheads.

Collapse
 
scotthannen profile image
Scott Hannen

Thanks. But please consider using tape.

Collapse
 
robertmain profile image
Robert Main

Maybe we can compromise on staples...

Collapse
 
v6 profile image
🦄N B🛡

// , Sounds like you need an Office Linebacker.

youtube.com/watch?v=Kg5cdZ-Fnpc

Collapse
 
robertmain profile image
Robert Main

I just left