Sometimes fixing the bug requires refactoring the program. There can be more risk in fixing a bad program than rewriting it to a reasonable standard.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Code reviews
Collapse
X
Collapse
-
-
You had the best of intentions, no doubt about it.
However, there is a fine line.
If the bug fix in place takes 10 minutes, and a redesign of that section takes 2 hours, with the possibility of introducing new bugs, causing a need to re-learn the way a module works, could definetly be considered well beyond the bounds of what you were asked to do.
Was it your decision to spend that time, rather work on some other important bug or feature the buisness wanted done?
Maybe the technical debt issue is not relevant at all because they are scrapping the system or rewriting it in 6 months.
Anyone coming in (contract or permie) rewriting stuff when not asked to do so will always be met by hostility, I've seen it happen lots of times.
As it happens these types of systems are one of he main reasons I started contracting so I wouldn't get stuck for years maintaining rubbish. I like to write my own rubbish from scratch!Comment
-
My view is fixing the bug and refactoring are two different changes, sure you can combine them and it might well make sense, but refactoring carries a much greater risk of breaking something because you're changing much more of the code. Whatever you change has to be tested and there may not be the time to test this within the scope of the bug fix.
In other words potentially your change is incurring costs which weren't foreseen, your time, the time of the testers and costs incurred from side-effects caused in production from the refactored code whch are not to do with the bug fix.
If you sent your car to the garage to have the new tyres fitted and they also treated the rust on the wheel arches without asking you and then charged you for it, you may well be miffed because you weren't worried about it, there was worse rust underneath which you would have preferred to have treated and it's cost you several hundred pounds.I'm alright JackComment
-
Originally posted by NotAllThere View PostSometimes fixing the bug requires refactoring the program. There can be more risk in fixing a bad program than rewriting it to a reasonable standard.Comment
-
Well you have to stand your ground. I've been accused of turning spaghetti code into spaghetti architecture on one occasion but told them about modularity, re-usability, testability etc. concepts that were new to them apparently. Hmmm, inneresting......Comment
-
Originally posted by Gittins Gal View PostShould be an inneresting 3 months.Originally posted by Gittins Gal View PostHmmmm, inneresting....Originally posted by Gittins Gal View PostInneresting but I don't think it has really died out.Originally posted by Gittins Gal View PostI read a really inneresting interview with David Attenborough the other day.Originally posted by Gittins Gal View PostA really inneresting thing about the White post Inn is that if you are stood at the far end of the bar you are in Somerset.Originally posted by Gittins Gal View PostWell you have to stand your ground. I've been accused of turning spaghetti code into spaghetti architecture on one occasion but told them about modularity, re-usability, testability etc. concepts that were new to them apparently. Hmmm, inneresting......Comment
-
Originally posted by Bunk View PostMy sockie detector is twitching like a mad 'unComment
-
Don't listen to ClientCo, they're clearly muppets. Keep your head high. If you want to re-write the whole thing from scratch, do it.
Document everything to a high standard. Keep a RAID log, and this technical debt register. Call meetings and whine on here when folks don't turn up.
All the time remember, no one does it quite like you or understands your brilliance. YOU are the project hero.
It's the only way.Knock first as I might be balancing my chakras.Comment
-
Originally posted by Bunk View PostMy sockie detector is twitching like a mad 'unOriginally posted by Stevie Wonder BoyI can't see any way to do it can you please advise?
I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.Comment
-
Originally posted by jmo21 View Post]
As it happens these types of systems are one of he main reasons I started contracting so I wouldn't get stuck for years maintaining rubbish. I like to write my own rubbish from scratch!Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- What the housing market needs at Autumn Budget 2025 Sep 10 20:58
- Qdos hit by cybersecurity ‘attack’ Sep 10 01:01
- Why party conference season 2025 is a self-employment policy litmus test Sep 9 09:53
- Labour decommissions Freelance Commissioner idea Sep 8 08:56
- Is it legal to work remotely from Europe via a UK company? Sep 5 22:44
- Is it legal to work remotely from Europe via a UK company? Sep 5 10:44
- Autumn Budget 2025 set for Nov 26, ‘putting contractors on watch’ Sep 4 15:13
- November 2025 Companies House ID rules contractors must follow Sep 3 19:12
- When agencies sink with your contractor invoice: a legal guide Sep 2 17:14
- Reeves ‘to raise VAT registration threshold to £100,000’ Sep 1 06:37
Comment