Category Archives: Tutorial

Code Review will get a lot easier.

If you are working on good development project with a team which you would like to support and maintain over a long period of time then code review is utmost important. No matter how good is your team, code review is required because of various factors.

As you all know, Great Developers is involved in developing SaaS products. We already have some products live and there are many in the queue to be launched. To give our clients the best experience in using these products, we have to ensure that the systems are bug free, fast and reliable. To achieve this we need to do rigorous testing and code review.

Until now, code review was a challenge for me. While browsing or updating the code, even if I found some issues in the code, I used to kinda ignore it. There are various reasons I avoided that for:

  • Taking screenshots
  • Highlighting the code, specifying the issue
  • Emailing the screenshot with the details of lines, projects, file names, etc
  • Following up on the closure, etc

These issues led me to look for a better solution of code review. I started searching and came across couple of tools, one of which is Review Assistant from Devart.
Review Assistant is a Lightweight peer code review tool, add-in for Visual Studio. Automated code inspection handled by code review tools helps to improve coding quality, hone developers’ skills, and ship software with less defects. Review Assistant helps you to benefit from code review with minimum overhead. Whether you employ formal or lightweight review workflows, you will find this Visual Studio add-in most useful for the development workflow.

Below is the list of features, why you would like to use Review Assistant

  • Integration into Visual Studio
  • Simple Review Process
  • Integration with SVN, GIT, TFS
  • Code discussions
  • Formal Reviews
  • Ad-hoc reviews
  • Integration with Code Comparison tools
  • Last, but not the least – It’s free *
Integration with Visual Studio

Take your code review routine with you into your favorite IDE. Review Assistant comes as an add-in for Visual Studio 2010/2012, which allows you to:

  • Forget about switching between two different tools during code revision
  • Inspect peers’ work and provide annotations within the project context, for a simpler revision procedure
  • See other reviewers’ comments directly in the development environment
Simple Review Process

Review Assistant provides a simple, lightweight process for post-commit code reviews:

  • No need to call a review meeting
  • Easy to set up and start using the code review tool straight away
  • Streamlined workflows allow doing your own jobs while reviewing your colleagues’ work
  • Most features are optional, allowing you to apply flexible workflow settings to take up with the code inspection schemes adopted in your company

Free Edition

You can enjoy the benefits of the code inspection tool without paying for it. Start using the tool for free now. During the trail period, you use the full functionality. After the trail period, you’ll be restricted to one project with three users.

It is a wonderful tool, which has made the code review much easier. Once you have setup the tool, is integrates with Visual Studio very nicely. The features which I love this tool for are:

  • Manage Users
  • Integration with SVN, GIT, TFS
  • A central server for storing the review details
  • Context menu to add review
  • With bigger teams, you can assign a reviewer for a chunk of code
  • Easy to follow and get the update on code review
  • Dashboard to summarize and list all reviews
  • No more screenshots, annotations,  long emails for follow ups on code review
  • Better productivity
  • Much better product quality
Here are some of the screenshots of the product. For more details on the product visit Review Assistant .
I hope code review will no longer be boring and avoidable task.

Developing Metro apps for Windows 8

Probably most of you would have seen the preview of Windows 8 – either at BUILD conference or online. For developers it’s time to start looking into what it takes to start developing Windows 8 applications. The apps would be developed in .NET 4.5. It’s not exactly same as .NET 4 and yes there are some breaking changes. You’ll have to port your applications to .NET 4.5.

Here is the link for starting the development – MSDN – .NET Metro style apps

Find all the resource here – Windows Metro style apps

 

 

 

 

 

jQuery – Huge size of calendar widget

Most of you must be aware of jQuery – a Javascript framework. jQuery has an plugin for the UIs – jQueryUI. When you see the Demos on jQueryUI.com the calendar looks so elelgant and right sized. But when you download the size of the calendar is huge which doesn’t look very good. To fix the size of the calendar widget change this:\

.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1 em; }

to this:

.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 0.8em; }

Cheers !!!


SQL Server – Getting Today’s Date only

It is quite common that you want to extract todays’ date component only in sql. The most obvious approach to do is use GETDATE(). This returns today’s date and time.

To just get the date component use this

select CONVERT(datetime, (convert(varchar, getdate(), 101)))

Hope this was a helpful tip for you.