Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
++ but real fear sets in when the rewrite is done and everything *appears* to work. But you KNOW you're not that good.
Can you wrap those old functions in unit tests and gather their supposed outputs and when you write new code, pass each new part through the same tests? Using them to validate the outputs are equal? Would that work for you?
vinerz26633y@chrisalexthomas this is a great idea, but unfortunately the current code is a complete mess with functions responsible for more than 10 things at once. Fortunately, the module is a frontend one, so I can measure if it works by comparing the current behavior. It will be a messy process, but the new code will be way more maintainable!