Hasn't this thread been deleted yet?
- 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!
test please delete
Collapse
This is a sticky topic.
X
X
Collapse
-
-
Originally posted by voodooflux View PostRight, early(ish) night called for I think - I have to test a particularly gnarly piece of code in the morning, and I'll need my wits about me.
Sleep well folks
You probably know already, but Test Driven Development: first you write the tests, which all fail because you haven't written the code yet. However, given that the tests check everything the code should and shouldn't do, you then write the code. When all the tests pass, you've finished
Then somebody finds a case where the code does something you hadn't anticipated. So you devise a test for this unanticipated circumstance, which of course fails because you haven't fixed the bug yet.
Then you fix the bug. If all the tests now pass, win. If some other test now fails, your fix has introduced a regression, so you need to re-address the issue. (You do have a version control system that allows you to backtrack, don't you?)
You may then find that the code has to be refactored to allow the fix to be implemented. So you refactor the code, then run the tests, and it all works except for the existing fail. Now you can implement the fix for the existing fail, and if all the tests now run successfully, then once again you're done.
Apart from many other benefits, it's also a good way of avoiding the temptations of premature optimisation and feature creep
It was for not being seen to have grasped these facts (which I grasped around 1999) that I got knocked back for that contract last week
Still, TDD FTW!Comment
-
Comment
-
Originally posted by TykeMerc View PostHasn't this thread been deleted yet?
Now you're here, we can finally get rid of itComment
-
Originally posted by BrowneIssue View PostHey ho. Only 22,239 posts over 86 days to catch up on.Comment
-
Originally posted by voodooflux View PostDS1 had a glowing report from his teacher tonight. She reckons she's never seen a report card as good as his - I'm so proud of the little fellaGreat stuff
Morning everyoneBazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
Comment
-
Comment
-
Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
It's very quiet in here this morning!!
You are late too BP... everything ok?Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
- 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
- How HMRC’s umbrella company JSL rules will play out Yesterday 23:33
- As Small Business Commissioner, I invite unpaid limited company contractors to come forward Yesterday 17:50
- Is Labour just going to leave limited company contracting zombie-like, neither dead nor alive? Aug 12 22:56
- Contracting Awards 2025 unveils ‘stellar’ shortlist Aug 11 21:31
- If it’s JSL liability, it’s Managed Service Providers (MSPs) too, potentially Aug 8 02:54
- Labour's new anti-late payment package ‘a contractor confidence boost’ Aug 7 00:33
- MSC test cases: Feb 2026 spells certainty for Boox/CK contractors Aug 6 05:36
- Under JSL, agencies are ‘umbrella companies’ if no brollies are present Aug 4 23:06
- How to get paid by a closed (or closing) recruitment agency Aug 4 17:37
- How four HMRC consultations from Spring Statement 2025 are shaping up for contractors Jul 31 14:39
Comment