c# - Is it possible to write completely maintainable code? -


i downloaded "microsoft codelens code health indicator" vs 2013 extension ( http://visualstudiogallery.msdn.microsoft.com/f85a7ab9-b4c2-436c-a6e5-0f06e0bac16d)

...and opened simple utility. score of methods ran low of 52 high of 92.

the microsoft-written method 1 higher score.

1 reference | maintainability 94 public form1() {     initializecomponent(); } 

commenting out "initializecomponent();" raised maintainability max (100), of course, in case @ least, ultimate in maintainability negative ultimate in usability.

is there way score of 100 on useful code?

update

here's code ranked 100% maintainable:

enter image description here

according microsoft's dev network, maintainability reading rated on scale of:

  • 20-100 - maintainable
  • 10-20 - "warning zone"
  • 0-10 - unmaintainable code

having code within 90's code, believe if @ 100 aren't working anything.

as far "can have usable code" 100, no initially, suppose possible useful exist.

http://msdn.microsoft.com/en-us/library/bb385914.aspx


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -