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
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
We have very common need of displaying some loading animation while ajax call is going on background. There have been lots of help out there. Here is another repetitive version of it. It should work to any of the application out there. In the above code make following changes Add a JQuery reference to your… Continue reading Quick loading image for all ajax call
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!
Code sample that will help you jump start JQuery. Read the previous post here. All the best for learning JQuery.
Code sample that will help you jump start JQuery. This is Part 1 of 2 part series. Read the next part here.
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/
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
This is Part 7 of 7 part series inspired from the book Pragmatic Programmer, read Part 6 here: Use a Project Glossary: Create and maintain a single source of all the specific terms and vocabulary for a project. Start When You’re Ready: You’ve been building experience all your life. Don’t ignore niggling doubts. Don’t Be a… Continue reading I am a Pragmatic Programmer Part 7
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