|
Sadly, if the coupling level is too high to allow for the creation of unit tests then "red/green/refactor" is as scary as having open heart surgery on a roller coaster.
|
|
|
|
|
It would help if there was a definition of code quality, but there isn't even that. Code might be defect-free (in the sense of working as designed), but still not fit for use. Code could be fit-for-use, but so complex as to be unmaintainable. There are numerous dimensions of that slippery concept called "quality".
Cyclomatic complexity doesn't measure code quality, it measures code complexity. The hypothesis is that there is a positive correlation between complexity and defect density. Most people think of measures of defects when they think about quality, but defects are not the only or even necessarily best measure of quality. Defects have the advantage that we can detect them, count them, and graph them on charts. Dimensions like maintainability are pretty squishy. And dimensions like fitness for use are measureable in principle, but so expensive to measure that most teams don't bother (and more's the pity).
With cyclomatic complexity, what you do is look for the parts of your code with high complexity and test the snot out of those parts, because bugs lurk there. You can also use cyclomatic complexity as a measure of where to focus refactoring and abstracting efforts. A team might go so far as to require special review of any code checked in whose cyclomatic complexity exceeded a particular value. But there's no number that is "too bug". Maybe the problem is just that hard.
|
|
|
|
|
- Prepare some chocolate chip cookies the night before
- Place cookie or cookies on the metal base directly under the cooling vent on the underside of the monitor
- Build and load test your latest creation. Test it hard.
- Enjoy the now warm cookie complete with melted chocolate chips.
cheers
Chris Maunder
|
|
|
|
|
I guess you really can have have your cakecookie and eat it, too
Tom
|
|
|
|
|
Chris Maunder wrote: Test it hard.Enjoy the now warm cookie complete with melted chocolate chips. Yummm. Debugging never smelled so good.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
You really should give us sarcasm emoticons.
edit: if that is even possible to convey in an emoticon.
|
|
|
|
|
Slacker007 wrote: sarcasm emoticons
#SupportHeForShe If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Only 2 things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
Slacker007 wrote: if that is even possible to convey in an emoticon. ^o)
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Macs are suddenly looking more attractive to me...
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Back in the day (20 years ago) when I was "the IT guy" at my company and we just used a big tower as our Novell file server - I added a pair of SCSI RAID controllers to drive a "huge" RAID system (1Gb if I recall). The server overheated about every 4 hours, so while we looked for a "permanent" solution I took the tower's cover off and bought a $20 table fan to cool it.
We never found that "permanent" solution and the server ran naked with a cheap table fan running 24/7/365 for over two years.
Good times!
Contrary to popular belief, nobody owes you anything.
|
|
|
|
|
It worked, so there was no need to fix it?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark_Wallace wrote: It worked, so there was no need to fix it? Pretty much. The company president at that time was a bit of a Luddite and extremely cheap. I had to get a free 30 day trial for e-mail (internal only) between him and his staff before he could comprehend the benefits.
He bitched when I tossed a 10 year old Compaq portable (one of the old suitcase sized models with the 8" monochrome display - 8088 CPU, 640k, 10Mb HD).
Contrary to popular belief, nobody owes you anything.
|
|
|
|
|
Mike Mullikin wrote: The company president at that time was a bit of a Luddite and extremely cheap heh.
I think I've worked for the same guy. Twice.
Mind you, it can have benefits, because it forces you to be creative -- but there are limits.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Chris Maunder wrote: Test it hard.
hmmm, that's what she said...
#SupportHeForShe If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Only 2 things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
You lost me after step 1. When I make chocolate chip cookies, they are gone the next day
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Chris Maunder wrote: ...cookies...cookie...cookies...
Mate, hand your Australian citizenship in now.
One scmiddy of shandy I could let go. But forgetting how to spell biscuit is unforgivable.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
I'm speaking native so I'll be understood over here.
I've been here so long I now speak Australian and Australian. eh?
cheers
Chris Maunder
|
|
|
|
|
|
I thought these [^] were the first tablets.
cheers
Chris Maunder
|
|
|
|
|
I dunno... I doubt the first set had hinges.
If it's not broken, fix it until it is
|
|
|
|
|
What, God can't even make hinges?
What a cr@ppy god.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
The tablet was version 1.0 - simplicity
If it's not broken, fix it until it is
|
|
|
|
|
Ah! So you mean those are the Beta Test Commandments? Explains a lot...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
They didn't pass UAT
If it's not broken, fix it until it is
|
|
|
|
|
Yup, and when they closed automatically, you had to move fast, or they'd have your fingers off.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|