Click here to Skip to main content
15,038,466 members

Articles by Vinayaka Krishna Shenoy (Articles: 2, Tip/Tricks: 27)

Articles: 2, Tip/Tricks: 27

RSS Feed

Average article rating: 1.69

Programming Languages
C#
Posted: 30 May 2006   Updated: 30 May 2006   Views: 18,421   Rating: 1.00/5    Votes: 15   Popularity: 1.04
Licence: Not specified      Bookmarked: 9   Downloaded: 620
Please Sign up or sign in to vote.
The exe will split the files acording to the user defined size and also it builds the file from the splitted ones.
SQL
Posted: 17 Jan 2007   Updated: 17 Jan 2007   Views: 24,950   Rating: 2.38/5    Votes: 12   Popularity: 2.56
Licence: Not specified      Bookmarked: 14   Downloaded: 413
Please Sign up or sign in to vote.
This utility will help to generate the DataAccess Objects based on the Connection strring provided at the config file

Average blogs rating:

No blogs have been submitted.

Average tips rating: 3.45

C
Posted: 31 Dec 2009   Updated: 31 Dec 2009   Views: 7,521   Rating: 1.92/5    Votes: 6   Popularity: 1.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
I explored a bit more on Entity framework,during last week of 2009 and here goes my observations on how to extend the Entity Framework functionality if you want to customize the normal/ideal flow of Entity framework execution engine.1) OnContextCreatedBy default a declaration of this...
C#
Posted: 18 Dec 2009   Updated: 23 Dec 2009   Views: 11,010   Rating: 2.07/5    Votes: 5   Popularity: 1.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Introduction...
Posted: 2 Mar 2010   Updated: 2 Mar 2010   Views: 5,270   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 10Tip 10 If the derived classes(or concrete/specialized classes) cant make use of all the functionalities (100% usage) of its base class(though it is a 'is a kind of' relationship among them, then prefer delegation/composition over...
Posted: 10 Mar 2010   Updated: 10 Mar 2010   Views: 10,621   Rating: 3.33/5    Votes: 8   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 11Tip 11Refactoring 'OR' type of conditions - In a method,if we have multiple conditional statements,with the same result. apply this rule.Bad practiceprivate int Method(){ int result = 1; if( condition1) result = 0; if( condition2) ...
Posted: 22 May 2010   Updated: 22 May 2010   Views: 10,911   Rating: 4.17/5    Votes: 6   Popularity: 3.24
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
.Net Performance Tip - 1
Posted: 22 May 2010   Updated: 22 May 2010   Views: 17,061   Rating: 3.00/5    Votes: 8   Popularity: 2.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
.Net Performance tip - 2
Posted: 22 May 2010   Updated: 22 May 2010   Views: 13,850   Rating: 3.60/5    Votes: 8   Popularity: 3.25
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
.Net Performance tip - 3
Posted: 26 Dec 2009   Updated: 26 Dec 2009   Views: 6,680   Rating: 2.46/5    Votes: 6   Popularity: 1.92
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
From past few days i was doing some R & D on the upcoming Entity framework from Microsoft, and i found it was interesting in many ways,The first part which i liked the most is -Querying to the Entity Data Model(EDM) rather than the real data store.At a high level , we have plenty of...
Posted: 21 Dec 2009   Updated: 20 Jan 2010   Views: 44,084   Rating: 2.58/5    Votes: 27   Popularity: 3.70
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
.NET Coding Best Practices - Vinayak's thumb rulesDo not hard code strings/ numerics. Instead of that use constants as shown below.Bad practice int Count; Count = 100; if( Count == 0 ) { // DO something… }Good practice int Count; Count = 100; private...
Posted: 28 Feb 2010   Updated: 28 Feb 2010   Views: 7,440   Rating: 2.71/5    Votes: 11   Popularity: 2.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 2Tip 2Avoid temporary variable declaration, if the variable is just a place holder as shown below.Bad practiceprivate string GetData(){ string temp; temp = expression + ( var1 * var2).ToString();//Some expression which calculate the desired...
Posted: 28 Feb 2010   Updated: 28 Feb 2010   Views: 4,660   Rating: 2.42/5    Votes: 8   Popularity: 2.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 3Tip 3In a class,if the expression is repeating across the methods. Then encapsulate/wrap that with either a Property or Method as shown below.This increases the code reuse,easy to extend and maintainBad practicepublic class A{ private int Var1;...
Posted: 1 Mar 2010   Updated: 1 Mar 2010   Views: 6,930   Rating: 3.12/5    Votes: 7   Popularity: 2.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 6Tip 6 Remove unused variable from the codeBad practiceIn the following code var1 is declared but not used public class A { private int var1; private void Method() { //Some statements... } }Good...
Posted: 1 Mar 2010   Updated: 1 Mar 2010   Views: 5,710   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 7Tip 7Remove unused Methods from code.This helps to achieve highly maintainable codeIn the following snippet function Method1 is declared but not used.Bad practice public class A { private void Method1() { //Some statements......
Posted: 1 Mar 2010   Updated: 1 Mar 2010   Views: 5,080   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 8Tip 8Remove classes/types declared,but not used.Remove namespaces, which are included in code,but not used - This usually happens when we are in process of removing the Classes or types which are not used.I hope this helps!.Regards,-Vinayak
Posted: 28 Feb 2010   Updated: 1 Mar 2010   Views: 9,210   Rating: 2.88/5    Votes: 8   Popularity: 2.60
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 4Tip 4 Based on one of the design principle - SRP( Single Responsibility Principle) There should be only one reason to change or break a classs.Dont mixup more than one functionality in a class.Bad practice Dont have domain and persistence logic in a...
Posted: 2 Mar 2010   Updated: 2 Mar 2010   Views: 6,410   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 9Tip 9If your static method is operating on any entity/type/class,try to move the method to the entity.For eg:Bad practicepublic class Utility{ public static void Method1(Customer cust) { //Some processing on the Entity customer... }...
Posted: 1 Mar 2010   Updated: 6 Mar 2010   Views: 6,810   Rating: 2.75/5    Votes: 8   Popularity: 2.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Refactoring Tips - Tip 5Tip 5Always Programme for interface/abstract than concrete classes, Which will gives the option for extension, loose coupling and plugin.This will also be in line with one of the design principle - LSP(Liskov's substitution Principle) - in simple word it...
Posted: 28 Feb 2010   Updated: 24 Mar 2010   Views: 10,550   Rating: 2.80/5    Votes: 10   Popularity: 2.80
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Hi,I was thinking to wrtite a series of tips on Refactoring exercise from past couple of months.Here goes the result of that exerciseTip 1 Try to declare the variable close to its first value assignment.For eg :Try to avoid this - private void Method(){ int...
Web Development
ASP.NET
Posted: 20 Apr 2010   Updated: 20 Apr 2010   Views: 13,330   Rating: 4.86/5    Votes: 7   Popularity: 4.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
Page Transfer best practices in ASP.NET.Scenario :Inside Try/Catch block, If you want to transfer/Redirect the page to another page - To avoid ThreadAbortException Option 1Use Response.Redirect("Pagetotransfer.aspx",false);OrOption...
Posted: 20 Apr 2010   Updated: 20 Apr 2010   Views: 24,091   Rating: 4.90/5    Votes: 7   Popularity: 4.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
ViewState and Server.Transfer Best practicesScenario : Server.Transfer("destiny.aspx",true); Above statement will cause ViewState is invalid exceptionReason :By default EnableViewStateMac is set to true, and hence on every page life cycle , it tries to validate the value of the...
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 10,190   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
.Net memory tuning
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 19,641   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
Probable leak while using SqlDataReader in ADO.NET
Posted: 6 Aug 2010   Updated: 6 Aug 2010   Views: 12,440   Rating: 4.60/5    Votes: 4   Popularity: 2.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Twist in Performance counters for Connection pool settings
Posted: 6 Aug 2010   Updated: 6 Aug 2010   Views: 13,561   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Scaling options for ASP.NET Sessions
Posted: 23 Aug 2010   Updated: 23 Aug 2010   Views: 13,060   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Best Strategy for deploying ASP.NET application and application Pool
Posted: 23 Aug 2010   Updated: 23 Aug 2010   Views: 15,680   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Entity Framework 4 twist in Complex Type
IIS
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 35,177   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Setting the best value for Application pool Queue length limit

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.

Vinayaka Krishna Shenoy
Architect MindTree Ltd
India India
Motivated achiever who guides organizations in applying technology to business settings, provides added value, and creates project deliverables in a timely manner. An experienced Technical Consultant, have successfully led large project teams of more than 20 people from requirements gathering to implementation and support using C#, .NET ,ADO.NET, ADO.NET Entity Framework,ASP.NET,ASP.NET MVC, WCF and SQL Server.