NDepend, for all your .NET project analysis needs!

Hello,

I’ve been postponing this post for a while now, mostly due to a lack of time but now I’ll take a brief moment and tell you a little bit about NDepend.

NDepend is an standalone application / extension for Visual Studio.
It allows us, developers, to get detailed information about a .NET project.

NDepend will load up your assemblies and scan them down from top to bottom while keeping detailed information that will be displayed to you in a nice HTML page after it’s done processing your assemblies.

I haven’t used all of NDepend’s functionality as of yet, but I can tell you it has a lot! of capabilities.

For instance, there’s a feature that will display any circular references you might have in your project, no matter how deep.
It does this by using a “dependency matrix”. It might take some getting used to in the beginning, but once you have the hang of it, it is quite easy to use.

An example dependency matrix

It also shows you who depends on who and NDepend will display it in a nicely, organized way (= Dependency Graph)

An example dependency graph

NDepend allows you to configure certain settings, an example being “My methods must be 40% commented”.
Each time NDepend encounters a method or function that has less then 40% comment coverage, it will add the method to its error list and let you know which method or function needs more commentating :)
Other options are coding conventions (for example, all members of a class must start with _ and then a capital letter), IL complexity (to prevent you from writing too complex methods), Lines of Code (to prevent you from writing methods or functions that contain too many lines of code) and much more!

A CQL example

NDepends CQL (Code Query Language) is another nice feature. It allows you to write SQL like queries to retrieve information regarding your project.
An example:

SELECT METHODS WHERE NbLinesOfCode > 30

would return a list of all methods in your assemblies that contain more then 30 lines of code!

If you are working on a large project with multiple people, NDepend will surely make your day!
Keep your co-workers working with the same conventions as declared when the project started and prevent them from starting to use their own :)

I really can’t describe all the functionality of NDepend, so if this post has sparked your interest in NDepend, head over to http://www.ndepend.com and check them out!
I’m sure you won’t regret it ;)

NDepend is mad fun to play around with and it WILL give you a better insight in your project and it WILL help you clean up your code quite a bit!

Share

ASP.NET 4 @Page EnableTheming

Hey there!

Today I was going over my “Themes and Skins” chapter in my ASP.NET 4 book and I noticed the following “bug”:

Continue reading ‘ASP.NET 4 @Page EnableTheming’ »

Share

ASP.NET inline tags

Hey everyone!

Recently I’ve started on my “Professional ASP.NET 4 in C# (and VB)” book to get my knowledge of ASP.NET up.

One of the things I’ve noticed was that nowhere in the first chapter(s) they explained the difference between all the ASP.NET inline tags (such as <% … %>, <%$ … %>, etc)

Therefor I’ve decided to put together this small overview of all the different inline tags and what they do. (Yes, it’s for my convenience too).

This post will cover the following inline tags:

  1. <% … %>
  2. <%= … %>
  3. <%# … %>
  4. <%& … %>

I think it’s obvious what the <%@ … %> tags do ;)
The <%– … –> tags serve as server-side comments. Meaning those comments will not be visible in the HTML source code.

Continue reading ‘ASP.NET inline tags’ »

Share

My new project: Remote Point!

Hey everyone,

It’s been a while since I last posted on my blog, I’ve been too busy enjoying my hard earned vacation before I start walking the path that is called life and get a job and everything ;)

Recently my grandmother & grandfather both passed away within a week so I decided to dedicate this project to them.
Remote Point is a Windows Phone 7 application that allows a user to control their powerpoint presentation with their Windows Phone device!

This project contains the following and will be available on the marketplace soon:
- Remote Point WP7 application
The current features are rather limited since I’m completely new to the entire office development scene ^.^
We can go forward and backward during a presentation or even jump to a specific slide. The current slide will be shown on the device itself.
I plan on including some extra stuff but most of it can only be done when the new mango update is out (yay for sockets!)

- Remote Point PowerPoint add-in
This handy add-in will add a new ribbon to your PowerPoint screen and allows you to start the listener (so that the phone can connect!) and display some basic info.
Whenever you start a presentation, screenshots will be made of all the slides in the current presentation and stored in a temporary folder.
These screens will be sent to the device to display the current slide :)

Anyway, that’s about it for now :)

Keep on coding ~

Share

My first WP7 App: QuickTranslate

Hey everyone,

I finally found some time to put together my first Windows Phone 7 application ^^
I’ve called it “QuickTranslate” and it’s an application that allows you to quickly translate a word or a sentence into a different language!

You can either specify the language you’re translating from, or have it auto detect it for you.
The application utilises the Microsoft Translator to do the actual translations.

Note: The application is not *yet* available on AppHub. I’m lacking a real WP7 device to perform testing on (no budget on my end xD) and apperantly, according to someone that owns a WP7 the application is rather messed up on a real device, altho it looks good on the emulator.

Here are 2 short demo movies of the application:

Continue reading ‘My first WP7 App: QuickTranslate’ »

Share

Interview with Scott Hanselman

Hey everyone,

As I mentioned in my previous post, I was lucky enough to be able to interview Scott Hanselman when he was in Belgium for his keynote at Web camp Belgium 2011.

You can view the result below! ;)

Share

Microsoft Webcamp Belgium 2011

Hey everyone!

I attended the first webcamp Belgium in-person on Monday, 24th of January 2011 and I must say, I had a blast.
The top speaker for the event was Scott Hanselman with a session on the new ASP.NET MVC 3, WebMatrix, NuGet and the Web platform toolkit.
After Scott, Katrien De Graeve did a session on HTML5. Then it was time for lunch and after lunch, Gill Cleeren did a session on jQuery and after that Scott was up again with a session on oData.

So, let’s get started shall we? ^.^
I’ll discuss each session and at the bottom of the page you can find some resources related to the event!

Continue reading ‘Microsoft Webcamp Belgium 2011’ »

Share

Status report

Phew,

Looks like its been almost a month since my last post :x
I know, I’ve been busy with all kinds of useless and time consuming projects for college -.-’

Anyway, one good thing came out of it tho!

I’ve finished my ASP project and at the same time, my Events & Seminar website where users can sign up for one of my events or seminars ^.^

Altho I’m having some issues with my webhost atm (yea, when working local everything always works!)
Seems they don’t have installed the neccesairy tools for ASP.NET Session State Mangement so my website is pretty much worthless atm, it doesn’t run like it’s supposed to :-P

Anyhow, I’m sure we’ll get it fixed quickly so I can finally get everything up and running!

|*| Update 30/11
———————-

Looks like they don’t get what I’m talking about -.-’
Anyway, I’m thinking about making my own session handler similar to the built-in SQLServer session state management :D
The general idea is the same: use SQL Server to store & retrieve session data

Next few weeks will be intense aswell, since I have exams coming up and all :<

That’s about it…

- Dirk

Share

Windows Phone 7 development

Hey everyone,

For those of you that wish to get started on WP7 development, Microsoft Press has released a free e-book about WP7 programming, written by Charles Petzold.

The e-book and other usefull information can be found on the link below:

http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx

Happy dev’ing \o/

Share

Blog update

Hey everyone,

Today I’ve installed a new plugin for the blog:

reCaptcha plugin for WordPress

This plugin enables me to force people who wish to place comments to fill in the reCaptcha before they can post a new comment.
I’ve installed this plugin in an attempt to battle the thousands of spam comments I receive each day.

Sorry for any inconvenience caused ;(

Share