Asif Maniar

Software Engineer
posts - 18 , comments - 14 , trackbacks - 0

C#

Tricks and Optimizations for you Sitecore website
When working with Sitecore there are some optimizations/configurations I usually repeat in order to make my app production ready. Following is a small list I have compiled from experience, Sitecore documentation, communicating with Sitecore Engineers etc. This is not supposed to be technically complete and might not be fit for all environments. Simple configurations that can make a difference: 1) Configure Sitecore Caches. This is the most straight forward and sure way of increasing the performance ......

Posted On Wednesday, March 21, 2012 5:18 PM | Comments (0) | Filed Under [ C# ]

A Simple implementation of the Decorator Design Pattern using C#
The main motivation before the decorator pattern is to be able to add data and behavior to objects dynamically without relying on inheritance. A decorator usually conforms to the interface of the component its decorating. Lets see this with an example. Am building a system that calculates the price of a pizza. I can have many toppings and the total price of the pizza is calculated based on what toppings I pick. One way to do this would be to use inheritance and class hierarchies like Pizza, CheesePizza, ......

Posted On Friday, February 10, 2012 4:05 PM | Comments (1) | Filed Under [ C# ]

A Simple implementation of the Proxy Design Pattern using C#
A proxy is an object that can be used to control creation and access of a more complex object thereby deferring the cost of creating it until the time its needed. Below is a simple implementation of the proxy pattern in C#. The ComplexProtectedExpensiveRe... is private to the ProxyContainer and cannot be instantiated by a client. The client creates an instance of the SimpleProxy class which controls its access to the more complex and expensive to create ComplexProtectedExpensiveRe... class. ......

Posted On Tuesday, February 7, 2012 4:02 PM | Comments (0) | Filed Under [ C# ]

Powered by: