Improve Ajax Performance

Hi,

To improve the Ajax performance you should install windows script 5.7. This should help you fix the problem some browsers have with the Garbage Collector (GC). Check the following article for more information here. On the blog of Gurav Seth are the links to download windows script 5.7

Building Ajax Controls

In the upcoming weeks i want to describe how you can build your own Ajax Control. In these posts i will describe how a Control should look like, but also why it should be build that way. I will describe for each part of this subject how the Ajax framework will interact with our control. The subjects i want to describe are shown below:

  • Building Ajax controls part I (Control constructor + Prototype pattern + Initialize + Dispose)
  • Building Ajax controls part II (Define properties)
  • Building Ajax controls part III (Define Events)
  • Building Ajax controls part IV (Define Methods)
  • Building Ajax controls part V (Define References)
  • Building Ajax controls part VI (make control serverside available, Scriptdescriptor, Scriptreferences)

Naming convention

I see ( in code) and hear many times developers discussing naming convention. Should this paramater start with a capital character of not? In other words when should i use PascalCasing and when camelCasing? Well it could be confusing when you are talking to different developers with different ideas. Who is saying the right thing? (The discussion when is something right is not part of this post :) ). I am reading a book Framework design guidelines by Krzysztof Cwalina and Brad Abrams and they discuss this issue. I want to show you a table from this book which is very clear which naming convention you can use in which situation:

Identifier Casing Example
Namespace Pascal System.Security
Type Pascal StreamReader
Interface Pascal IEnumerable
Method Pascal public virtual string ToString();
Property Pascal public int Length { get; }
Event Pascal public event EventHandler Exited;
Fields Pascal public static readonly TimeSpan InfiniteTimeout;
Enum value Pascal FileMode{

Append,

}

Parameter Camel public static int ToInt32(string value);

This could be a good start when every developer is using the same naming convention. This will make it easier to read code from another developer, but this is just one piece there is more! This subject is just a paragraph in the book. If you want to know more about naming conventions and programming guidelines you should check the book. It is written very clear and easy to read.

Follow

Get every new post delivered to your Inbox.