DEV Community

Discussion on: The Incompetent Developer - Do you know one?

Collapse
 
axelledrouge profile image
AxelleDRouge • Edited

I recently had to work on a project that was really badly written.
Just for info, I may have developed a fear of the 'infinited splits of death'
one string was repeatedly splited (with .split('!')[0].split('&')[1].split() ...) without any thoughts about objects, variables or all those things that make sense when coding (even just for our piece of mind)
And it was only a small part of the problems of this work. From full React librairies copy pasted from the debugger tool of chrome in the code (a full file of 600kb, where only a tiny part is really relevant) to multiples lines of console.log containing http request in large quantities in production and the complete opposite of any DRY logic...
It was just a nightmare to work with!
So I don't really fully blame that person for her incompetence, more the recruiters and the project management for assigning her on that project, important with security aspects.
But she should at least have been more curious, more logical, or more inclined to search for answers when she didn't know what to do. She didn't do that, and noone was present to guide her. By the time I arrived, she use a vertical screen to code in js (I mean, seriously?) And now I have to work with the results, and spend more hours of work on correcting everything!
At least it is a good teaching method for me, I understand that much more the necessities of a clean code, with precise names for variables and functions, with short functions easy to associate and debug