Saturday, November 15, 2008

NDepends - A Powerful Code Metrics tool

NDepends is one of the powerful tool that we have now in markt . You can get the details by visiting the following link NDepends.

A short Introduction :


NDepends is a .Net code base management tool.It mainly aims at achieving the following

things.

1.Code structure
2.Specify design rules
3.Plan massive refactoring
4.Effective code reviews
5.Master evolution

These things can b done by comparing different version of the code base.So what get's

benefitted by these things ? Well i am damn sure that one can get better productivity by

means of improved code review, easier maintenance and fast development.

Some of the features of NDepends are

1.Code Query Language (CQL)
2.Compare Builds
3.82 code metrics
4.Manage Complexity and Dependencies
5.Detect Dependency Cycles
6.Harness Test Coverage Data
7.Enforce Immutability and Purity
8.Warnings about the health of your Build Process
9.Generate custom report from your Build Process Diagrams
10.Facilities to cope with real-world environment

So how does NDepends achieves these things ?

Well the developers of NDepends derived at a idea of giving a facility so that developers can query the objects as we query in T-SQL . We can use "select * from object" or  "Select top 10 * from Object". They call them as the CQL - CODE QUERY Language.

Practical Scenario:

Lets try to create a new project in NDepends. Try downloading a Evaluation copy if you wish to try or you can purchase that from the http://www.ndepend.com.

Lets say i hav a Silverlightapplication and i want o analyze my Project now. Lets try to create a new project as follows.

A new screen

View and Hide Folders of the Assembly
Loading the project assemblies.
I have a silverlight Application and i want to analyze the code metrics. So in that case i will use th browse button to load my project file assemblies.
Run project
Similar to the Visual Studio IDE here we have a Green colored Run button . Just click that an you will get the results produced in matter of seconds. The whole result document will be produced in a Browser window. The actual code result's with the assembly details will; be there in the IDE.
You can get various informations regarding your assembly like Dependencies in a diagram format. Then the performance results like coding quality standards,design standards, unused codes, encapsulation ,test coverage, purity..
Here you can very well see a Create query button .This is th option that is used to writ the Code query language(CQL).
          Metric Results
Code Query Language
This CQL is something equal to our sql. Once you click th create query button you will get a screen like you gt for query analyzer. There you can type your queries with intellisense.
The below screen explains how you can write a query to fetch the methods that have more than 5 lines of code. Here the slider you are seeing indicates the integer value that we give for the count. Its a progress indication. You can also specify whether the method is a private or public .
The below screen shows how you can find the classes that have implemented the IDisposable interface. You can say how standard your code is and you have garbage collected well efficiently.

Conclusion:


We have lot of tools available in market for code standardization. But this tool seems amazingly great. It has given a fantastic UI and Graphical representation of the results. Particularly the Dependency diagram is amazing and so the Code metric's. One can use this in their Day to Day programming life to achieve a better productivity.

59 comments:

Anonymous said...

Can anyone recommend the well-priced Remote Management & Monitoring program for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central network health tool
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

[url=http://www.drawingboard.org/blogs/?u=videoseannabel6]Any Video Converter Professional 2.2.2[/url] [url=http://www.adulthostedblogs.com/?u=videoseannmarie7]Power Video Converter 1.5.57[/url]
USAsoft DVD Video MP3 Converter 5.0.0 Okoker All Video ConverterBurner Pro 6.1
http://www.solonoilista.altervista.org/bloghoster/?u=videoseallison6 A-Z MPEG VCD DVD Video Converter 4.27
[url=http://blog.bakililar.az/videosealexandra5/]BS Player pro 2.7[/url] [url=http://www.solonoilista.altervista.org/bloghoster/?u=videoseallison3]Apex Video Converter Super 6.16[/url]
Witcobber Super Video Converter 5.3 Star Video Converter 1.2.8
http://www.drawingboard.org/blogs/?u=videosealease6 Free FLV Video Converter
Altdo Video to 3GP Converter
my icq:858499940385

Anonymous said...

Completely I share your opinion. In it something is also idea excellent, agree with you.

Anonymous said...

buy tramadol online tramadol 50 mg snort - tramadol 50 mg kapseln dosierung

Anonymous said...

tramadol no prescription tramadol ultram 50mg - how is tramadol addiction treated

Anonymous said...

buy tramadol online buy-tramadol-overnight - tramadol hcl 50 mg canine

Anonymous said...

xanax online generic xanax imprint - side effects of xanax 0.25mg

Anonymous said...

generic xanax xanax 5 hour energy - 1 mg xanax too much

Anonymous said...

buy xanax bars xanax effects wear off - xanax bars yellow time release

Anonymous said...

buy tramadol online tramadol hcl 50mg 319 - tramadol addiction fda

Anonymous said...

buy tramadol online buy tramadol online dogs - tramadol addiction while pregnant

Anonymous said...

buy carisoprodol what is soma carisoprodol - carisoprodol tramadol abuse

Anonymous said...

xanax online order xanax online cheap - difference xanax generic xanax

Anonymous said...

buy tramadol online can you buy tramadol online in usa - tramadol hcl 25 mg

Anonymous said...

generic xanax greg giraldo overdose xanax - xanax side effects weight gain

Anonymous said...

buy tramadol online buy tramadol no prescription - gettin high on tramadol

Anonymous said...

xanax online xanax generic substitute - xanax online safe

Anonymous said...

generic xanax xanax show up in drug test - xanax online no prescription

Anonymous said...

buy carisoprodol generic drug carisoprodol - drug test for carisoprodol

Anonymous said...

cheap tramadol online buy tramadol with cod - ultram tramadol hydrochloride tablets

Anonymous said...

carisoprodol buy carisoprodol while breastfeeding - carisoprodol sub for soma

Anonymous said...

buy cialis online cialis online coupon - cialis 80 mg price

Anonymous said...

cheap tramadol online tramadol dosage extended release - tramadol for dogs humans

Anonymous said...

xanax online difference xanax xanax bars - what is xanax 2mg for

Anonymous said...

buy cialis online cialis prescription coupon - cheap cialis generic usa

Anonymous said...

cialis sale cialis 20mg online - order cialis overnight

Anonymous said...

buy cialis online cialis free trial online - is it safe to buy cialis online usa

Anonymous said...

cialis online generic cialis rip-off - cialis nitrates

Anonymous said...

buy cialis online generic cialis tadalafil 20mg - cialis cheap fast delivery

Anonymous said...

cialis online generic cialis viagra - cialis price pattaya

Anonymous said...

buy tramadol online prednisone and tramadol for dogs - tramadol no prescription us pharmacy

Anonymous said...

http://landvoicelearning.com/#51602 tramadol 50 mg dog dosage - buy generic tramadol online

Anonymous said...

cheap tramadol tramadol medication - tramadol hcl recall

Anonymous said...

tramadol online buy tramadol 50mg online - zydol tramadol overdose

Anonymous said...

buy tramadol tramadol hcl zydol 50mg - buyer tramadol online

Anonymous said...

http://buytramadolonlinecool.com/#61458 tramadol 50 mg headache - buy tramadol online legit

Anonymous said...

buy tramadol tramadol 100mg wikipedia - buy tramadol online australia no prescription

Anonymous said...

http://landvoicelearning.com/#97734 tramadol withdrawal vs vicodin withdrawal - tramadol buy online cheap

Anonymous said...

learn how to buy tramdadol tramadol for dogs is it safe - buy tramadol paypal

Anonymous said...

buy cheap tramadol tramadol hcl 50 mg migraines - tramadol used no prescription

Anonymous said...

buy tramadol tramadol withdrawal fever - buy tramadol buy cod

Anonymous said...

http://landvoicelearning.com/#38471 dosage for tramadol 100mg - tramadol for dogs used by humans

Anonymous said...

http://reidmoody.com/#49853 ativan use in elderly - ativan used alcohol withdrawal

Anonymous said...

buy ativan online online purchase of ativan - ativan dosage options

Anonymous said...

ways to buy ativan online lorazepam 1mg tabletten - ativan side effects dry mouth

Anonymous said...

buy ativan online amount of ativan overdose - ativan withdrawal dosage

Anonymous said...

buy tramadol online tramadol hcl 50 mg a narcotic - buyer tramadol online

Anonymous said...

http://ranchodelastortugas.com/#58720 long until xanax withdrawal - where to buy generic xanax online

Anonymous said...

buy tramadol online tramadol reviews - tramadol hcl interactions

Anonymous said...

where can i order xanax online xanax side effects body - generic xanax pill pictures

Anonymous said...

buy tramadol online tramadol hcl 50mg 319 - buy tramadol hcl online

Anonymous said...

tramadol no prescription tramadol 627 get high - order tramadol online check

Anonymous said...

buy alprazolam online without prescription xanax bars white mg - types generic xanax

Anonymous said...

xanax no prescription xanax generic cheap - xanax bars wiki

Anonymous said...

buy xanax online xanax dosage panic attack - alprazolam 0.5mg para que sirve

Anonymous said...

xanax no rx military drug test xanax - buy xanax online insurance

Anonymous said...

Your οwn pοѕt providеѕ proven benefіciаl to us.
It’s very hеlpful and уοu're simply clearly quite well-informed in this field. You get opened our face to be able to various thoughts about this specific matter along with intriguing, notable and sound written content.
Also visit my weblog - buy ativan online

Anonymous said...

viagra generico online viagra viagra generico

Anonymous said...

buy tramadol online reviews buy generic tramadol online - buy tramadol online no prescription cheap