3 ms·
I'm in a constant state of this in the codebase I inherited. The previous solo front-end developer was the manager of R&D so he couldn't be fired easily, he was
by Cthulhu_ 5y ago
I'm in a constant state of this in the codebase I inherited. The previous solo front-end developer was the manager of R&D so he couldn't be fired easily, he was the only person willing and sort of able to do front-end (PHP + JS/Dojo), he was super productive (most code was written in 2012/2013), but not a very competent or self-critical developer.
Think a back-end that concatenates XML into a big global string over the span of thousands of lines of code, then passes it to a function that parses it and outputs it again as JSON.
Think functions spanning a thousand lines with triple-nested switch/case and if/else blocks
Think a front-end where JS is used to concatenate HTML, CSS and more nested JS together into a string
Said front-end will save and reload the currently active page on change of any form field, and there's dozens of form fields across dozens of dialog screens.
When I joined I was given free rein to rewrite it in the technologies I thought would suit best. It's been two years, at a stretch I'm about 20% of the way there. It's a project that needs one or two fully staffed development teams, but we have the budget for two people because our management resists faster growth or investments.
- skeeter2020 5y ago>> Think a back-end that concatenates XML into a big global string over the span of thousands of lines of code, then passes it to a function that parses it and outputs it again as JSON. If you squint hard enough this is cgi-bin
- iamthepieman 5y agoIs this GIS code?
- mekkkkkk 5y agoI'm talking out of my ass here, but it doesn't sound like you are trying to rewrite it, but rather refactor it in place. This often takes much longer than a proper rewrite in my experience.
- satyrnein 5y agoWhen I joined I was given free rein to rewrite it in the technologies I thought would suit best. It's been two years, at a stretch I'm about 20% of the way there. This is the danger of rewrites (assuming this was not actually greenlit as a 10 year project)!
- pacifika 5y agoThe trick is to declare it out of scope and bury the follow-up ticket.