Thursday, October 11, 2012

Basics and Fundamentals in .NET


Some Concepts you must know in Web

Cookie-less sessions
  • Some users disable cookies in their browser. If SessionID is stored in cookies, it will not work.
  • Cookie-less sessions embed the SessionID in the URL instead. (not the session values itself J )
  • In some cases and countries, it's even illegal for an application to require cookies to work!
  •  is very easy to set in web.config
<sessionState cookieless="true" />

Sliding expiration
  • Cache will expire after a given time (for eg: 20 minutes) if no request is made within that 20 minutes
  • If a request is made within the expiration time (20 minutes) it will reset  the expiry time for another 20 minutes 

string sDescription = "This product is very useful for blah blah....";
//Sliding Expiration
Cache.Insert("SlidingExpiration", sDescription, null,
System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(1));



Work in Progress...

CSS Sprites


ControlState

HTTPHandler
HTTPModule
eTags

Some concepts you must know in Garbage Collection
Finalize and Dispose
Generations in Garbage Collection
Finalization Queue

Some concepts you must know in Framework/C#
Static Constructors
Shadowing
MulticastDelegates
Anonymous methods
Anonymous types
Extension methods
Lamda Expressions


Patterns and Principles
Inversion of Control
SOLID
Singleton
Facade
Factory vs Abstract Factory

SQL
Having and Where clause
Common Table Expressions
Covering Index
Isolation Levels
candidate key, alternate key
SP Best practices

1 comment: