Friday, March 23, 2018

How Search Engine works ? How SEO works ?

History


Last year my friend has deployed his own website on internet and tries to search on Google/yahoo and other search engines but they are unable to enlist the website in it, even Google failed to show the name of his website in auto complete/suggestion textbox too. Everyone wants to see their website name on first search page of Google/yahoo/other search engines when they search.
But it needs some technique that should be apply and used for each webpage that we have deployed on internet.
This technique is known as Search Engine Optimisation. (in simple words, Help search engine to search the things quickly by applying some simple rules on your web pages)

Introduction


Search engines are the heart of the internet. we know there are zillions websites available on internet and still increasing day by day, In such a case search engine plays a very important role to search any content/pages on this ocean.
SEO optimization is not a single cup of tea, it needs a optimization of WebPages and follow different rules while generating them. In my previous article i have explain some of the SEO tips, you may check this article on this link
By following SEO tips it will improve sites' interaction of both users and search engines. This article does not give a magic pill that can show your website always on top page of search engine, but this article tell you about the best practices
that outlined below and will make it easier for search engines to crawl, index and understand your content.

Start with Optimization tips


Every year search make changes in their way of working and try to optimize the search patterns, your site needs to update as well to persist in this race. 
Contents are the most important of your web-page, the contents are the things that collects new users/visitors for you, that make your site/web-page popular, while following SEO tips modifying content with good keywords is most essential

PageTitle- The start of search engine life

The most important part of search engine is Page-title. Search engine begin the search from here only. Your application/website should have good accurate page title. By using title user and search engine should know "what the topic of a particular page is"

         Many times i have seen there is no page title for many Web-pages. Avoid doing that, add Page title to each pages, the Page title should be present under 'HEAD' section of page. When user search any 'term' in Google then if the searched 'term' is exist in title then it will displayed as BOLD in Google search result. Most of the time the Google suggestion list is picked from Page title itself.
see below snap

bold_title


Points to Note


- Search engine optimization affects only organic search results, not paid or "sponsored" results such as Google Ad Words.
Now the question is, what is Paid/sponsored ad words and what is organic search
The search result highlighted with some light color and appear at the top the search page is called as 'Paid/sponsored ad words', and the rest of search result is come under 'Organic Search' result
Below snap will clear your idea

page_section

How search engine works


When search engine find the pages in whole web ocean, Search engine works with the help of the page elements itself, it consider following things while searching.
  • Proper Title of the page which helps people to know more about your article without opening it, we have seen if your title is proper and useful then search engine like Google show them in BOLD in top of the page
  • Keywords that are used in page. The keywords are the words that are put by the user in search engine criteria for searching, so our website should contain proper and popular keywords. Frequency and location of keywords is most important in Web page.
  • Do not try to include 'FAKE' keywords in your website that are not related to your web content otherwise your website may be BLACK listed by search engine. If the keyword only appears once within the body of a page, it will receive a low score for that keyword.
  • You should use your main keyword for each page in the file name, preferably at the beginning of the first sentence. 
  • Links used in page are played important role in searching. Search engine uses 'crawing and indexing' like algorithms for link search, it follows the link and check for the rating of linked page.
  • Broken link, spam link may decrease your website ratings, Google like search engine looks at how many Web pages link to a particular site to determine its relevance
  • Uniqueness of the content is also a noticed by search engine and proper use of Meta tags is also important.
  • One of the noticeable aspect is "How long the Web page has existed on web?", The age of the page is also considered while searching. People create new Web pages every day, and not all of them stick around for long, Google link search engines places more value on pages with an established history.
  • Below snap show you how Google locate a title in possible list
page_search

Google like search engine take use of automated robots for searching like "crawlers" or "spiders", with the help of them it can reach to many billions of interconnected documents. Currently, the major engines typically interpret importance as popularity.
The more popular a site, page or document, the more your rating is. Here in this case search engines have continued to increase users’ satisfaction by using metrics that interpret popularity.

Make our pages popular

  • While designing content of the page you should keep a thing in mind that, pages should primarily designed for users, not for search engines
  • Don't be dishonest with your users or present them different content that are used for search optimization, this is commonly referred to as cloaking.
  • While you make website you should make a clear hierarchy of text and links. Every page should be reachable from at least one static text link.
  • Create a useful, information-rich site, and write pages that clearly and accurately describe your content. 
  • Make sure that your "TITLE" elements and "ALT" attributes are descriptive and accurate.
  • Give rel='nofollows' attributes to every link that you used in your websites, it will stop the search engines to follow the link, it will improve performance.
  • First you need to understand the Use of keywords, it is the pathfinder for websites, You should create descriptive, human friendly URLs. 
  • Bing like search engines recommend the following things to get better rankings in their search engine:
  • You should develop a clean and keyword rich URL structure is in place
  • Make sure that your content is not buried inside rich media like (Adobe Flash Player, JavaScript, Ajax) and you should need to take are that rich media doesn't hide links from crawlers.
  • Create keyword-rich content based on research to match what users are searching for.
  • Always update your website to produce fresh content regularly.
  • Don’t put the text that you want indexed inside images. For example, if you want your company name or address to be indexed, make sure it is not displayed inside a company logo.
All_task

Finally, internet is the big ocean and search engines always try to search for golden fishes in it, lets help it to make a better outcome.

-Happy Searching
KooooL

Friday, March 9, 2018

When to use ASP.NET Webforms and ASP.NET MVC

In this article I have explained, When to use ASP.NET Webforms and ASP.NET MVC. We know what is ASP.NET and what is ASP.NET MVC, but we are confused when to favor which technology

Confused


Last week my friend has started a new web based project in .NET, he asked me In which technology he should go ASP.NET or ASP.NET MVC ? 

Now a days everyone talk about ASP.NET and ASP.NET MVC but if we asked them, when to favor which technology ? all goes confused. There is no clear-cut answer, and rightly so. This article will help you to choose between ASP.NET and MVC depend upon your requirement and tell you Advantages / Disadvantages of ASP.NET MVC. Lets start with it.



ASP.NET:

Basically ASP.NET was developed to improve the speed and performance of classic ASP, Microsoft's ASP.NET, one of the most successful web application development frameworks ever.You can use ASP.NET to fast develop and deploy highly scalable, high-performance web applications in a managed environment

When to use ASP.NET

1. RAD – Rapid Application Development

RAD is the strong point of ASP.NET, ASP.NET does not deal with HTML markup directly, rather it gives set of powerful tools to developer to design and develop web application, compiler then convert it to Markup and show it on web application, so developer does have to take care of internal architecture and can develop application rapidly.

2. Cost

When Cost is matter ASP.NET is really helpful to you. As it is bit old technology and start of the web development phase, maximum developer community is aware of it and develop using ASP.NET, where as MVC is newer than comparing with ASP.NET, so there is cost incurred to development with ASP.NET MVC

3. Stable implementation

ASP.NET Web Forms implementation is now a stable and robust with many years of deployment experience. over the year ASP.NET is upgraded and is now more firm and dependable.

Drawbacks/Limitation of ASP.NET


  • Customization is not possible and easy with built in ASP.NET control set.
  • As ASP.NET create its own markup tags while rendering on browsers which is very much different than actual HTML tags so flexibility among cross browser compatibility and devices are less
  • The generation of each control ID is vary framework to framework, which needs to make changes in scripting as well.
  • maintaining data between post back is additional task for ASP.NET, as it's page life cycle is depend upon ViewState
  • Final web page render size is also an issue for ASP.NET as view state increase each page size.
  • ASPX pages has fixed URL render pattern which will slow down SEO and search engine crawling.
  • ASPX page does not render without its code behind, so there is additional load on web page each time

ASP.NET MVC

I have read somewhere, "MVC framework is not efficient unless you're willing to roll up your sleeves and build your own project specific infrastructure ", I think it is really true, MVC is complex for Oldies and Simple for New projects, ASP.NET MVC is support Test-driven development (TDD) . I have discuss some points about ASP.NET MVC below. which includes When to favor, Advantages and limitations.

 When to use ASP.NET MVC

ASP.NET MVC has very scatter structure so code separation is strong point, No doubt ASP.NET MVC has many great features like Bundling, minification, Parallel Development, Test-driven development ( It actually leads to very short development life cycle), Web API (for building HTTP service), URL Routing Scaffolding.
But there are some facts and things that we need to consider before using ASP.NET MVC, so lets consider some priorities while going with ASP.NET MVC

1. Complex form structure

ASP.NET MVC has more hold on HTML so When you want to develop a complex form structure, you can use it, MVC allows for any number of forms on the page

2. Purpose of website is for public

If you are build website or web application targeting to public like banking or reservation then you need to go for MVC as it has very SEO friendly and lightweight.

3. Separation of concerns

When your concern is code separation you can go for MVC as it has very scattered structure with Model, View and controller, here is very less chances of getting things more complex.

4. Different view device wise

If you are targeting you development towards multiple render devices then go for MVC it offer design flexibility so that same web page can be easily render on desktop browser, mobile and smart phone devices in simple render mode

5. Easy Unit testing

As with the help of MVC we can developed loosely coupled application, it is very easy to test each module independently, Dependency Injection is more useful in such cases

6. Easily blend with other technology

ASP.NET MVC has capacity to easily blend with other technology, jQuery and other JavaScript frameworks can be simply add in ASP.NET MVC

7. Automatic Unit Testing

If you want to go for automatic unit testing then ASP.NET MVC is good for you.

Drawbacks and limitation of ASP.NET MVC

- It is not easy to understand and code, within limited time frame
- ASP.NET structure is very much different from MVC it is Difficult to convert an existing site from ASP.NET to ASP.NET MVC.

Facts of life
  • More often practical conditions are not same as hypothec conditions the choice between ASP.NET and ASP.NET MVC is not a single cup of tea, it is vary from project to project and team to team 
  • If you have very large ASP.NET project then do not go for MVC as it is like to build your project from scratch, it may be leads to time and cost wasting
  • If you want to deploy project targeting more user volume and devices then go with MVC 
  • Friendly URL's for SEO with no viewstate and cleaner HTML is the powerful point which leads MVC to perform faster
Finally, There are Pros and Cons for both ASP.NET and ASP.NET MVC, This article is small attempt to put focus on features point. It helps you to take decision easy between these two. But the final Answer is remain same "it depends".

Suggestion and Queries are always welcome

Thanks
KOOOOL