Click here to Skip to main content
11,415,390 members (85,130 online)

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

Articles: 2, Tip/Tricks: 27

RSS Feed

Average article rating: 1.64

C#
General
Posted: 31 May 2006   Updated: 31 May 2006   Views: 15,030   Rating: 1.29/5    Votes: 15   Popularity: 1.51
Licence: Not specified      Bookmarked: 9   Downloaded: 556
The exe will split the files acording to the user defined size and also it builds the file from the splitted ones.
Windows API
General
Posted: 17 Jan 2007   Updated: 17 Jan 2007   Views: 19,650   Rating: 2.00/5    Votes: 12   Popularity: 2.16
Licence: Not specified      Bookmarked: 14   Downloaded: 336
This utility will help to generate the DataAccess Objects based on the Connection strring provided at the config file
No blogs have been submitted.

Average tips rating: 3.48

C#
General
Posted: 18 Dec 2009   Updated: 23 Dec 2009   Views: 7,240   Rating: 2.07/5    Votes: 5   Popularity: 1.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Introduction...
Programming Tips
General
Posted: 2 Mar 2010   Updated: 2 Mar 2010   Views: 2,510   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 4,320   Rating: 4.00/5    Votes: 7   Popularity: 3.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 20 Apr 2010   Updated: 20 Apr 2010   Views: 8,510   Rating: 4.86/5    Votes: 7   Popularity: 4.08
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
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: 14,750   Rating: 4.90/5    Votes: 7   Popularity: 4.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
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: 22 May 2010   Updated: 22 May 2010   Views: 5,240   Rating: 4.17/5    Votes: 6   Popularity: 3.24
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
.Net Performance Tip - 1
Posted: 22 May 2010   Updated: 22 May 2010   Views: 8,370   Rating: 3.00/5    Votes: 8   Popularity: 2.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
.Net Performance tip - 2
Posted: 22 May 2010   Updated: 22 May 2010   Views: 5,550   Rating: 3.60/5    Votes: 8   Popularity: 2.94
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
.Net Performance tip - 3
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 12,230   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Setting the best value for Application pool Queue length limit
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 5,040   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
.Net memory tuning
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 10,930   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Probable leak while using SqlDataReader in ADO.NET
Posted: 6 Aug 2010   Updated: 6 Aug 2010   Views: 6,960   Rating: 4.60/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Twist in Performance counters for Connection pool settings
Posted: 6 Aug 2010   Updated: 6 Aug 2010   Views: 7,140   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Scaling options for ASP.NET Sessions
Posted: 23 Aug 2010   Updated: 23 Aug 2010   Views: 7,400   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Best Strategy for deploying ASP.NET application and application Pool
Posted: 23 Aug 2010   Updated: 23 Aug 2010   Views: 10,820   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Entity Framework 4 twist in Complex Type
Uncategorised Quick Answers
General
Posted: 26 Dec 2009   Updated: 26 Dec 2009   Views: 3,080   Rating: 2.46/5    Votes: 6   Popularity: 1.75
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
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: 31 Dec 2009   Updated: 31 Dec 2009   Views: 3,870   Rating: 1.92/5    Votes: 6   Popularity: 1.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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...
Posted: 21 Dec 2009   Updated: 20 Jan 2010   Views: 16,870   Rating: 2.88/5    Votes: 25   Popularity: 3.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 0
.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: 2,740   Rating: 2.71/5    Votes: 11   Popularity: 2.70
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 1,960   Rating: 2.42/5    Votes: 8   Popularity: 2.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 3,850   Rating: 3.12/5    Votes: 7   Popularity: 2.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 2,370   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 2,270   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 4,010   Rating: 2.88/5    Votes: 8   Popularity: 2.60
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 2,890   Rating: 2.33/5    Votes: 5   Popularity: 1.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 3,250   Rating: 2.75/5    Votes: 8   Popularity: 2.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 6,820   Rating: 2.80/5    Votes: 10   Popularity: 2.80
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
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...
No reference articles 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.


Advertise | Privacy | Mobile
Web01 | 2.8.150427.4 | Last Updated 28 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid