code-complexity

How complex should code be?

I'm studying about algorithms which can help me write smaller but more complex code. Instead of writing 150 lines of if-else statements, I can design an algorithm that does it in 20 lines. The problem is a lot of these algorithms can be complex and require a lot of math to understand them. I'm also the only one around here who underst...

Maintainability Index

I have come across the recommended values for a Maintainability Index (MI) as follows: 85 and more: good maintainability 65-85: moderate maintainability 65 and below: difficult to maintain with really bad pieces of code (big, uncommented, unstructured) the MI value can be even negative Are these values are dependent on technology? ...

What's the HARDEST program you've written?

Just curious, I'm wondering what all you experienced programmers or newbies (like me) out there have done. So what's the HARDEST most complicated program you've written? ...

What are the parameters used to calculate complexity in SourceMonitor?

I recently started using SourceMonitor to review my (and others) code. Though i understand other parameters judged by the tool, i don't know how does it calculates the complexity of the code. As in, what all parameters does it considers to read to a complexity number? Any feedback/suggestion would be of help. Thanks. ...

What is meant by code or algorithm complexity? How can we calculate it?

What is meant by code or algorithm complexity? How can we calculate it? What is the meaning of representation of complexity? I'm so confused by this term! ...