Step by Step implement StyleCop custom rules with Visual Studio – Part 1

Instead of starting with an introduction of StyleCop, I would like you to read “Why should we use StyleCop?“. There is enough help on how to integrate StyleCop with Visual Studio, one can be found here. This article is focused on step by step implementation to add custom rules that we used in our project. Install… Continue reading Step by Step implement StyleCop custom rules with Visual Studio – Part 1

Published
Categorized as Technical

Know your version of Web Application

Once the web application is published to production, after a while it becomes difficult to know exactly which version is in production. One of the way to find it without any ambiguity is to flash the version number on the footer tag next to copyright text. Code in aspx page Code in Codebehind page

Published
Categorized as Technical

Another Coding rules!

During some learning I came across 10 rules here with corresponding How-To #10 Avoid regions :: Refactor into smaller methods #9  Use Exceptions For Errors :: Only for errors not for execution branching #8  Avoid Boolean Parameters :: Create local Properties instead or using 2 different methods one for true and one for false. #7  Avoid Too Many Parameters :: Refactor to Create… Continue reading Another Coding rules!

Some tools on my machine.

Here are few tools I use for my web development: Resharper : http://www.jetbrains.com/resharper/download/ Fiddler : http://www.telerik.com/fiddler Wcf Client : http://msdn.microsoft.com/en-us/library/bb552364(v=vs.110).aspx Reflector : http://www.red-gate.com/products/dotnet-development/reflector/ Programmer’s notepad : http://www.pnotepad.org/ Large File Viewer : http://www.swiftgear.com/ltfviewer/features.html procexp (Process Explorer) : http://technet.microsoft.com/en-in/sysinternals/bb896653.aspx Total Commander : http://www.ghisler.com/ CamStudio : http://camstudio.org/ Everything : http://www.voidtools.com/ Watir (Ruby program) : http://watir.com/

Some handy command script for TFS

Below mentioned scripts are utility scripts for managing TFS Note : All text inside angular brackets are comments like : <COMMENTS> Script #1: Get latest script #cd C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE <path of TF.exe> #TF.exe get $/___TfsRootPath____/__BranchPath___ /recursive /force / nonprompt > C:\GetLatestDailyFile.log <the path after greater then is log path> Script #2: Rebulid… Continue reading Some handy command script for TFS

Published
Categorized as Technical

I am a Pragmatic Programmer Part 6

This is Part 6 of 7 part series inspired from the book Pragmatic Programmer, read Part 5 here: Use Exceptions for Exceptional Problems: Exceptions can suffer from all the readability and maintainability problems of classic spaghetti code. Reserve exceptions for exceptional things. Minimize Coupling Between Modules: Avoid coupling by writing “shy” code and applying the Law… Continue reading I am a Pragmatic Programmer Part 6