Showing posts with label Misc. Show all posts
Showing posts with label Misc. Show all posts
Friday, October 9, 2015

Best way to do code review with GIT

Recently we had a discussion when you should do a code review when using GIT. As a general rule you should do code review often.There are two ways to do code review with GIT.

1) Classic way:

 

We all know that GIT is known for it's feature branch features. So each developer working on some feature should have created feature set. That features branch is accessible to all the peers working on same project. So when developer completes his changes and push to feature branch anybody from his/her peers can checkout branch and perform code review.  The problem with this method is we don't have any records for the code review in source control it self.

2) Integration Way:

 

This is best method for doing code review. As we all know GIT provides pull request feature. So we will have two type of branches one is master branch for project and another feature branches for each developer working on different features of project. So now once a developer completes his feature and feels that its ready to push developer will send a pull request to master branch. Now the person or lead who are managing master branch will perform a review of pull request and either accept pull request and merged into code or if he found a some issue with code he can also reject pull request also with proper comments. So here we can easily perform code review with GIT and all data remains same. Most of the open source project on Github maintained this way only.

Hope you like it. Stay tuned for the more!.
Share:
Sunday, April 5, 2015

Best coding standards checklist for C# and ASP.NET

Before some time I have written a blog post about coding standard Why coding standards are important?. It was appreciated by lots of people and few people asked me whether do you have coding standard checklist or not? So Today, In this blog post I’m going to shared few link for coding standard checklist which I follow.

Aviva C# coding guidelines:

An awesome guideline for the C# 3.0,4.0 and 5.0. It’s very good and open sources. You can find that following link on code plex.

https://csharpguidelines.codeplex.com/

Do Factory do and don’ts for C#:

A great list of do and don’ts of C# coding standards that all we should follow.

http://www.dofactory.com/reference/csharp-coding-standards

Encodo C# Handbook:

It’s having so many coding standard and most of relevant to naming conventions and formatting. You can download that via following link.

http://code.msdn.microsoft.com/encodocsharphandbook/Release/ProjectReleases.aspx?ReleaseId=3352

Microsoft All one code framework:

I have been using this for a while. It’s an awesome library which display best practices how we can write code.

http://1code.codeplex.com/

There are lots others are also available but I think it’s if you follow and practice above mentioned resources your code will be perfect.
Share:
Wednesday, February 4, 2015

Why coding standards are important?

Yesterday, I had a discussion with friend about coding standard are important and why you need it?  So I thought it will be a good idea to write a blog post about it. Followings are some reasons why coding standard are so important.

  • Readability:  coding standard will increase overall code readability means if you follow you coding standard defined other people also know that what you have written. They don’t need to debug the code to know what function this code will perform.
  • Code Style: Every programmer have different style of writing code. So if we don’t have coding standard then Programmer ‘A’ can write variable in camel casing while other  will prefer to use Pascal case. So different modules have different coding styles.Which makes code hard to understand.
  • Code Reviews: Code review is an important part of any software development. If you don’t have a coding standard defined then it will take more time to do code review.
  • Error handling/Exception handling : The another benefits of coding standard is standardized way of handling errors. If you don’t have coding standard defined then each programmer will handle errors in unique way that could create a problem of identification of a bug  in software development .
  • Maintenance: Large enterprise software's will have  long life span. So if there is any enhancement or maintenance work is required with the help of coding standard any people can understand code easily and easily do the some changes.
That’s it. Hope you like it. Stay tune for more!
Share:
Friday, January 24, 2014

How to deal with over smart people

Today, I am going write some thing not technical, As I feel I am doing that for quite a time I should write about it. In today’s competitive world people wants to show their skills to companies and how important they are but some people are becoming over smart people. They always eager to show their smartness and make themselves highlighted. They take credits for task they have not done etc. I personally don’t like this kind of people but sometimes we have to bare with this kind people. So in this blog post, I am going tell different way of dealing with over smart people.
  1. First and foremost thing you can do is you can Ignore them. You don’t need to give attention what they are saying as you know they are acting over smart.
  2. This kind of people believes that they are smartest person on the earth. Don’t argue with that feeling otherwise you will not able to deal with this kind of people. Just ignore it and let it be. Complete your work with them and let them do what they want to do.
  3. Try working with them instead of against openly with them. If you against them,They will never understand your point because they think they are smarter then you.
  4. Maintain a polite and civil manner with them whatever they say. Keep your self calm and compose. Soon they started notices you that you are not in competitions with them they are motivated to treat you nicer then earlier.
  5. Don’t take their over smartness personally.
  6. Always keep backup plan if you involve this kind of person or give them some responsibilities. So in worst condition you will have plan B if Plan A is not successfully implemented by this kind of people and this will likely to happen.
  7. Keep boss aware what you are doing instead of be in competition of with kind of person. It will impact more then anything.
  8. If you think this people are hard to bare minimize the contact with them.
  9. Demonstrate your view that you view everyone as equal not as a superior or inferior.
I hope this will help you dealing with over smart people. Remember following quote always.

“If you think that you're so smart and holy, that means you haven't yet realized that a part of what we experience today...is a result of our stupidity and wickedness in the past.”
― Toba Beta, Master of Stupidity

Hope you like it. Stay tuned for more..
Share:
Thursday, January 23, 2014

Why continuous integration is your friend?

In this post we are going learn benefits of Continuous Integration in Software Developments. Let’s understand what is continuous integration first and then we will discuss about benefits we are having.

What is Continuous Integration in software development?


As per wikipedia “Continuous integration (CI) is the practice, in software engineering, of merging all developer working copies with a shared mainline several times a day. It was first named and proposed as part of extreme programming (XP). Its main aim is to prevent integration problems, referred to as "integration hell" in early descriptions of XP”.

In simple words, Continuous Integration means whenever any developer from the project team commit/checkin code at that time build will be created with the help of build servers and it will be automatically deployed to a specific location with the help of build server.

There are lots of open source and paid options are available for Continuous Integration like Team Foundation Server, Jenkins, TeamCity etc.

You can found a complete comparision of this tools from the following link.
http://en.wikipedia.org/wiki/Comparison_of_Continuous_Integration_Software

Benefits of Continuous Integration:


Followings are benefits of Continuous Integration and Followings are reason why continuous integration is your friend.

1) Automate everything If you don’t have CI then one of the developers needs to get latest/update code in his/her computer then create a build that will waste lot of time on the developer and ultimately we are going to loose developers productive time for this instead of writing code.

2) It will improve quality of code, Whenever any developers commits the code it will create a build and if build is not successful then it will inform all the users/developers of the using that project/build. So now developers will check quality of code regular because otherwise it will create bad impression of this developer on other stack holders of project.

3) Deployment will very easy. Earlier every time we have to deploy to a particular location manually but here stack holders of project don’t need to worry about the deploying things as it will deploy all the things properly.

4) Your code repository will be up to date every time and you don’t have to worry about it.

5) Save lots of times of developers and increase developers productivity. Take an example suppose there are five developers are working on a software project. One of the developer has committed code and another developer has taken latest version from source control at that he/she is facing problem while compile/building project he will notify the developer who has broke the things. So that developer will check and found that he forgot to commit one of the file. So again he will commit things and notify again to all. This will ultimately a productivity lose.

6) QA/Testing team does not have to wait for deployment. So if developer is committed code it will automatically create build and deploy it on specific location there will not be any dependency of development team to test new features.

That’s it. Looking at above reason I must say Continuous Integration is your best friend and ultimately a productivity booster. Stay tuned for more..
Share:
Saturday, September 7, 2013

Project Management National Conference 2013

banners for blogs 3

Project Management Institute of India (www.pmi.org.in) organizing a event for project managers on 27th and 28th September at Gurgaon. It will be a great event for all the aspiring project managers. Last year more then thousand of delegates attended this annual event to reap benefits. This year also I would also like to encourage you to participate and gain knowledge.



Image 01

You should attend this event because..
  • You will get a chance to meet lots of people around country with same position It’s a great way to extend your network.
  • 11 visionary speakers sharing their knowledge including Dr. Shashi Tharoor, Mr. Arjun Maira, Mr. Nandan Nilekani , Swami Sukhabodhananda and others on the same podium.
  • 2 Projects will presented as case studies.
  • 14 paper presentations by experts.
Following is a link from where you can have your registration and get more information
http://pmi.org.in/pmconf2013/?utm_source=blogger&utm_medium=blogs&utm_campaign=p005#


Share:
Tuesday, March 27, 2012

Important Mile stone achieved–I got 4,00,000 visitors for my blog

I have written this blog more than 5 years now and today I got one great news from sitemeter.com that I have achieved 4,00,000 visitors milestone. I would like to take this opportunity to thanks all the my readers for everything. I got nice appreciations from people around me and that’s encourage me to write more blogs.
Following is a screenshot of my blog statistics from sitemeter.com.
Share:
Saturday, August 27, 2011

ILSpy-Alternative of .NET Reflector

Sometimes we need to have decomposer tool or reflector tool for our applications to improve the performance or to know the internals of the assembly we have created. I was using Red Gate .NET Reflector earlier for same as it was free. Now Red Gate has made that tool paid version so I was finding some tools from that I can decompile the stuff. After digging some time on the internet I have found a great tool ILSpy which almost giving same functionalities like .NET Reflector. You can download that tool from following link.

http://wiki.sharpdevelop.net/ilspy.ashx

You will get following features in ILSpy. It is also listed on above page.
  • Assembly browsing
  • IL Disassembly
  • Decompilation to C#
    • Supports lambdas and 'yield return'
    • Shows XML documentation
  • Saving of resources
  • Search for types/methods/properties (substring)
  • Hyperlink-based type/method/property navigation
  • Base/Derived types navigation
  • Navigation history
  • BAML to XAML decompiler
  • Save Assembly as C# Project
  • Find usage of field/method
  • Extensible via plugins (MEF)

Now let’s see how we can use ILSpy for decompiling our application. I have created a very basic console application which will concat string and print name. Here I have intentionally used string concatenation instead of StringBuilder class to show what’s going internally with ILSpy. Following is code for that.

using System;
namespace ThisExample
{
     class Program
     {
          static void Main(string[] args)
          {
              Test test = new Test();
              test.PrintName();
           }
     }
     public class Test
     {
          private string name = "Jalpesh Vadgama";
          public void PrintName()
          {
              name += " vishal vadgama";
              Console.WriteLine(name);
          }
     }
}

Once we are done with code let’s run that application and following will be a output.

Output window for ILSpy-Alternative of .NET Reflector

Let’s check that console application with the ILSpy. Once you double click exe of ILSpy it will look like following.

ILSpy- Alternative of .NET Reflector

Now let’s open our application via File->Open Menu. So it will load our application like following


ClassHirerchay with ILSpy-.NET Reflector Alternative

As you can see in above screenshot It has loaded whole class hierarchy of console application we have just created as we can see Program and Test class directly and on right hand pane it has loaded whole assembly information for this application. You can see that in below image.


AssemblyInformation from ILSpy- Alternative of .NET Reflector

Now once you click on program it will load program information on right pane like following.

RightPane of code from ILSpy-.NET Reflector Alternative

Event it’s provide IL mode also so you can see what’s going on internally on top its having button like this.

You can select IL from ILSpy-Alternative .NET Reflector

Once you select IL you right pane will load IL like following.In that you can see its using concat method

ILRightPane

So you can see its almost providing functionalities which was provided by .NET Reflector. Hope you like it.. stay tuned for more..till then happy programming.

Shout it
kick it on DotNetKicks.com
Share:
Thursday, July 22, 2010

New MSDN Home Page Layout

As Microsoft MVP Microsoft have provided me MSDN Subscription and I was looking at the content of MSDN. I was browsing the India MSDN page but one interesting I have found that there is different page layout for us then India I like the MSDN layout very much It’s categorized in different categorize like desktop,web,cloud and click on each big Icon it will redirect to particular category content. Here is the screenshot for it.

NewMsdnPage

Technorati Tags:
Shout it
Share:
Friday, July 2, 2010

Well, I am an MVP now!! and I am proud of it.

Microsoft has given me biggest surprise of my life. Microsoft has awarded me as Microsoft Most Valuable Professional Award. This is one of the proudest movement of my life. Today i got an email and i could not believe that i have done that.

Mvp

Dear Jalpesh Vadgama,
Congratulations! We are pleased to present you with the 2010 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in Visual C# technical communities during the past year.
The Microsoft MVP Award provides us the unique opportunity to celebrate and honor your significant contributions and say "Thank you for your technical leadership."

It’s all because of the my readers for this blog. Thank you very much once again. Without you all this was not going to happen.

From following link you can find list of all newly announced for 2010.

http://blogs.technet.com/b/southasiamvp/archive/2010/07/01/new-mvps-announced-july-2010.aspx

On this occasion once again i would like to thank Microsoft For recognizing my effort toward community and i would also like to thank each and every people,my organization and community supported me and guide me and encourage me to achieve this.

Technorati Tags: ,,,
Shout it
Share:
Thursday, March 25, 2010

Important milestone achieved 1,50,000 Visit completed for blog

I started blogging for fun but when i involved as blogger i understand power of blogging. From blog we can connect to people directly we can find reactions of our post sometimes good some time harsh comment but it was quite learning experience. On this occasion i thank all the dotnetjaps reader for providing great support keep reading my blog i am going to post lots things and nowadays i am posting everyday something new. Previous three years was great for my career as well as for this blog. I never expect huge response from  reader but it was great and inspiring me to do more and more blogging. Thank you very much readers.

Here are some of the most popular post from the site meter.

  1. Singleton class in C#
  2. How to disable right click in Ms Web Browser Control of VB/C#.NET 2005
  3. gradient background control
  4. How to take Screenshot in C#
  5. Enumeration in C#.NET,VB.NET

I once again thanks all the readers from the bottom of my heart  and keep reading this blog.

Technorati Tags: ,,
Shout it
Share:
Sunday, February 21, 2010

How to import your tweets into Google Buzz.

Social networking is a important feature for any person for professionally ass well as personally. You can stay in touch with your friends,colleague and other peoples thanks to social networking sites. Google Buzz is a counter part of twitter from Google. you can post anything on that and you don’t have limit of 140 characters just like. But now there are lots of social networking site available  like Face book,Twitter,Orkut,LinkedIn and now Google Buzz and updating your profile and other things on every social networking site is a tedious job.So, I decided to synchronize my twitter account into Google Buzz. Adding your twitter account in Google Buzz is very easy. First open your Gmail Account and then click on Buzz it will redirect you to your Google Buzz screen. Then click on connected sites and following skin will appear.

Twitter

Click on add it will ask your twitter name just put your twitter name and that’s it you have done with it. Your tweet will appear in Google Buzz depends on traffic from 1 min to 1 hour.

kick it on DotNetKicks.com
Shout it
Share:
Saturday, January 2, 2010

Happy New Year 2010- From the writer of DotNetJaps

Technorati Tags: ,

I wish happy new year 2010 to all my readers.I know that this blog has been quite from last 1 or 2 month but i was busy with professional end as well as my computer operation system was break so it was long process to get my all data back and having reinstalled all the software and other thing i need but i promise you that i will post all the new latest thing asp.net 4.0,Microsoft SQL Server 2008, Silver light and other latest Microsoft Technologies that I am going explore in this new year so you will going hear at least one post week from this blog.

Once again I am wishing you a very happy and phosphorus new year to all of you.

Shout it
Share:
Friday, July 17, 2009

Photoshop and CSS Tutorials.

I am creating a web template for my forthcoming question answer asp.net mvc site. I need a web 2.0 rich template for my site for that i have search on web and found some great photoshop and css links. Here is collection for that.

Photoshop link:

  1. First is the my link who created design for my blog. http://psdvibe.com/- Its a great resource to learn Photoshop and create professional template. Thanks you for giving me the best template free of charge.
  2. http://www.webdesignbooth.com/32-useful-portable-apps-for-web-designers-and-developers/
  3. http://hv-designs.co.uk- A Great Resource for Photoshop design
  4. http://creativenerds.co.uk/tutorials/70-tutorials-using-photoshop-to-design-a-website/
  5. http://pelfusion.com/
  6. http://bestdesignoptions.com/
  7. http://www.smashingmagazine.com/2009/07/15/clever-png-optimization-techniques/
  8. http://sixrevisions.com/tutorials/web-development-tutorials/coding-a-clean-illustrative-web-design-from-scratch/
  9. http://speckyboy.com/2009/07/06/40-free-and-essential-web-design-and-development-books-from-google/
  10. http://webdesignledger.com
  11. http://sixrevisions.com/
  12. http://photoshoptutorials.ws/
  13. http://www.tutorialized.com/tutorials/Photoshop/1
  14. http://www.absolutecross.com/tutorials/photoshop/
  15. http://www.photoshopsupport.com/tutorials.html

CSS Link:

  1. http://www.freecsstemplates.org/ One of the greatest tutorial i have seen for free.
  2. http://www.free-css-templates.com/
  3. http://www.free-css.com/
  4. http://www.csstemplatesforfree.com/
  5. http://www.westciv.com/style_master/house/
  6. http://www.w3.org/Style/CSS/learning
  7. http://www.jasonbartholme.com/101-css-resources-to-add-to-your-toolbelt-of-awesomeness/
  8. http://speckyboy.com
  9. http://designreviver.com
  10. http://thecssblog.com/tips-and-tricks/image-slicing-and-css-being-smart-with-file-formats/
  11. http://line25.com/articles/15-must-read-articles-for-css-beginners
  12. http://www.smashingmagazine.com/2009/06/25/35-css-lifesavers-for-efficient-web-design/
  13. http://designreviver.com/tips/13-training-principles-of-css-everyone-should-know/
  14. http://arbent.net/blog/40-outstanding-css-techniques-and-tutorials

Happy designing…

Share:
Sunday, July 12, 2009

Wave.Google.com –A new communication tool.

Google wave is a new communication and sharing tool coming this year. With wave people can do lots of this things in a single browser like communication,videos,map link sharing, rich formatted text etc.

You can have a group chat and any participant can reply anywhere in message. edit content and add participant at any point any time.

You can also do lots of things like created gadgets thanks to wave api available on wave.Google.com.wave.Google.com is having key technologies like natural language processing, Real time conversation etc. Here is the some video for that.

Natural Language Processing:

Another one live collaborative editing.

If you want to play with wave google api then here is the link for that.

http://code.google.com/apis/wave/

And here is the Google developer preview video.

Happy surfing…

Share:
Thursday, May 28, 2009

My blogs posts are appearing on Microsoft TechEd

Its a great honor to be part of the Microsoft TechNet and TechEd community and i have found that my blog entries are also appearing on the TechNet sites. So thanks Microsoft and TechEd editors for considering my post in TechEd blogs.

Here is link for TechEd blogs.

http://www.msteched.com/online/blogs.aspx

Share:
Tuesday, January 13, 2009

Happy New Year 2009

Hello Guys,

I am jalpesh vadgama wishing you a very happy and healthy new year ahead. Sorry i was busy with my projects so not able to post anything related to dot net. Now i am back with the all the things and promise to be regular post. If you want to listen anything from me then please post comment.

Last year was hectic to me as lots of things are going on now my house is also shifted and i have broadband connection at my home. We can have conservation regularly.
Share:
Friday, February 15, 2008

Creating Web Services in a Class Library project

When you are developing a plug in or add in for a software some time you have a requirement for developing webservice hosting in DLL. I have found a great link which describes all the things.

here is the link..

http://www.codeproject.com/KB/aspnet/wsinaclasslibrary.aspx

Share:

Sharepoint blogs

I have found very good link for share point development. It has very good blogs that can can be very useful for share point developers.

Here is the link

http://www.sharepointblogs.com/

Share:

Regular Expression Library

Regular expression is hottest technology nowdays. It saves lots of time of development. In asp.net we can use regular expression in regular expression as regular expression validation control.

I have found the very good resource of ready made regular expression.

Here is the link for that.

http://regexlib.com/Default.aspx

The RegExLib.com, the Internet's first Regular Expression Library. Currently it has indexed 1974 expressions from 1203 contributors around the world.

Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews