by james_morton · 8y ago · 0 comments
A rewrite will solve it in the short term - until requirements change again.
However, I would much rather apply the new 'hacks' onto the rewritten 10 line function than figure out the original 200 line behemoth.
But collectively, it's likely that one of those hacks is there to account for some edge case that's not intuitive and will be missed on the rewrite.
This is a real example at one job in the UK on budget day I used to listen the budget speech live in case it had any impact on the system I worked on.
Each record type and field in that record had its own entry in a MIDAS table so you could process say TELEX records differently to Email, Data etc.