Friday, August 27, 2010

Zoom it


ShareThis

Friday, August 13, 2010

Different Design Patterns


ShareThis

Creational Patterns

Abstract Factory

  Creates an instance of several families of classes

Builder

  Separates object construction from its representation

Factory Method

  Creates an instance of several derived classes

Prototype

  A fully initialized instance to be copied or cloned

Singleton

  A class of which only a single instance can exist

Structural Patterns

Adapter

  Match interfaces of different classes

Bridge

  Separates an object’s interface from its implementation

Composite

  A tree structure of simple and composite objects

Decorator

  Add responsibilities to objects dynamically

Facade

  A single class that represents an entire subsystem

Flyweight

  A fine-grained instance used for efficient sharing

Proxy

  An object representing another object

Behavioral Patterns

Chain of Resp.

  A way of passing a request between a chain of objects

Command

  Encapsulate a command request as an object

Interpreter

  A way to include language elements in a program

Iterator

  Sequentially access the elements of a collection

Mediator

  Defines simplified communication between classes

Memento

  Capture and restore an object's internal state

Observer

  A way of notifying change to a number of classes

State

  Alter an object's behavior when its state changes

Strategy

  Encapsulates an algorithm inside a class

Template Method

  Defer the exact steps of an algorithm to a subclass

Visitor

  Defines a new operation to a class without change

Tuesday, August 10, 2010

How to drive more traffic to your website?


ShareThis

How to drive more traffic to your website?

traffic

Here are five tips to help you drive more traffic to your site using SMO techniques:

1. Increase the number of links to your site. A website's popularity rating continues to be influenced by the number of links it gains from other sites. Network to increase that number—and boost your perceived popularity.

2. Apply bookmarking and tagging. Incorporate buttons for users like "add to delicious" (or other bookmarking sites) to encourage bookmarking. You can also include relevant tags to your site's pages at bookmarking sites across the Web.

3. Create inbound links. Create new links on your site to the blogs or sites that contain back links to your site. The back-and-forth action should increase its visibility.

4. Make your content travel. Include "portable" content at your site such as PDFs, video, and audio files. Send links to them to your list, and offer them to sites related to your niche.

5. Allow others to use your content. Use RSS feeds to syndicate your content, so that others can use it for their benefit—and drive more traffic to your site in the process.

The Po!nt: Add more social to your SEO. As social sites proliferate, your site could gain a boost in popularity by linking up and networking with fans in communities across the Internet. Apply a few SMO techniques to your site SEO and see what happens!

Wednesday, August 4, 2010

Entity Framework 4


ShareThis

Scott Guthrie has written a nice post on his blog on Entity Framework. I am sharing an extract of his post.

Found his original Post here: http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx

.NET 4 ships with a much improved version of Entity Framework (EF) – a data access library that lives in the System.Data.Entity namespace.

When Entity Framework was first introduced with .NET 3.5 SP1, developers provided a lot of feedback on things they thought were incomplete with that first release.  The SQL team did a good job of listening to this feedback, and really focused the EF that ships with .NET 4 on addressing it. 

Some of the big improvements in EF4 include:

  • POCO Support: You can now define entities without requiring base classes or data persistence attributes.
  • Lazy Loading Support: You can now load sub-objects of a model on demand instead of loading them up front.
  • N-Tier Support and Self-Tracking Entities: Handle scenarios where entities flow across tiers or stateless web calls.
  • Better SQL Generation and SPROC support: EF4 executes better SQL, and includes better integration with SPROCs
  • Automatic Pluralization Support: EF4 includes automatic pluralization support of tables (e.g. Categories->Category).
  • Improved Testability: EF4’s object context can now be more easily faked using interfaces.
  • Improved LINQ Operator Support: EF4 now offers full support for LINQ operators.

Visual Studio 2010 also includes much richer EF designer and tooling support. The EF designer in VS 2010 supports both a “database first” development style – where you construct your model layer on a design surface from an existing database.  It also supports a “model first” development style – where you first define your model layer using the design surface, and can then use it to generate database schema from it.

Code-First Development with EF

In addition to supporting a designer-based development workflow, EF4 also enables a more code-centric option which we call “code first development”.  Code-First Development enables a pretty sweet development workflow.  It enables you to:

  • Develop without ever having to open a designer or define an XML mapping file
  • Define your model objects by simply writing “plain old classes” with no base classes required
  • Use a “convention over configuration” approach that enables database persistence without explicitly configuring anything
  • Optionally override the convention-based persistence and use a fluent code API to fully customize the persistence mapping

EF’s “code first development” support is currently enabled with a separate download that runs on top of the core EF built-into .NET 4.  CTP4 of this “code-first” library shipped this week and can be downloaded here

It works with VS 2010, and you can use it with any .NET 4 project (including both ASP.NET Web Forms and ASP.NET MVC).

 

Found his original Post here: http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx