Posted by aravinda
Thursday, July 14, 2011 4:07:00 PM
The operator '??' is called null-coalescing operator, which is used to define a default value for a nullable value types as well as reference types.
It is useful when we need to assign a nullable variable a non-nullable variable. If we do not ...
read more
Posted by aravinda
Tuesday, February 08, 2011 3:47:00 PM
SOLID are design principles when applied together intends to make it more likely that a programmer will create a system that is easy to maintain and extend over time.
S - Single responsibility – A class should have only one reason to...
read more
Posted by aravinda
Monday, January 31, 2011 6:22:00 PM
YAGNI Principle:
"You ain't gonna need it" (acronym: YAGNI) is the principle in extreme programming that programmers should not add functionality until it is necessary. Conversely you should not write a test that drives you to develop code...
read more
Posted by aravinda
Wednesday, January 26, 2011 7:13:00 PM
MSMQ
Service Broker Queue
Deployment
MSMQ is a Windows component.
MSMQ requires deployment of MSMQ on the client (part of OS, but optional install).
SSB is a...
read more
Posted by aravinda
Monday, January 10, 2011 5:06:00 PM
High Availability. Service Broker is built into the database, so the database high availability and disaster recoverability solution you already have implemented will automatically pick up your messaging solution too. Your cluster or database ...
read more
Posted by aravinda
Sunday, December 19, 2010 7:25:55 AM
Cookies and Session State
When a user navigates to your site, the server establishes a unique session for that user that lasts for the duration of the user's visit. For each session, ASP.NET maintains session state information where...
read more
Posted by aravinda
Monday, December 13, 2010 8:55:00 PM
While testing, you can have emails sent to a folder on your computer instead of an SMTP server. Put this in your web.config:
<system.net>
<mailSettings>
<smtp...
read more
Posted by aravinda
Friday, December 10, 2010 7:53:00 PM
Log and identify any repeat hitters.
Put the IPs into an in-memory LRU counting hash (increment and push to top every time an IP comes back). Add heuristics based on reverse IP info, activity, image/js/cookie downloads. Scale your response by ...
read more
Posted by aravinda
Wednesday, December 08, 2010 7:34:00 PM
Some Tips for enforcing security for Web Services
Have request signatures to include features like incorporating a timestamp of request which will help guard against both accidental and malicious request replaying.
Use HTTP Basic...
read more
Posted by aravinda
Sunday, December 05, 2010 6:45:00 PM
Use Tools like Red Gate's SQL Prompt,ssmstoolspack( http://www.ssmstoolspack.com/Main.aspx ) and SQL Inform free (online) tool for formatting long procedures.
Use Key board shortcuts
F5 or Ctrl + E or Alt + x - execute TSQL...
read more