Monday, May 18, 2009

A Complete URL Rewriting Solution for ASP.NET 2.0

by Gaidar Magdanurov

This article describes a complete solution for URL rewriting in ASP.NET 2.0. The solution uses regular expressions to specify rewriting rules and resolves possible difficulties with postback from pages accessed via virtual URLs.

Why use URL rewriting?
The two main reasons to incorporate URL rewriting capabilities into your ASP.NET applications are usability and maintainability.

Usability
It is well-known that users of web applications prefer short, neat URLs to monstrous addresses packed with difficult to comprehend query string parameters. From time to time, being able to remember and type in a concise URL is less time-consuming than adding the page to a browser's favorites only to access later. Again, when access to a browser's favorites is unavailable, it can be more convenient to type in the URL of a page on the browser address bar, without having to remember a few keywords and type them into a search engine in order to find the page.

Compare the following two addresses and decide which one you like more:

(1) http://www.somebloghost.com/Blogs/Posts.aspx?Year=2006&Month=12&Day=10
(2) http://www. somebloghost.com/Blogs/2006/12/10/

The first URL contains query string parameters to encode the date for which some blog engines should show available postings. The second URL contains this information in the address, giving the user a clear idea of what he or she is going to see. The second address also allows the user to hack the URL to see all postings available in December, simply by removing the text encoding the day '10': http://www.somehost.com/Blogs/2006/12/.

Maintainability
In large web applications, it is common for developers to move pages from one directory to another. Let us suppose that support information was initially available at http://www.somebloghost.com/Info/Copyright.aspx and http://www.somebloghost.com/Support/Contacts.aspx, but at a later date the developers moved the Copyright.aspx and Contacts.aspx pages to a new folder called Help. Users who have bookmarked the old URLs need to be redirected to the new location. This issue can be resolved by adding simple dummy pages containing calls to Response.Redirect(new location). However, what if there are hundreds of moved pages all over the application directory? The web project will soon contain too many useless pages that have the sole purpose of redirecting users to a new location.

Enter URL rewriting, which allows a developer to move pages between virtual directories just by editing a configuration file. In this way, the developer can separate the physical structure of the website from the logical structure available to users via URLs.

Native URL mapping in ASP.NET 2.0
ASP.NET 2.0 provides an out-of-the-box solution for mapping static URLs within a web application. It is possible to map old URLs to new ones in web.config without writing any lines of code. To use URL mapping, just create a new urlMappings section within the system.web section of your web.config file and add the required mappings (the path ~/ points to the root directory of the web application):






Thus, if a user types http://www.somebloghost.com/Support/Contacts.aspx, he can then see the page located at http://www.somebloghost.com/Help/Contacts.aspx, without even knowing the page had been moved.

This solution is fine if you have only two pages that have been moved to other locations, but it is completely unsuitable where there are dozens of re-located pages, or where a really neat URL needs to be created.

Another possible disadvantage of the native URL mapping technique is that if the page Contacts.aspx contains elements initiating postback to the server (which is most probable), then the user will be surprised that the URL http://www.somebloghost.com/Support/Contacts.aspx changes to http://www.somebloghost.com/Help/Contacts.aspx. This happens because the ASP.NET engine fills the action attribute of the form HTML tag with the actual path to a page. So the form renders like this:

action="http://www.simple-talk.com/Help/Contacts.aspx" id="formTest">


Thus, URL mapping available in ASP.NET 2.0 is almost always useless. It would be much better to be able to specify a set of similar URLs in one mapping rule. The best solution is to use Regular Expressions (for overview see Wikipedia and for implementation in .NET see MSDN), but an ASP.NET 2.0 mapping does not support regular expressions. We therefore need to develop a different solution to built-in URL mapping.

The URL rewriting module
The best way to implement a URL rewriting solution is to create reusable and easily configurable modules, so the obvious decision is to create an HTTP Module (for details on HTTP Modules see MSDN Magazine) and implement it as an individual assembly. To make this assembly as easy to use as possible, we need to implement the ability to configure the rewrite engine and specify rules in a web.config file.

During the development process we need to be able to turn the rewriting module on or off (for example if you have a bug that is difficult to catch, and which may have been caused by incorrect rewriting rules). There should, therefore, be an option in the rewriting module configuration section in web.config to turn the module on or off. So, a sample configuration section within web.config can go like this:


true





This means that all requests that run like: http://localhost/Web/2006/12/10/ should be internally redirected to the page Posts.aspx with query string parameters.

Please note that web.config is a well-formed XML file, and it is prohibited to use the symbol & in attribute value strings. In this case, you should use & instead in the destination attribute of the rule element.

To use the rewriteModule section in the web.config file, you need to register a section name and a section handler for this section. To do this, add a configSections section to web.config:







This means you may use the following section below the configSections section:



true






Another thing we have to bear in mind during the development of the rewriting module is that it should be possible to use 'virtual' URLs with query string parameters, as shown in the following: http://www.somebloghost.com/2006/12/10/?Sort=Desc&SortBy=Date. Thus we have to develop a solution that can detect parameters passed via query string and also via virtual URL in our web application.

So, let’s start by building a new Class Library. We need to add a reference to the System.Web assembly, as we want this library to be used within an ASP.NET application and we also want to implement some web-specific functions at the same time. If we want our module to be able to read web.config, we need to add a reference to the System.Configuration assembly.

Handling the configuration section
To be able to read the configuration settings specified in web.config, we have to create a class that implements the IConfigurationSectionHandler interface (see MSDN for details). This can be seen below:

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;using System.Web;
using System.Xml;
namespace RewriteModule
{
public class RewriteModuleSectionHandler : IConfigurationSectionHandler
{
private XmlNode _XmlSection;
private string _RewriteBase;
private bool _RewriteOn;
public XmlNode XmlSection
{
get { return _XmlSection; }
}
public string RewriteBase
{
get { return _RewriteBase; }
}
public bool RewriteOn
{
get { return _RewriteOn; }
}
public object Create(object parent,object configContext,System.Xml.XmlNodesection)
{
// set base path for rewriting module to application root
_RewriteBase = HttpContext.Current.Request.ApplicationPath + "/";
// process configuration section from web.config
try
{
_XmlSection = section;
_RewriteOn = Convert.ToBoolean(section.SelectSingleNod("rewriteOn").InnerText);
}
catch (Exception ex)
{
throw (new Exception("Error while processing RewriteModule configuration section.", ex));
}
return this;
}
}
}

The Class RewriteModuleSectionHandler will be initialized by calling the Create method with the rewriteModule section of web.config passed as XmlNode. The SelectSingleNode method of the XmlNode class is used to return values for module settings.

Using parameters from rewritten URL
When handling virtual URLS such as http://www. somebloghost.com/Blogs/gaidar/?Sort=Asc (that is, a virtual URL with query string parameters), it is important that you clearly distinguish parameters that were passed via a query string from parameters that were passed as virtual directories. Using the rewriting rules specified below:



you can use the following URL:

http://www. somebloghost.com/gaidar/?Folder=Blogs

and the result will be the same as if you used this URL:

http://www. somebloghost.com/Blogs/gaidar/

To resolve this issue, we have to create some kind of wrapper for 'virtual path parameters'. This could be a collection with a static method to access the current parameters set:

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;using System.Web;
namespace RewriteModule
{
public class RewriteContext
{
// returns actual RewriteContext instance for current request
public static RewriteContext Current
{
get
{
// Look for RewriteContext instance in current HttpContext. If there is no RewriteContextInfo item then this means that rewrite module is turned off
if(HttpContext.Current.Items.Contains("RewriteContextInfo")) return (RewriteContext)
HttpContext.Current.Items["RewriteContextInfo"]; else
return new RewriteContext(); } } public RewriteContext() { _Params = new NameValueCollection(); _InitialUrl = String.Empty; } public RewriteContext(NameValueCollection param, string url) { _InitialUrl = url; _Params = new NameValueCollection(param); } private NameValueCollection _Params; public NameValueCollection Params { get { return _Params; } set { _Params = value; } } private string _InitialUrl; public string InitialUrl { get { return _InitialUrl; } set { _InitialUrl = value; } } }}
You can see from the above that it is possible to access 'virtual path parameters' via the RewriteContext.Current collection and be sure that those parameters were specified in the URL as virtual directories or pages names, and not as query string parameters.

Wednesday, May 13, 2009

10 tips to go from a beginner to intermediate developer

#1: Learn another language
It doesn’t matter which language you learn, but learning another language (regardless of how many you already know) will make you a better developer. Even better is to learn one that is significantly different from what you already use on a regular basis. In other words, if you are a C# developer, learning VB.NET or Java will not help you as much as learning Ruby or Groovy.

And when I say “learn another language,” I mean really learn it. Learning a language consists of three realms of knowledge: the syntax, the built-in operators and libraries, and “how to use it.” The first two are easy; I think that an experienced developer can pick up enough of a language’s syntax to maintain code in 30 minutes to a few hours depending upon the language. The operators and libraries are just a matter of slowly accumulating knowledge and being willing to check reference materials until you memorize what you need to know. But it’s the third item — “how to use it” — that can only be learned over months of working with a language and that’s where the real magic happens. I suggest doing a project that is well suited for that language and doing it in that language’s style.

Truly learn another language, and I promise that your abilities as a developer will start to blossom.

#2: Learn advanced search techniques, tactics, and strategies
More and more, being a good developer is not just about your skill, but your skill at finding information. Simply put, modern languages and development frameworks are too large for most people to remember much of them. As a result, your ability to get work done is often dependent upon your ability to perform research. Unfortunately, knowing how to find accurate, high-quality information is more than just heading to TechRepublic for the answer or typing a few words into your search engine of choice.

“Techniques,” “tactics,” and “strategies” may sound like synonyms, but they are not. The techniques you need to learn are the advanced search systems of your favorite search engine; you need to learn things such as the Boolean operators, how to filter results (negative keywords, domain restrictions, etc.), what role word order plays, and more. So essentially, RTFM.

You should learn tactics such as knowing how to approach any particular search and knowing what you should you actually look for. Errors are easy — just look for the error code — but keyword selection on many searches is much more difficult.

With regard to strategies, you need to learn things such as what search engines to use (hint: general purpose search engines are not always the right answer), which sites to visit before going to a general purpose search engine, and even which message boards to post to for help.

#3: Help others
Teaching others is invariably one of the best ways to learn anything. It is understandable to think that you don’t have much to offer because you are relatively new to the development field. That’s nonsense. Remember, everything you know you learned from someone or somewhere; so try being the someone that another person learns from. Spend a few minutes a day trying to answer the questions on TechRepublic or another site as best you can. You can also learn a lot by reading other members’ answers.

#4: Be patient and keep practicing
Research shows that it takes “about ten years, or ten to twenty thousand hours of deliberate practice” to become an “expert.” That’s a lot of time. Furthermore, becoming an expert does not always mean doing the same task for 10 years; it often means doing a wide variety of tasks within a particular domain for 10 years. It will take a lot of time and energy to become an “expert”; working as a developer for a few years is not enough. Want to become a senior developer in your early 30s? Either start your education/training sooner or be willing to do a lot of work, reading, and practicing in your spare time. I started programming in high school, and I devoted a lot of off-hours to keeping up with the industry, learning new skills, and so on. As a result, I hit the intermediate and senior level developer positions significantly earlier in my career than most of my peers, which translates to an awful lot of money over time.

#5: Leave your dogmas at the door
Time for some brutal honesty: Beginner developers probably don’t know enough to state that there is One Best Way of doing something. It’s fine to respect the opinion of a friend or an authority figure, but until you are more experienced, don’t claim their opinions as your own. The simple fact is, if you don’t know enough to figure these things out on your own, what makes you think that you know which “expert” is right? I know this sounds really harsh, but please believe me; I have met far too many budding developers who had their careers or their growth set back years because they got hung up on some foolish piece of advice or followed some “expert” who really didn’t know what they were talking about. A great example of this is the abuse of object-oriented architecture. For example, many beginners read some information about OO, and suddenly the class diagrams to their simple applications look like the Eiffel Tower.

#6: Learn a few advanced ideas in-depth
Much of what goes into being an intermediate developer is having a few concepts that you are really good at working with in code. For me, it is multithreading/parallelism, regular expressions, and how to leverage dynamic languages (and the last two are fading as I get farther away from my Perl history). How did this happen? Multithreading and parallel processing came about because I read articles on it, thought it sounded interesting, and figured it out on my own; I keep writing apps that use those techniques. I had a job that used a ton of regular expressions in Perl. Also, I ended up writing my own e-commerce engine with a template processing engine and built-in database system; then I spent nearly two years working on it.

Find something that has you really hooked. It might be image manipulation or maybe database design or whatever. Even if you’re an entry-level developer over all, try to become an expert in at least one area of focus. This will get you into that intermediate level quite quickly, and once there, you will be halfway to expert.

#7: Learn the basic theories underlying your field
It’s one thing to write “Hello World,” but it’s another to understand how the words appear on the screen. By learning the “groundwork” that supports the work you do, you will become much better at it. Why? Because you will understand why things work the way they do, what might be wrong when things are broken, and so on. You will become better by learning what happens at a lower level than your work.

If you are a Web developer, read the HTTP RFC and the HTML spec. If you use a code generator, really look at the code it generates; if you use database tools, take a look at the underlying SQL it generates; and so on.

#8: Look at senior developers’ code
At your job, take a look at the code the senior developers are writing and ask how and why things were done a particular way. If you can, check out open source projects as well. Even if other developers don’t have the best coding habits, you’ll learn a lot about how code is written. Be careful not to pick up bad habits along the way. The idea here isn’t to just blindly imitate what other developers are doing; it’s to get an idea of what works and what makes sense and try to imitate it.

#9: Learn good habits
Nothing marks an inexperienced coder like stupid variable names, poor indentation habits, and other signs of being sloppy. All too often, a developer learned how to program without being taught the less interesting details such as code formatting — and it shows. Even though learning these things will not always make your code better or you a better developer, it will ensure that you are not viewed as an entry-level developer by your peers. Even if someone is a senior developer, when variables are named after their 97 cats or their functions are called “doSomething(),” they look like they do not know what they are doing, and it makes their code harder to maintain in the process.

#10: Have fun
Want to be stuck on the career treadmill? Hate your job. What it takes to move up in this business is not merely dogged determination to bring home an ever growing paycheck but an actual enjoyment of your work. If you do not like your work and you are a junior developer, what makes you think that being an intermediate or senior developer will be any better? Change jobs or change careers. On the other hand, if you love the work you are doing, great! I guarantee that you can become a better developer if you keep at it.

Source : http://blogs.techrepublic.com.com/programming-and-development/?p=1139&tag=nl.e055

What if I like my Desktop Messy?

Windows XP users are accustomed to having the balloon pop up that says” There are unused icons on your desktop”, right? But what if I like my desktop the way it is and don't want to be bothered with these messages anymore?

In that case, I bear good news, everyone! You can turn it off!

Here's how:

Right click on the desktop and choose “Properties”. In the next window click the desktop tab at the top and then the “Customize Desktop” button.

Under the “General” tab you'll see Desktop Cleanup towards the bottom of the window. Just uncheck the “Run Desktop Cleanup Wizard every 60 days” selection and click OK. No fuss, no muss, and your Windows XP experience just got a little less annoying!

Thanks : Andrew
http://www.worldstart.com/tips/tips.php/turn-off-desktop-cleanup-warning-xp

Monday, May 11, 2009

How can I make my blog load faster?

The speed at which your blog loads is critical to attracting more readers to your blog. If your blog takes a long time to load, many readers may leave your blog before they have the chance to read it. Here are a few tips and tricks that will help your blog load faster and attract more users:

Posts
Your blog's load time can be affected by the number of posts you display on your main page. You can easily edit the number of posts displayed of the main page from the Settings | Formatting tab. You can then select the number of posts you want to display on the main page. We recommend displaying 10 or fewer posts on the main page.

Third Party JavaScript and Links
For optimal blog load speed, we recommend using Google/Blogger widgets, JavaScipt and links. However, if you need to use third party JavaScipt and links, your blog will load much faster if you put all JavaScript at the bottom of your blog. If you have third party JavaScript and links in your sidebar, put them in at the bottom of the sidebar.

Google Help › Blogger Help › Publish and Archive › Posting & Editing › Fix a Problem › How can I make my blog load faster?

How can I make my blog load faster?The speed at which your blog loads is critical to attracting more readers to your blog. If your blog takes a long time to load, many readers may leave your blog before they have the chance to read it. Here are a few tips and tricks that will help your blog load faster and attract more users:

Posts
Your blog's load time can be affected by the number of posts you display on your main page. You can easily edit the number of posts displayed of the main page from the Settings | Formatting tab. You can then select the number of posts you want to display on the main page. We recommend displaying 10 or fewer posts on the main page.

Third Party JavaScript and Links
For optimal blog load speed, we recommend using Google/Blogger widgets, JavaScipt and links. However, if you need to use third party JavaScipt and links, your blog will load much faster if you put all JavaScript at the bottom of your blog. If you have third party JavaScript and links in your sidebar, put them in at the bottom of the sidebar.

Images and Media
The more images, videos and other multi-media you have on your blog the longer it will take to load. However, images and other multimedia are important to attracting users to your blog, so it is important to optimize the load speed of your images and media. Here are a few tips to increase the load speed of your media:

•Decrease the size of your images or use thumbnails that link to the full-size image.
•If you use third party images, consider uploading them to Picasa Web Albums via the Blogger post editor.
•If you have a large number of images to display, you can upload all your images (from a vacation or event) to a Picasa Web Album and link to the album in your post or sidebar.

Other suggestions
•If you've added any custom CSS to your blog, make sure you put it at the top of the page.
•The most important content of your blog that catches readers attention should load the quickest. To help you identify which items are taking the longest to load you can use Stopwatch. To use Stopwatch, enter your blog's URL into the text box and click "Start StopWatch". Stopwatch will then open your blog in a frame and will record the time it takes for everything on your blog to load, including images, videos, widgets, etc. Take note of the items that take the longest to load and modify them appropriately using our suggestions.

Source: http://help.blogger.com/bin/answer.py?answer=42394

Search Engine Optimization (SEO) and ASP.NET Developers

Search Engine Optimization (SEO) and ASP.NET Developers
In this article we're going to cover some basic concepts on what you can do in order to make your ASP.NET application as spider and search engine friendly as possible.


If you're developing for the Web then you should familiarize yourself with some Search Engine Optimization or SEO concepts. The idea here is to make your ASP.NET application as friendly as possible for spiders, and the specific spider we're talking about is Google.

In this article we're going to cover some basic concepts on what you can do in order to make your ASP.NET application as spider and search engine friendly as possible.

Postbacks

Your biggest gain in the search engine world is going to avoid the use of postbacks. For example, say you have content within an ASP panel. But in order to display that content you use a button and capture a click event in the code behind, then you change the property of the panel to visible=true once the button is clicked. This will not work with spiders since they don't "click buttons" so to speak. The way to write the page so the spider will work with it is to use a link, and then pass a parameter via a URL, this could be a link back to the page if you want, but then in the Page_Load event check for the parameters values to determine what panel or content to display in your page.

I can't understate the importance of eliminating postbacks when it comes to the Internet. Links are much better when dealing with spiders, avoid the postback, spiders simple can't do them.

Friendly URLs

Another thing to look into is the use of a URL rewriter in order to create spider friendly URLs. There are many examples on the Web for creating a URL rewriter. What a URL rewriter does is translate the parameters over to a directory like structure. For example, mypager.aspx?param1=1¶m2=2 becomes something like: /mypage/1/2/default.aspx. This will enhance the spiders efficiency in spidering your site and potentially increase the frequency of a spider doing a deep crawl through your site. You can read evidence of this fact via the Google FAQ:

"Your pages are dynamically generated. We're able to index dynamically generated pages. However, because our web crawler could overwhelm and crash sites that serve dynamic content, we limit the number of dynamic pages we index. In addition, our crawlers may suspect that a URL with many dynamic parameters might be the same page as another URL with different parameters. For that reason, we recommend using fewer parameters if possible. Typically, URLs with 1-2 parameters are more easily crawlable than those with many parameters. Also, you can help us find your dynamic URLs by submitting them to Google Sitemaps. "

There are plenty of resources on the Web for URL rewriting:

http://www.codeproject.com/aspnet/URLRewriter.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp
http://www.15seconds.com/Issue/030522.htm

Titles and Meta Tags
Another issue when generating dynamic pages, and using the same page but either posting back or linking back via a URL. Be sure to change the Title of the page and Meta description. If you do not do this then Google is going to "think" that it is the same page, and the results will not be displayed as high as you would like. It will definitely affect your search results. One way of tacking this is to convert both the title, and meta description tags to HTML controls and then change the inner text, or dynamically generate the text for the tags when displaying different content.

Here's a sample block of code for dynamically changing the title tag of your Web page:

First modify the page in order to make the title tag a control you can modify:

<br />Then in your code you first declare the control as an HTMLGenericControl and set the properties: <br /> <br />Protected WithEvents PageTitle As System.Web.UI.HtmlControls.HtmlGenericControl <br /> <br />PageTitle.InnerText = MyValue <br /> <br />As mentioned the meta description tag is also important. For example, say you do a search on keyword contained within the title tag of your document, but not in the body of the document. Google will display the meta description of your site in the results. So if every page within your application has the same meta description value, all the pages are going to look the same, and may not appear to be relevant to the person doing the search. <br /> <br />You can remedy this using the method above or simply populating the value and outputting it to the form: <br /> <br /><META NAME="DESCRIPTION" CONTENT="<%= MetaDescription %>"> <br /> <br />Then in the code behind just set the value of MetaDescription <br /> <br />Public MetaDescription As String <br /> <br />MetaDescription = "My meta value...." <br /> <br /><strong><strong>Viewstate</strong></strong> <br />Viewstate can be another thing that adversely affects the indexing of your site. For example, if you view the source of an ASP.NET application you may see something like the following: <br /> <br /><input type="hidden" name="__VIEWSTATE" value="dDwtMjA3MTUw...=" /> <br /> <br />And the value of this field can continue on for a long time. I've seen cases where the viewstate is over 100k or more. The problem this has with search engines is many times a search engine will rank your page based on where a keyword occurs in the document. For example, say you're searching on ASP.NET and you first have 100k of viewstate and then your keyword appears within the HTML document. This could affect how your page ranks for that keyword since many search algorithms base relavancy on where the keyword appears or how close to the top of the document it appears. <br /> <br />One way, and one I recommend is to remove the viewstate entirely from the source of the HTML page. Not only will this benefit your search engine results, but it will also reduce the download time of the page since your reduce the size of the page. <br /> <br />The following article is shows you how to remove the viewstate, it focuses on DotNetNuke, but you can use the same functions within any ASP.NET application. <br />http://www.wwwcoder.com/main/parentid/224/site/3507/68/default.aspx <br /> <br /><strong>Closing</strong> <br /> <br />There are many issues that cover SEO for Websites, but in this article we're covering what you as an ASP.NET developer can address. For more information check out the many sites on SEO by searching on the topic. Good luck in your Web site promotional efforts! <br /> <br /><strong>Author Info</strong> <br /> <br />Written by Patrick Santry, ASP.NET MVP, MCSE, recognized speaker, and author of several books and magazine articles, and owner of WWWCoder.com. Patrick has over 11 years of Web application development and management. You can visit his blog at http://blogs.wwwcoder.com/psantry/. <br /> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/05/search-engine-optimization-seo-and-asp.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/05/search-engine-optimization-seo-and-asp.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-05-11T09:20:00+03:00'>9:20 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/05/search-engine-optimization-seo-and-asp.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=6476520501965306811' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=6476520501965306811&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Wednesday, May 6, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='315388181277632859' itemprop='postId'/> <a name='315388181277632859'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/05/top-10-professions-in-pakistan-and.html'>Top 10 Professions in Pakistan and salary packages</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-315388181277632859' itemprop='description articleBody'> A vast information gap exists in the HR Industry. Neither employers nor jobseekers know exactly what compensation decisions to make with limited industry-wide data to rely on. As the leading jobsite in Pakistan, ROZEE.PK made some interesting discoveries in two salary surveys where 2,000 professionals and 1,000 employers were asked about their compensation policies and perceptions. The results and analysis can serve to outline general career trends. Each of the top positions illustrates the median salary range after 5 years of experience as well as the percentage growth from 1-5 years. All salaries are denoted PKR per month.<br /><br /><strong>10. Creative Designing</strong><br /><br />Entry Level: 12,000 - 18,000*<br />5 Years: 49,560 - 74,340*<br />Growth Rate: 313%**<br />Job Satisfaction: Satisfied<br />Popular Institutions: NCA, Indus Valley School of Arts & Fatima Jinnah Women University<br /><br />A rather new entrant in the careers race, Creative Designing is catching up as a popular profession. With businesses investing massively in corporate websites and online presence as well as the booming print media, creative and graphic designers are in high demand. The fact that there is no degree level restriction also adds to its popularity. The scarcity of highly experienced creative designers contributes to the high salary growth rate for this profession.<br /><br />Interestingly, there are quite a few HEC accredited institutions that are now offering degrees in Creative and Graphic Designing adding to the quality of the talent pool. This profession sees the lowest retention rates, most likely because of high turnover in short term projects.<br /><br /><strong>9. Software Engineering</strong><br /><br />Entry Level: 15,000 - 30,000*<br />5 Years: 43,215 - 82,600*<br />Growth Rate: 180%**<br />Job Satisfaction: Very Satisfied<br />Popular Institutions: GIKI, NUST, UET, FAST & NED<br /><br />Software Engineering is the most popular engineering discipline in Pakistan and it is no surprise that its professionals are among the top 10. Although the salary bracket for the entrants is not amongst the highest, the growth rate is reasonable, as a result of which there is a strong incremental increase in compensation. One reason for this is the booming IT sector which is also the biggest recruiter of these experts in the country. There has been resurgence in the IT sector and university students are lagging behind in picking up on this hot career choice. The Software Engineering programs being offered at higher education institutions are compatible worldwide. It is no surprise then that software giants like IBM, Google and Microsoft hire regularly from these engineering universities. Most Software Engineering graduates prefer to pursue a master’s degree which significantly increases their market worth. Job hopping trends in this field offer no conclusive patterns and vary from industry to industry.<br /><br /><strong>8. Finance & Accounting</strong><br /><br />Entry Level: 10,000 - 25,000*<br />5 Years: 36,100 - 90,250*<br />Growth Rate: 261%**<br />Job Satisfaction: Satisfied<br />Popular Institutions: LUMS, IBA, NUST, UCP & ICMAP<br /><br />As a professional in Finance, one thing is for sure, one can calculate one’s own worth by checking the value you bring into the company. As a savvy part of the company, one is better placed to make it to the top if one possesses merit, a superior experience and a bit of clever<br />industry study. Growth in this field is not particularly great for midlevel professionals despite passing the test of heightened competition and high volume of the first few years. Chartered Accountants and ACCA’s significantly contribute to this career’s entry in the top salary bracket since the demand for them far outstrips non-accredited accounting professionals.<br /><br /><strong>7. Telecom Engineering</strong><br /><br />Entry Level: 18,000 - 38,000*<br />5 Years: 59,940 - 99,000*<br />Growth Rate: 184%**<br />Job Satisfaction: Somewhat Satisfied<br />Popular Institutions: NUST, UET, NED & FAST<br /><br />With the explosive growth of Pakistan’s Telecom Sector, these technical recruits are in huge demand at every level. From vendors to operators, they are the backbone of the entire telecom industry. Previously Electrical or Electronics Engineers majoring in Communications were being hired at the entry level and trained as telecom engineers. But now leading engineering institutions are offering “Telecom Engineering” as a separate degree. Even though it is an extremely popular career choice, the growth rate is not exceptionally high. We’ve also observed one of the highest job hopping trends in this profession.<br /><br /><strong>6. HR Management</strong><br /><br />Entry Level: 18,000 - 30,000*<br />5 Years: 68,800 - 103,200*<br />Growth Rate: 258%**<br />Job Satisfaction: Very Satisfied<br />Popular Institutions: IBA, NUST, LSE, LUMS, Quaid-e-Azam University & UCP<br /><br />HR Management is the “Next IT” in terms of booming careers to opt for. Senior Managers can gross surprisingly well particularly in Telecom, Banking and FMCG sectors. In this case, HEC accredited institutions have stepped up to the plate and offered cutting edge education to match the growing industry demand. As the current HR criteria stands it is no longer enough to simply have an HR degree but to also preferably combine it with a specialization such as IT or Supply Chain, depending on the target industry one wishes to join. Pakistan’s corporate sector has finally begun to recognize the value human resource departments bring to enabling productive workforces, putting this field in hot demand.<br /><br /><strong>5. Mechanical Eng.</strong><br /><br />Entry Level: 25,000 - 48,000*<br />5 Years: 69,112 - 115,218*<br />Growth Rate: 153%**<br />Job Satisfaction: Somewhat Satisfied<br />Popular Institutions: GIKI, UET,NUST & NED<br /><br />This is one of the most meritorious engineering disciplines. The FMCG and the Oil & Gas Sector are the biggest recruiters of Mechanical Engineers, followed by the Construction industry. A large batch of these graduates seeks employment outside Pakistan, especially in the Gulf States. Mechanical Engineers are one of the highest paid amongst their engineering peers. Job hopping trends are also prevalent in this field of work perhaps because few companies invest in training their staff and others simply “fetch” from the ones that do train. Interestingly, in the last 10 years this field has seen an incremental increase in women recruits who not only do well academically but are also doing exceptionally well in the field.<br /><br /><strong>4. Sales & Business Development</strong><br /><br />Entry Level: 15,000 - 35,000*<br />5 Years: 63,750 -126,250*<br />Growth Rate: 280%**<br />Job Satisfaction: Somewhat Satisfied<br />Popular Institutions: LUMS, IBA, LSE & Quaid-e-Azam University<br /><br />Sales and Business Development is a highly lucrative line of work based on a commission and incentive structures, varying on company policy. There is a growing trend amongst young business professionals to opt for Business Development as it not only gives them heightened exposure to whois- who of industry but also offers impressive rewards. Most popularly known as the ‘bread winners’ of the company, these professionals have a comfortable career growth rate, as indicated by our survey. This field does not require a mandatory qualification and base salary increments are usually proportional to the experience level and the business connections the sales person has. However, as in most cases an MBA with the relevant specialization is preferred. BD professionals are doing best in FMCG and Banking sector, followed by the Insurance and telecom. The lower job satisfaction rating points to perhaps a high level of stress management that professionals have to incorporate while meeting their sales targets.<br /><br /><strong>3. Program & Project Management</strong><br /><br />Entry Level: 20,000 - 35,000*<br />5 Years: 74,100 - 142,240*<br />Growth Rate: 293%**<br />Job Satisfaction: Very Satisfied<br />Popular Institutions: LUMS, IBA & NUST<br /><br />In the West particularly this field is one of the emerging disciplines with only few certified agencies providing trainings on Project/ Program management as it becomes a huge challenge to find candidates that have a holistic view of the company and can also incorporate knowledge of different departments in an organization to complete tasks. Here in Pakistan, the degree specifications depend mostly on the nature of the project and thus far, there is a scarcity of a large qualified candidate pool in the industry. The relatively high growth rate for this profession is due to the fact that Project Managers become much more effective with experience under their belts.<br /><br /><strong>2. Procurement & Supply Chain</strong><br /><br />Entry Level: 15,000 - 25,000*<br />5 Years: 76,219 - 150,412*<br />Growth Rate: 467%**<br />Job Satisfaction: Satisfied<br />Popular Institutions: LUMS, GC& LSE<br /><br />Although Procurement and Supply Chain is not the first career choice for most professionals, it is nonetheless carving out a niche for itself in the<br />market. It came in as no surprise because there is an increasing number of HR Managers who have to comply with international standards by many businesses that require an established Procurement Department. Supply Chain is mostly taught as a specialization after an accredited MBA and is only sought after for many leading wholesalers who are now even more brand conscious and want to establish their purchase and supply channels in the most cost-effective way.<br /><br /><strong>1. Marketing & Brand Management</strong><br /><br />Entry Level: 20,000 - 52,000*<br />5 Years: 83,916 - 165,371*<br />Growth Rate: 246%**<br />Job Satisfaction: Somewhat Satisfied<br />Popular Institutions: IBA, NUST, LUMS, Quaid-e-Azam University & UCP<br /><br />Ranked the top profession in by our survey, Marketing professionals are amongst the highest grossing in the country. With the emergence of<br />multinational giants on Pakistan’s economic front, Marketing and Brand Management is serious business, with millions rolling in to change perceptions of a product with color, figures and images as the only tools. With only a handful of quality business education institutions providing the necessary talent pool, there is a high degree of variance in compensation. The disparity in supply and demand has given rise to salary inflation all over the industry which encourages both job hopping and low job satisfaction ratings. However, the job growth in this department is high as a result of which it is a natural career choice for many. The Telecom, Banking and FMCG Sector have the highest compensation packages for<br />marketing professionals and they are considerably higher than what is offered by most other sectors. This again explains the high degree of<br />variance in compensation packages.<br /><br />* Salaries for Entry Level and Mid Level after 5 years are denoted in Pakistani Rupees per month.<br />** Growth Rate Scenario: If your entry level salary is Rs.10,000 and after 5 years it increases to Rs.90,000 your growth rate is 800%. <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/05/top-10-professions-in-pakistan-and.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/05/top-10-professions-in-pakistan-and.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-05-06T17:07:00+03:00'>5:07 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/05/top-10-professions-in-pakistan-and.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=315388181277632859' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=315388181277632859&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrHAdWxKq9vscm5CTbZBe56oWTb-gl4EH6vdaI_h_CpzaKN9xKU91XskTe6Dhbcy4dNoVK8BFPhb_OJtxPlu_Gz0Ynw5MMtCwNv31l3NGmXQSUKEWkGHVUb_IIABlGMwDvtf8CkSTikQ/s200/111.bmp' itemprop='image_url'/> <meta content='62615523823450575' itemprop='blogId'/> <meta content='6987889396202382878' itemprop='postId'/> <a name='6987889396202382878'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/05/can-be-very-usefull-in-programming-data.html'>Can be very usefull in programming DATA related routines like ADAPTERS</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-6987889396202382878' itemprop='description articleBody'> <div><strong><span style="font-size:130%;">Tip: Detecting Defects in C# Programs</span></strong></div> <br /><div>By <a title="http://www.developer.com/feedback.php/http:/www.developer.com/net/csharp/article.php/3818491" href="http://www.developer.com/feedback.php/http:/www.developer.com/net/csharp/article.php/3818491">Steve Porter</a> <br />During Quality Assurance (QA) reviews and maintenance cycles I have come across defects that are difficult to diagnose and reproduce the exact set of events under which the abnormality is occurring. Solving the issues usually requires additional information. This is where the System.Diagnostics Debug and Debugger classes are tools you can use to provide targeted information. </div> <br /><div><strong><span style="font-size:130%;"></span></strong></div> <br /><div><strong><span style="font-size:130%;">Using System.Diagnostics.Debug</span></strong> <br />The System.Diagnostics.Debug class provides method calls and properties that can provide formatted conditional information. Code containing the Debug class can remain in release code as it is not compiled into IL unless the DEBUG compilation attribute is set and thus will have no effect or cause code bloat. Useful methods include: <br /><strong>Assert </strong>Checks for a specific condition and displays an error message if that condition is false. <br /><strong>Equals</strong> Determines whether the specified Object is equal to the current Object. <br /><strong>Indent</strong> Increases the current IndentLevel by one. <br /><strong>Unindent </strong>Decreases the current IndentLevel by one. <br /><strong>WriteLineIf</strong> Write specific information to the attached trace listeners if a specific condition is true <br />The Debug class is often used to prevent code defects by verifying logic during code development and maintenance. The following example verifies the input parameter is within a valid range, if it is not, Assert will output a message. </div> <br /><div><em><span style="font-size:85%;">Debug.Assert(inputValue <></em></div> <br /><div><em><span style="font-size:85%;"></span></em></div> <br /><div><strong><span style="font-size:130%;">Using System.Diagnostics.Debugger</span></strong></div> <br /><div>The System.Diagnostics.Debugger class communicates with an attached debugger. When an assembly is executed within an attached debugger, the Debugger.Break method will stop execution as if the IDE had instituted a breakpoint. The debugger can then be used normally to investigate assembly state. </div> <br /><div></div> <br /><div><strong><span style="font-size:130%;">Benefits of the Debug and Debugger Classes</span></strong></div> <br /><div>Together, these two classes, Debug and Debugger, can assist in diagnosing complicated data related issues or issues that occur intermittently. The following code not only produces generic formatted output, but also outputs information related to a specific item and stops code execution when invalid data is encountered so that the member variables and stacktrace can be examined.</div> <br /><div>class Program </div> <br /><div>{ </div> <br /><div>static void Main(string[] args) </div> <br /><div>{ </div> <br /><div>// Add example data </div> <br /><div>List personList = new List(); </div> <br /><div>personList.Add(new Person { FirstName = "Joe", LastName = "Smith" }); </div> <br /><div>personList.Add(new Person { FirstName = "Mike", LastName = "Jones" }); </div> <br /><div>personList.Add(new Person { FirstName = "Sarah", LastName = "Douglas" }); </div> <br /><div>Debug.WriteLine("Begin Iterating People"); </div> <br /><div>Debug.Indent(); </div> <br /><div>// Itterate, output and examine people </div> <br /><div>for (int personIdx = 0; personIdx <></div> <br /> <br /><div>{ </div> <br /><div>Debug.WriteLine(string.Format("Person {0}", personIdx.ToString())); </div> <br /><div>Debug.Indent(); </div> <br /><div>// if a portion of the persons name is null, use the debugger to examine variables </div> <br /><div>if (Debug.Equals(personList[personIdx].FirstName, null) Debug.Equals(personList[personIdx].LastName, null)) </div> <br /><div>{ </div> <br /><div>Debugger.Break(); </div> <br /><div>} </div> <br /><div>Debug.WriteLine(string.Format("Firstname: {0}", personList[personIdx].FirstName)); </div> <br /><div>Debug.WriteLine(string.Format("Lastname: {0}", personList[personIdx].LastName));</div> <br /><div>Debug.WriteLineIf(personList[personIdx].FirstName == "Mike", "Mike is Found!"); </div> <br /><div>Debug.Unindent(); </div> <br /><div>} </div> <br /><div>Debug.Unindent(); </div> <br /><div>Debug.WriteLine("End Iterating People"); </div> <br /><div>} </div> <br /><div>} </div> <br /><div>public class Person </div> <br /><div>{ </div> <br /><div>public string FirstName { get; set; } </div> <br /><div>public string LastName { get; set; } </div> <br /><div>} </div> <br /><div></div> <br /><div>This code produces the following formatted output in the output window:</div> <br /><div></div> <br /><div>Begin Iterating People </div> <br /><div>Person 0 </div> <br /><div>Firstname: Joe </div> <br /><div>Lastname: Smith </div> <br /><div>Person 1 </div> <br /><div>Firstname: Mike </div> <br /><div>Lastname: Jones </div> <br /><div>Mike is Found! </div> <br /><div>Person 2 </div> <br /><div>Firstname: Sarah </div> <br /><div>Lastname: </div> <br /><div>DouglasEnd Iterating People </div> <br /><div></div> <br /><div>If data is invalid, for example in this case changing a FirstName of to null, the debugger will break at the point specified (see Figure 1) </div> <br /><div></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrHAdWxKq9vscm5CTbZBe56oWTb-gl4EH6vdaI_h_CpzaKN9xKU91XskTe6Dhbcy4dNoVK8BFPhb_OJtxPlu_Gz0Ynw5MMtCwNv31l3NGmXQSUKEWkGHVUb_IIABlGMwDvtf8CkSTikQ/s1600-h/111.bmp"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5332610221118627922" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrHAdWxKq9vscm5CTbZBe56oWTb-gl4EH6vdaI_h_CpzaKN9xKU91XskTe6Dhbcy4dNoVK8BFPhb_OJtxPlu_Gz0Ynw5MMtCwNv31l3NGmXQSUKEWkGHVUb_IIABlGMwDvtf8CkSTikQ/s200/111.bmp" style="MARGIN: 0px 10px 10px 0px; WIDTH: 383px; FLOAT: left; HEIGHT: 95px; CURSOR: hand" /></a> <br /><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div>This methodology can be used when the result of a defect is known but it is not known how to routinely reproduce the issue. If a team of developers were executing this code, any developer could trigger the conditions that would stop code execution at that point. The state of the assembly could then be examined. This additional information could be the difference between taking minutes to solve an intermittent problem to days attempting to recreate it under a known set of circumstances. <br />In future additional tools in the System.Diagnostics namespace will be examined that assist in diagnosing data and performance issues found in released software by utilizing the Trace and TraceListener classes. </div> <br /> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/05/can-be-very-usefull-in-programming-data.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/05/can-be-very-usefull-in-programming-data.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-05-06T10:14:00+03:00'>10:14 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/05/can-be-very-usefull-in-programming-data.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=6987889396202382878' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=6987889396202382878&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Wednesday, April 29, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='1897933843012657944' itemprop='postId'/> <a name='1897933843012657944'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/top-10-reasons-to-work-at-google.html'>Top 10 Reasons to Work at Google</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-1897933843012657944' itemprop='description articleBody'> <strong>1- Lend a helping hand</strong>. With millions of visitors every month, Google has become an essential part of everyday life - like a good friend - connecting people with the information they need to live great lives.<br /><strong>2- Life is beautiful.</strong> Being a part of something that matters and working on products in which you can believe is remarkably fulfilling.<br /><strong>3- Appreciation is the best motivation,</strong> so we’ve created a fun and inspiring workspace you’ll be glad to be a part of, including on-site doctor and dentist; massage and yoga; professional development opportunities; shoreline running trails; and plenty of snacks to get you through the day.<br /><strong>4- Work and play are not mutually exclusive.</strong> It is possible to code and pass the puck at the same time.<br /><strong>5- We love our employees,</strong> and we want them to know it. Google offers a variety of benefits, including a choice of medical programs, company-matched 401(k), stock options, maternity and paternity leave, and much more.<br /><strong>6- Innovation is our bloodline.</strong> Even the best technology can be improved. We see endless opportunity to create even more relevant, more useful, and faster products for our users. Google is the technology leader in organizing the world’s information.<br /><strong>7- Good company everywhere you look.</strong> Googlers range from former neurosurgeons, CEOs, and U.S. puzzle champions to alligator wrestlers and Marines. No matter what their backgrounds Googlers make for interesting cube mates.<br /><strong>8- Uniting the world,</strong> one user at a time. People in every country and every language use our products. As such we think, act, and work globally - just our little contribution to making the world a better place.<br /><strong>9- Boldly go where no one has gone before.</strong> There are hundreds of challenges yet to solve. Your creative ideas matter here and are worth exploring. You’ll have the opportunity to develop innovative new products that millions of people will find useful.<br /><strong>10- There is such a thing as a free lunch after all.</strong> In fact we have them every day: healthy, yummy, and made with love. <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/top-10-reasons-to-work-at-google.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/top-10-reasons-to-work-at-google.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-29T17:12:00+03:00'>5:12 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/top-10-reasons-to-work-at-google.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=1897933843012657944' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=1897933843012657944&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Wednesday, April 22, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='249650516536567701' itemprop='postId'/> <a name='249650516536567701'></a> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-249650516536567701' itemprop='description articleBody'> <strong><span style="font-size:130%;">Populating WinForm Controls with ADO.NET<br /></span></strong>This tutorial will show you three example of populating a WinForm control with database-sourced data. In each example the same control will be used (a combo box), it will display customer name data pulled from a simple table in a fictitious Sales database stored in MS SQL2000.<br />The table is called ‘Customer’, and has the following fields:<br /><strong>Table: Customer</strong><br />CustomerID an int which is an Identity field (an automatic sequential number)<br /><strong>FirstName a varchar(30)</strong><br /><strong>LastName a varchar(30)</strong><br />The simple aim is to display all customer names from this table in a combo box.<br /><strong>Possible Design Choices</strong><br />There are basically two possible designs with ADO.NET. The simplest is to use a DataReader. DataReaders act much like a forward-only Recordset in ADO. We would sequentially read in the customer names, adding them to the combo box as the reading occurs. Another possibility is to use a DataSet. Think of a DataSet as an in-memory relational database. We create a DataSet that mirrors the portion of the database we are interested in, and use that to populate the combo-box. The advantage of this approach is that as soon as we have loaded the data we require we can close the database connection. The DataSet can then be used disconnected from the database, saving connection resources. The downside is of course that all the data and associated relational structure is held in memory. The appropriate resource trade-off will depend on your application. This tutorial will show examples of both approaches, first using a DataReader, and then using a DataSet. It will then show a third example that also uses a DataSet, but instead of populating the combo-box from the DataSet via code, it binds the combo-box directly to a DataTable object inside the DataSet.<br /><strong>ADO.NET Providers</strong><br />For this example it would have been easy to use either OLEDB Provider, or the SQLServer provider. Since the target database was SQL2000, these examples will use the SQLServer provider. You will need to add this using clause to your code for these examples to work:<br /><br /><em>using System.Data.SqlClient;</em><br /><em></em><br /><strong>Using a DataReader to Populate a Combo-box</strong><br />Imagine we have a combo-box cboReaderBox, and a button called PopulateReaderBox that we want to use to populate that box. The code for the button Click handler would be as follows:<br /><br /><em>private void btnPopulateReaderBox_Click(object sender, System.EventArgs e)<br />{<br /> //Connect to the Sales database<br /> //Read in each of the Customers from the Customer table,<br /> //Adding their name to the Combo box<br /> //Do this using a DataReader - much like a forward only ADO cursor.<br /><br /> //declare these outside the try so we can close them off in the<br /> //finally clause.<br /> SqlDataReader oReader = null;<br /> SqlConnection oConnection = null;<br /><br /> try<br /> {<br /> //ensure the box is cleared<br /> cboReaderBox.Items.Clear();<br /><br /> //Use the SQLServer provider..<br /> //set up the connection and the command... </em><br /><em> oConnection = new</em><br /><em> SqlConnection("server=localhost;uid=sa;pwd=;database=Sales");<br /><br /> string sSelectSQL = "SELECT FirstName +<br /> ' ' + LastName as Name FROM Customer";<br /> SqlCommand oCommand = new SqlCommand(sSelectSQL,oConnection);<br /><br /> //open the connection, and use the reader to populate the combobox<br /> oConnection.Open();<br /> oReader = oCommand.ExecuteReader();<br /> if (oReader != null)<br /> {<br /> while (oReader.Read())<br /> {<br /> cboReaderBox.Items.Add(oReader["Name"]);<br /> }<br /> }<br /><br /> //the finally clause will tidy up for us.<br /> cboReaderBox.SelectedIndex = 0;<br /> }<br /> catch (Exception oE)<br /> {<br /> MessageBox.Show("Problem Populating Reader Box:<br /> [" + oE.ToString() + "]");<br /> }<br /> finally<br /> {<br /> if (oReader!=null) oReader.Close();<br /> if (oConnection!= null)<br /> {<br /> if (oConnection.State == ConnectionState.Open)<br /> oConnection.Close();<br /> }<br /> }</em><br /><em>}</em><br /><em></em><br /><strong>This code does the following things:</strong><br />1. Sets up a connection to the database<br />2. Sets up the command (a SELECT) ready to run<br />3. Opens a DataReader (like a forward-only record set) on that connection and command<br />4. Loops through the rows that get returned by the reader, adding the ‘Name’ column to the combo-box’s Item collection.<br />5. There is a try-catch-finally structure here just to add robustness, you don’t necessarily need this to get the code to work, but I like error handling.<br /><br /><strong><span style="font-size:130%;">Using a DataSet to Populate a Combo-box</span></strong><br />Here is the code to populate another combo-box (cboDatasetBox) with the same data, but this time from an in-memory copy the database or DataSet.<br /><br /><em>private void btnPopulateDatasetBox_Click(object sender, System.EventArgs e)<br />{<br /> //Connect to the Sales database<br /> //Read in all of the Customers from the Customer table<br /> // into a Dataset (an in-memory relational<br /> //database.<br /> //Run through this dataset, adding their names to the combobox.<br /> //We can blow away the dataset at that point.<br /><br /> //declare these outside the try so we can close them off in the finally clause.<br /> SqlConnection oConnection = null;<br /> DataSet oCustomersDataSet = new DataSet();<br /><br /> try<br /> {<br /> //ensure the box is cleared<br /> cboDatasetBox.Items.Clear();<br /><br /> //set up the connection<br /> oConnection = new<br /> SqlConnection("server=localhost;uid=sa;pwd=;database=Sales");<br /><br /> //set up the data adapter to get us our data...<br /> //Adapters xfer data to/from Database and Dataset.<br /> SqlDataAdapter oDataAdapter = new<br /> SqlDataAdapter();<br /> string sCommand = "SELECT FirstName + ' ' +<br /> LastName as Name FROM Customer";<br /> oDataAdapter.SelectCommand = new<br /> SqlCommand(sCommand,oConnection);<br /><br /> //use the data adapter to fill the dataset with the result<br /> // of that SQL statement<br /> //Note we have 'changed' the table name so that in memory we run<br /> // off the BoxCustomers<br /> //'table'...just to make the point that we are working off a<br /> // construct of our own devising.<br /> oDataAdapter.Fill(oCustomersDataSet,"BoxCustomers");<br /><br /> //can now close the database connection, we'll work off the dataset<br /> // which is in memory.<br /> oConnection.Close();<br /> //we are now disconnected.<br /><br /> //put the data from the dataset into the combobox<br /> DataTable oDataTable = oCustomersDataSet.Tables["BoxCustomers"];<br /> if (oDataTable == null)<br /> throw new Exception("BoxCustomers table not<br /> found in oCustomersDataSet.");<br /><br /> foreach (DataRow oRow in oDataTable.Rows)<br /> {<br /> cboDatasetBox.Items.Add(oRow["Name"]);<br /> }<br /><br /> //the finally clause will tidy up for us.<br /> cboDatasetBox.SelectedIndex = 0;<br /> }<br /> catch (Exception oE)</em><br /><em> {<br /> MessageBox.Show("Problem Populating Dataset Box:<br /> [" + oE.ToString() + "]");<br /> }<br /> finally<br /> {<br /> //clear the inmemory data in the dataset, and close the database<br /> // connection, if it's open.<br /> if (oCustomersDataSet != null) oCustomersDataSet.Clear();<br /> if (oConnection!= null)<br /> {<br /> if (oConnection.State == ConnectionState.Open)<br /> oConnection.Close();<br /> }<br /> }<br /> }</em><br /><em></em><br /><strong>There are a few differences from the DataReader example:</strong><br />1. It uses a DataAdapter. DataAdapters are the objects that handle communication between the database itself and your in-memory DataSet. We use this DataAdapter to ‘Fill()’ the DataSet with the results of our SELECT statement. The DataSet will then contain an in-memory version of the database Customer table.<br />2. Just to make the point that we don’t need the database anymore, the second parameter of the Fill() method specifies what to call the new in-memory table. I decided to call it ‘BoxCustomers’. In other respects it is identical to the actual Customers table in the database.<br />3. Notice we Close() the Connection to the database once the Fill() is done. With the data in memory, we no longer need the database.<br />4. DataSets can contain whole databases, so to populate the combo-box we explicitly specify the DataTable object pertaining to our new BoxCustomers in-memory table. We use this DataTable object to populate the combo-box.<br /><br /><strong><span style="font-size:130%;">Binding a Combo-box to a DataTable</span></strong><br />With the table loaded into memory, we have a third option, which is to Bind the combo-box directly to that DataTable. The code for this is identical to the second example above, except:<br /><br />1. Instead of foreach-ing through the DataRows in the DataTable, we simply:<br /><br /><em>cboBoundSetBox.DataSource = oDataTable;</em><br /><em>cboBoundSetBox.DisplayMember = "Name";</em><br /><em></em><br />2. Add the end (in the finally clause), we don’t Clear() the DataSet, as we would lose the data in the Table we have bound to the combo-box, thus emptying the combo-box again (except for any selected item)!<br /><br /><br /><br /><em></em> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/populating-winform-controls-with-ado.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/populating-winform-controls-with-ado.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-22T17:47:00+03:00'>5:47 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/populating-winform-controls-with-ado.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=249650516536567701' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=249650516536567701&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Wednesday, April 15, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='576936373882436560' itemprop='postId'/> <a name='576936373882436560'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/ten-ways-to-improve-your-website.html'>Ten Ways To Improve Your Website Conversion Rate</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-576936373882436560' itemprop='description articleBody'> <span style="font-size:130%;"><strong>What is a Conversion Rate?</strong><br /></span>Your conversion rate is a measure of the number of potential customers that go on to buy. In the context of a website, it is usually the percentage of visitors that make a purchase. Many websites concentrate solely on increasing the number of visitors they have, when often they have fairly simple problems with their site that, if solved, would have a huge effect on their conversion rate and improve their site's bottom line at minimal expense.<br />Improving a website conversion rate can be relatively simple. Here are 10 techniques for doing just that:<br /><strong><span style="font-size:130%;">10. Make The User's Life Easy</span></strong><br />Let's start with something that sounds simple, but apparently is too complex for many companies to get right. The more difficult you make your web site to use, the less people will buy from you.<br />A well designed website should aim to prevent nobody from buying - to allow 100% of the people who want to buy to do so. So where do they go wrong?<br /><strong>Accessibility</strong> Making a site accessible is a legal obligation in many countries. Despite that, inaccessible websites are still being created. That can affect your sales, depending on how inaccessible you are, as visitors find the site impossible to use and go elsewhere (and end up recommending one of your competitors to their friends as well). A fairly typical inaccessible site could be losing 5% of potential sales because of this. (A really inaccessible website could even prevent search engines indexing it, giving a far higher amount of potential lost sales.) <br /><strong>Browsers</strong> Many designers only pay attention to Internet Explorer. The justification for this is usually that 99% of the site's users use IE. It never seems to occur to the designers that perhaps the reason they have so few visitors with other browsers is that their site is fundamentally broken - it doesn't work in anything else. Percentages of people not using IE varies from site to site - over 60% of visitors to this site use an alternative browser, for example. The number most often quoted though, is that 80-85% of web users are using IE on Windows, which means that an average site that doesn't work in anything else could easily be losing 15-20% of sales. <br /><strong>Be Bold!</strong> What happens when a user decides to buy a product? They add it to a shopping basket. How do they add it? They click a button or link (usually a button). What happens when they can't see the button? They go elsewhere. There are some users who are still uncomfortable scrolling. Having things above the fold is still important. And yet there are still plenty of sites out there with buttons that are too subtle, or don't say the right thing, or are hidden away at the bottom of the page. "Add" is rubbish button text. "Buy" is ok. "Add xxx To Your Basket" is great. "Add xxx to Your Basket" in big letters on a big, bright button, near the top of the page, is even better. Calls to action, like this, don't have to be gaudy or tasteless, but they do have to be obvious and clear. Sites I have worked on where just the call to action was changed have reported anything from a 1% to 30% increase in sales as a result. <br /><strong>Usability</strong> If your potential customers want to find out more before they buy, can they? Is it obvious to the user where to go to find the technical specs on your products? Are they online at all? Are they in PDF format? Can users even find your products in the first place? This is probably the most common mistake I see on any website - a complete failure to think of what the user wants and needs, and how they might use a site. Plenty of sites have product pages with a photo and some sales patter - and nothing else. Anything from 1% to 99% of potential sales can be lost through poor usability.<br />When you combine all of the problems above, it becomes fairly clear how easy it is to have a site perform poorly. Make your site accessible, make sure it is usable, make sure it works in common browsers, and make your calls to action clear and unambiguous, and you should be in a position to start converting the people who want to buy.<br /><strong><span style="font-size:130%;">9. Be Clear, Open and Honest</span></strong><br />If you have a product out of stock, say so. Few things annoy users as much as reading all about a product they are after, adding it to a cart, and starting the checkout process - only to find out the product isn't actually available.<br />The same applies to pricing - a user might spend $100 on a product, but when they find out the shipping is $100 on top of that, they are unlikely to continue the sale. Showing delivery pricing is tricky business, but not impossible. An <a href="http://ip-to-country.webhosting.info/node/view/6">Ip to Country</a> database will allow you to work out where a user is from and show them a likely delivery cost, for example. If you can't do that, show delivery prices for the countries most appropriate to you - where your products are most often delivered, or for major world regions.<br /><strong><span style="font-size:130%;">8. Don't Waste Time<br /></span></strong>One of the biggest mistakes sites make is asking for too much information. Your conversion process may be sale, or it may be a request for information. Either way, don't waste the user's time asking for things you don't need to know. This is, of course, doubly important when it comes to asking for information the user deems private, and that they don't want to give out without good reason.<br />You don't need to demand the user's email address before letting them download a PDF. You don't need their phone number when they fill out an email enquiry form. A user may not want to buy from you twice - so why make them create an account so they can buy again later before processing their first order? You can give the user the option to do all of these things by all means, but make sure it's not compulsory.<br /><span style="font-size:130%;"><strong>7. Help The User Trust You</strong><br /></span>Most people are still cautious when buying online, and rightly so. There are plenty of people you really shouldn't give your credit card information to! It's important to give the potential customer every reason to trust you.<br />An address - bricks and mortar, not a P.O. Box - is a good start. A phone number, with people answering the phone, also helps. Showing a privacy policy and explaining shipping procedures clearly can also help the user to trust you. If you have a SSL certificate, show the "VeriSign Secured" logo to the user.<br />Design and content also play a part in trust. A poor design gives off an unprofessional feeling. If a company can't afford a decent website, or won't spend the money on it, how can a user be sure their order will be treated with the importance it deserves? If content is inaccurate or badly written, the same applies - show that you take pride in what you do.<br />6. Have a Clear Returns Policy<br />Returns on the web are, and are likely to remain, a major issue for consumers. With a bricks and mortar shop, the customer knows where the shop is and that to return the product they simply have to go back there and explain the problem. With the web, this is more of an issue. This is especially true for clothing (where people cannot try things on before buying).<br />Users are impressed with sites with a good returns policy and are more likely to buy from them. Have people phone for returns - they can then explain the problem to a real person, which is always a good first step. Free return shipping is usually a good option, if commercially viable. People don't like to pay to return things, especially if it is a mistake by the retailer. Finally, give the user plenty of time to return things. 28 days is fairly common, but if it takes you that long to deliver a product, what use is the return policy? 28 days from the date of delivery is better.<br /><span style="font-size:130%;"><strong>5. Keep the User Informed</strong></span><br />When somebody buys something online, they want to know when it's going to arrive at their door. People are impatient, after all. Giving them an estimated delivery date during the checkout process is a good start. Emailing them when their product is dispatched is great. Giving them a tracking number if using a delivery service that supports online tracking is even better. Keep the user informed at every step of the process, before and after sale, about as much as you can.<br />How will this improve your conversion rate? Leaving the customer happy once they have made a sale means they are more likely to speak favourably about you later. They may even recommend you to their friends and within online communities. They are also far more likely to buy from you again.<br />Think about it like this - if a salesman is doing their absolute best to help you, and to make your life easy, and answering your questions, you might buy what they were selling. If they completely ignored you after you'd bought from them, how would you feel about them? They might well have undone all the good work they put in, because once you'd completed your purchase they see no immediate value in you. A company that shows it cares about their customers, even after they've finished shopping, will make a user far happier and far more likely to return.<br /><strong><span style="font-size:130%;">4. Offer Different Payment Options</span></strong><br />It might sound obvious, but you should offer the user a reasonable selection of methods of payment. Not everybody has a credit card, and those that do don't always want to use them. You don't have to accept cheques, but when deciding on payment methods, consider alternatives to the usual methods. Make the user's life easy and give them what they want.<br /><strong><span style="font-size:130%;">3. Improve the Value of Visitors<br /></span></strong>People that buy from you are doing so because they like what it is they see. If a user adds a product to a basket, show them other things they might like as well. If they are viewing a product, the same applies - show them similar items. While they might not buy the product they first saw, other similar ones may not have issues that put them off the first. Upselling and cross-selling are tried and tested sales techniques, and there is no reason not to use them on the web.<br /><strong><span style="font-size:130%;">2. Be Memorable<br /></span></strong>A good site will include information. A poor one is just an online catalogue. Information (articles, advice, reviews and so on) all help the user early in their buying process. Users start with research online, just as they do offline. If you can make contact with the user at that stage of their process, and give a favourable impression, there is a good chance that they will come back and buy from you when they finally decide to make a purchase.<br />Being memorable, and making sure you stick in the user's mind, is dependant on a lot of factors. You must have a USP (see the next point), and branding is important (no good if your visitors remember why you are great but don't remember your name), as well as the quality of your site and information.<br /><strong><span style="font-size:130%;">1. Know Your USP</span></strong><br />Finally, the most important point of all - your Unique Selling Point (USP). Your USP is what sets you apart from your competition. If a visitor goes to several sites looking for a product, why would they decide to buy from you instead of somewhere else?<br />Many companies do not know their USP. Almost all companies have one, but not all of them are aware of it. If you are a family run business, that's a potential USP. Great customer service, low prices, products that can't be bought elsewhere, free delivery, great support - all of these are USPs. Tell your users what yours is. Shout it from the proverbial rooftops. <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/ten-ways-to-improve-your-website.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/ten-ways-to-improve-your-website.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-15T13:12:00+03:00'>1:12 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/ten-ways-to-improve-your-website.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=576936373882436560' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=576936373882436560&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi47E7Qk-H0ZDg__XGfp1Gp0eA0LsULnHk6X5MSUhUio86nFsNSU54XkXOfT9Gq6sKmz6eIzwRwXifqikkJo2D3OZ4SMxPbuUaIa6WvETgnImZQfCmhxv0UV9ja4_QOWBZUEocrdBxeLw/s200/sqlserver_instances.jpg' itemprop='image_url'/> <meta content='62615523823450575' itemprop='blogId'/> <meta content='504967503242588365' itemprop='postId'/> <a name='504967503242588365'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/how-to-enumerate-sql-server-database.html'>How to Enumerate SQL Server database Instances</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-504967503242588365' itemprop='description articleBody'> <div>How many times you created a .NET application in which you need to know about all of the database systems on your company’s network? May be you need to create an application for database administrator of your SQL Server database so that he can see a list of all the SQL Server databases installed in the company. In this small tutorial I will show you how you can obtain the list of all SQL Server database instances. <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi47E7Qk-H0ZDg__XGfp1Gp0eA0LsULnHk6X5MSUhUio86nFsNSU54XkXOfT9Gq6sKmz6eIzwRwXifqikkJo2D3OZ4SMxPbuUaIa6WvETgnImZQfCmhxv0UV9ja4_QOWBZUEocrdBxeLw/s1600-h/sqlserver_instances.jpg"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5324841170294546642" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi47E7Qk-H0ZDg__XGfp1Gp0eA0LsULnHk6X5MSUhUio86nFsNSU54XkXOfT9Gq6sKmz6eIzwRwXifqikkJo2D3OZ4SMxPbuUaIa6WvETgnImZQfCmhxv0UV9ja4_QOWBZUEocrdBxeLw/s200/sqlserver_instances.jpg" style="MARGIN: 0px 0px 10px 10px; WIDTH: 253px; FLOAT: right; HEIGHT: 123px; CURSOR: hand" /></a><br /><br />SqlDataSourceEnumerator class in System.Data.Sql namespace provides a mechanism for enumerating all instances of SQL Servers in a given network. This class exposes a method called GetDataSources() that returns a DataTable object containing the list of SQL Servers with some basic information about the server.<br />Below is a code listing and screen shot of a simple Windows project I built that shows you how to use SqlDataSourceEnumerator class.<br />private void Form1_Load(object sender, EventArgs e){<br />//create a new instance of our SqlDataSourceEnumerator SqlDataSourceEnumerator sqlEnumerator = SqlDataSourceEnumerator.Instance;<br />//get the datatable containing our sql servers DataTable sqlServersTable = sqlEnumerator.GetDataSources();<br />dataGridView1.DataSource = sqlServersTable;}<br />List of SQL Server Instances<br />Please keep in mind following points when you enumerate SQL Servers by using above code:<br /><br />1. SQL Server Browser service must be running on the client system to obtain the information correctly from SQL Server 2005. 2. Enumerating servers will only find SQL Server 2000 and later versions of the database.<br />I hope this tutorial will help many of you in the future.</div><div> </div><div>Source: <a href="http://www.ezzylearning.com/tutorial.aspx?tid=9134744">http://www.ezzylearning.com/tutorial.aspx?tid=9134744</a></div> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/how-to-enumerate-sql-server-database.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/how-to-enumerate-sql-server-database.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-15T12:01:00+03:00'>12:01 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/how-to-enumerate-sql-server-database.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=504967503242588365' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=504967503242588365&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Saturday, April 11, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='9051980497582735921' itemprop='postId'/> <a name='9051980497582735921'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/programmers-and-it-failure.html'>Programmers and IT failure</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-9051980497582735921' itemprop='description articleBody'> <span style="font-size:85%;"><em>IT failures are often rooted in hidden, almost tectonic forces — organizational, political, and so on — that are difficult to measure or control. However, this focus can obscure those special folks who actually create the technology we implement and use. I’m referring to programmers.<br />At their best, programmers are the dreamers, visionaries, and skilled artisans of technology: the real creators. In the truest sense, these great ones have advanced knowledge and human well-being in science, medicine, and many other important domains.<br />However, we can also point to unskilled, inexperienced, or self-centered programming behavior as a direct source of project cost overruns and delays on some projects. How many programmer-led initiatives have gone late or over-budget because developers created cool software with scant business value?<br /></em></span><strong><span style="font-size:130%;">Dead Programmer.</span></strong> Your code has survived and transcended your death. You are a part of the permanent historical record of computing. Other programmers study your work and writing. Examples: <a target="_blank" href="http://en.wikipedia.org/wiki/Edsger_W._Dijkstra">Dijkstra</a>, <a target="_blank" href="http://en.wikipedia.org/wiki/Donald_Knuth">Knuth</a>, <a target="_blank" href="http://en.wikipedia.org/wiki/Alan_Kay">Kay</a><br /><strong><span style="font-size:130%;">Successful Programmer.</span></strong> Programmers who are both well known and have created entire businesses - perhaps even whole industries - around their code. Getting to this level often depends more on business skills than programming. Examples: <a target="_blank" href="http://en.wikipedia.org/wiki/Bill_Gates">Gates</a>, <a target="_blank" href="http://en.wikipedia.org/wiki/John_D._Carmack">Carmack</a>, <a target="_blank" href="http://en.wikipedia.org/wiki/David_Heinemeier_Hansson">DHH</a><br />Famous Programmer. This is also a good place to be, but not unless you also have a day job. But being famous doesn’t necessarily mean you can turn a profit and support yourself. Famous is good, but successful is better.<br /><strong><span style="font-size:130%;">Working Programmer.</span></strong> You have a successful career as a software developer. But where do you go from there?<br /><strong><span style="font-size:130%;">Average Programmer.</span></strong> At this level you are a good enough programmer to realize that you’re not a great programmer. If you are an average programmer but manage to make a living at it then you are talented, just not necessarily at coding.<br /><strong><span style="font-size:130%;">Amateur Programmer.</span></strong> Being an amateur is a good thing; from this level one can rapidly rise to become a working programmer.<br /><strong><span style="font-size:130%;">Unknown Programmer.</span></strong> The proverbial typical programmer. Joe Coder. Probably works for a large, anonymous MegaCorp. It’s just a job, not their entire life. Nothing wrong with that, either.<br /><strong><span style="font-size:130%;">Bad Programmer.</span></strong> People who somehow fell into the programmer role without an iota of skill or ability. These people have no business writing code of any kind - but they do, anyway.<br />It’s easy to stereotype anyone, placing them on a pedestal or tearing down their contributions as meaningless, although neither extreme provides much value. Having said this, what do you think about the role of programmers in causing or preventing failed IT projects?<br /><br />Source: <a href="http://blogs.techrepublic.com.com/">http://blogs.techrepublic.com.com/</a> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/programmers-and-it-failure.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/programmers-and-it-failure.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-11T13:35:00+03:00'>1:35 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/programmers-and-it-failure.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=9051980497582735921' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=9051980497582735921&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Wednesday, April 8, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='38765904903205983' itemprop='postId'/> <a name='38765904903205983'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/10-tips-for-boosting-team-performance.html'>10 Tips for Boosting Team Performance</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-38765904903205983' itemprop='description articleBody'> As a Project Manager, your success depends on how well your team performs. So if you want to improve your team performance, then read these:<br />10 Tips for Boosting Team Performance<br />There are lots of different ways that you can boost your team performance. We've listed here our Top 10 Tips. We hope they help you...<br /><strong><span style="font-size:130%;">Tip 1: Show them the vision</span></strong><br />People only perform well in a role if they understand what it is that they need to deliver and why. For this reason, we suggest you get your team together to reinforce the project vision, objectives, timeframes and deadlines. Make your team feel wanted and needed by showing them that the project is critical to the success of the business. You will gain their buy-in and their commitment going forward.<br /><strong><span style="font-size:130%;">Tip 2: Meet them individually</span></strong><br />After your meeting, take each team member aside and tell them what it is that you need from them to help you deliver the project. Make sure they have a clear Job Description and they know how you are going to measure their performance. Ask them how they like to be managed, what motivates them and how you can support them in their role.<br /><strong><span style="font-size:130%;">Tip 3: Give them room</span></strong><br />At this point, you need to back off a little and give them room to perform. And if the pressure increases in your project, you need to give them more room than less. It's hard to do this, but you mustn't over-pressurize them or their performance will reduce, rather than improve.<br /><span style="font-size:130%;"><strong>Tip 4: Count the goals</strong><br /></span>As you back off, you need to put in place checks to measure their performance regularly. Meet with them individually every month to discuss their achievements, what's outstanding and how they can improve. Make sure you don't “bottle up” your concerns. Instead speak to them <span style="font-size:130%;">openly, keeping constructive at all times.<br /></span><strong><span style="font-size:130%;">Tip 5: Be positive</span><br /></strong>If you're stressed and weary, ease off on your staff. Shouting or being negative will only rub off on them. It's incredibly difficult but you need to be positive, reassuring and supporting them at all times, even if the project is delayed.<br /><strong><span style="font-size:130%;">Tip 6: Shake hands and pat backs</span></strong><br />It's easy to forget to praise your team's successes. So every time you deliver a great quality product, finish a difficult task on time or get great feedback from a customer—congratulate those responsible in your team.<br /><strong><span style="font-size:130%;">Tip 7: Meet at half time</span></strong><br />Get your team together regularly to build a strong team spirit. Get them socializing together, so that new friendships are formed. The stronger the bond your team have with each other, the more likely they will work together as a single cohesive unit and achieve the objectives you have set.<br /><strong><span style="font-size:130%;">Tips 8: Take time out</span></strong><br />Don't be afraid to give team members time off for working hard. By taking time out, it will reduce sick leave, improve motivation and increase efficiency.<br /><strong><span style="font-size:130%;">Tips 9: Give them what they need<br /></span></strong>Everyone is motivated by different things. You need to know what motivates every different member of your team. Get to know them well. If you can reward each person differently based on their motivations, then you'll improve their performance every time. This is the hardest trick in the book, but the one that pays the biggest dividends.<br /><strong><span style="font-size:130%;">Tip 10: Celebrate your wins!</span><br /></strong>Staff all too often finish a project and move straight onto the next one without celebrating its success. When they do this, they carry their stress and pressure into the next project they work on. So help your team to "start afresh" by celebrating your success at the end of the project.<br />By taking these 10 tips seriously, you will improve the performance of your team and boost your chances of success.<br /><br />Give your team the right tools to help them complete their work quickly and to a high level of quality. This builds personal pride in their work, improving motivation and performance. <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/10-tips-for-boosting-team-performance.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/10-tips-for-boosting-team-performance.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-08T17:19:00+03:00'>5:19 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/10-tips-for-boosting-team-performance.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=38765904903205983' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=38765904903205983&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='8493299101947289710' itemprop='postId'/> <a name='8493299101947289710'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/10-skills-developers-will-need-in-next.html'>10 skills developers will need in the next five years</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-8493299101947289710' itemprop='description articleBody'> <em><span style="font-size:85%;"> If you’re a developer looking to get ahead in your field (or in some cases, to simply stay employed), this is not a good time to be complacent. Justin James lists the skills you’ll want to work on now to maximize your future job prospects.</span></em><br />With the recent changes in the economy, a lot of developers are focused on their short-term job prospects. At the same time, it’s important to make sure that you get the most bang for your buck when it comes to taking the time and energy to learn new skills. Here is our list of 10 skills you should be learning right now to make sure that your resume is relevant for the next five years. The list is hardly exhaustive, and there are huge swaths of the industry it won’t cover (mainframe developers, for example). Nonetheless, for average mainstream development, you can’t go wrong learning at least seven of these skills — not only to the point where you can talk convincingly about them at a job interview, but actually use them on the job.<br /><strong>1: One of the “Big Three” (.NET, Java, PHP)</strong><br />Unless there is a radical shift in the development world (akin to an asteroid hitting Redmond), most developers will need to know at least one of the Big Three development systems — .NET (VB.NET or C#), Java, or PHP — for the near future. It’s not enough to know the core languages, either. As projects encompass more and more disparate functionality, you’ll need to know the associated frameworks and libraries more deeply.<br /><strong>2: Rich Internet Applications (RIAs)</strong><br />Love it or hate it, in the last few years, Flash is suddenly being used for more than just animations of politicians singing goofy songs. Flash has also sprouted additional functionality in the form or Flex and AIR. Flash’s competitors, such as JavaFx and Silverlight, are also upping the ante on features and performance. To make things even more complicated, HTML 5 is incorporating all sorts of RIA functionality, including database connectivity, and putting the formal W3C stamp on AJAX. In the near future, being an RIA pro will be a key resume differentiator.<br /><strong>3: Web development<br /></strong>Web development is not going away anytime soon. Many developers have been content to lay back and ignore the Web or to just stick to “the basics” their framework provides them with. But companies have been demanding more and more who really know how to work with the underlying technology at a “hand code” level. So bone up on JavaScript, CSS, and HTML to succeed over the next five years.<br /><strong>4: Web services<br /></strong>REST or SOAP? JSON or XML? While the choices and the answers depend on the project, it’s getting increasingly difficult to be a developer (even one not writing Web applications) without consuming or creating a Web service. Even areas that used to be ODBC, COM, or RPC domains are now being transitioned to Web services of some variety. Developers who can’t work with Web services will find themselves relegated to legacy and maintenance roles.<br /><strong>5: Soft skills<br /></strong>One trend that has been going for quite some time is the increasing visibility of IT within and outside the enterprise. Developers are being brought into more and more non-development meetings and processes to provide feedback. For example, the CFO can’t change the accounting rules without working with IT to update the systems. And an operations manager can’t change a call center process without IT updating the CRM workflow. Likewise, customers often need to work directly with the development teams to make sure that their needs are met. Will every developer need to go to Toastmasters or study How to Win Friends and Influence People? No. But the developers who do will be much more valuable to their employers — and highly sought after in the job market.<br /><strong>6: One dynamic and/or functional programming language</strong><br />Languages like Ruby, Python, F#, and Groovy still aren’t quite mainstream – but the ideas in them are. For example, the LINQ system in Microsoft’s .NET is a direct descendent of functional programming techniques. Both Ruby and Python are becoming hot in some sectors, thanks to the Rails framework and Silverlight, respectively. Learning one of these languages won’t just improve your resume, though; it will expand your horizons. Every top-flight developer I’ve met recommends learning at least one dynamic or functional programming language to learn new ways of thinking, and from personal experience, I can tell you that it works.<br /><strong>7: Agile methodologies</strong><br />When Agile first hit mainstream awareness, I was a skeptic, along with many other folks I know. It seemed to be some sort of knee-jerk reaction to tradition, throwing away the controls and standards in favor of anarchy. But as time went on, the ideas behind Agile became both better defined and better expressed. Many shops are either adopting Agile or running proof-of-concept experiments with Agile. While Agile is not the ultimate panacea for project failure, it does indeed have a place on many projects. Developers with a proven track record of understanding and succeeding in Agile environments will be in increasingly high demand over the next few years.<br /><strong>8: Domain knowledge</strong><br />Hand-in-hand with Agile methodologies, development teams are increasingly being viewed as partners in the definition of projects. This means that developers who understand the problem domain are able to contribute to the project in a highly visible, valuable way. With Agile, a developer who can say, “From here, we can also add this functionality fairly easily, and it will get us a lot of value,” or “Gee, that requirement really doesn’t match the usage patterns our logs show” will excel. As much as many developers resist the idea of having to know anything about the problem domain at all, it is undeniable that increasing numbers of organizations prefer (if not require) developers to at least understand the basics.<br /><strong>9: Development “hygiene”</strong><br />A few years ago, many (if not most) shops did not have access to bug tracking systems, version control, and other such tools; it was just the developers and their IDE of choice. But thanks to the development of new, integrated stacks, like the Microsoft Visual Studio Team System, and the explosion in availability of high quality, open source environments, organizations without these tools are becoming much less common. Developers must know more than just how to check code in and out of source control or how to use the VM system to build test environments. They need to have a rigorous habit of hygiene in place to make sure that they are properly coordinating with their teams. “Code cowboys” who store everything on a personal USB drive, don’t document which changes correspond to which task item, and so on, are unwelcome in more traditional shops and even more unwelcome in Agile environments, which rely on a tight coordination between team members to operate.<br /><strong>10: Mobile development</strong><br />The late 1990s saw Web development rise to mainstream acceptance and then begin to marginalize traditional desktop applications in many areas. In 2008, mobile development left the launch pad, and over the next five years, it will become increasingly important. There are, of course, different approaches to mobile development: Web applications designed to work on mobile devices, RIAs aimed at that market, and applications that run directly on the devices. Regardless of which of these paths you choose, adding mobile development to your skill set will ensure that you are in demand for the future.<br /><br />Source: <a href="http://blogs.techrepublic.com.com/10things/?p=643">http://blogs.techrepublic.com.com/10things/?p=643</a> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/10-skills-developers-will-need-in-next.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/10-skills-developers-will-need-in-next.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-08T11:29:00+03:00'>11:29 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/10-skills-developers-will-need-in-next.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=8493299101947289710' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=8493299101947289710&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='62615523823450575' itemprop='blogId'/> <meta content='5736944348048843051' itemprop='postId'/> <a name='5736944348048843051'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/f-function-key-tricks.html'>F (Function) - Key Tricks</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-5736944348048843051' itemprop='description articleBody'> <strong><span style="font-size:130%;">What the F-key?<br /></span></strong>See that line of keys ranging from F1 to F12 at the top of your keyboard? Wonder what all of 'em do? Yeah, so do I, and that's why today we're going to take a trip down funky f-key lane to discover the fun of Function Keys!<br />Function keys have many, many uses, some of which are specific to the program that's running at the time. They're mainly used as shortcuts or in conjunction with the CTRL, ALT, and Shift keys, which I'll get more into in another article.<br />For now, here are the basics of function keys F1 – F4.<br /><strong>F1-</strong> Typically pressing this brings up the help file for the program you're currently in. To test this, go ahead and left click on a blank area of your desktop, then press F1. The help file should spring to life, offering it's bounty of knowledge!<br /><strong>F2 –</strong> This F-key is used to rename stuff. Click on a file or folder and strike the F2 key; you'll be able to rename it with ease! This is a good one to know if you're zipping through a bunch of files you're archiving and you have a specific naming convention in mind. Click the file, press F2 and rename it! - wash, rinse, repeat!<br /><strong>F3 –</strong> Used to bring up the search function in Windows, but varies for other programs. Great for Internet Explorer and Firefox users who want to find a specific word or phrase on a web page with ease!<br /><strong>F4 –</strong> In Internet Explorer the F4 key opens the address bar. Even though I said I wouldn't be mentioning any extra key commands until later, I must mention that pressing ALT + F4 will close any active program. Careful with this one!<br />Function keys have many, many uses, some of which are specific to the program that's running at the time. They're mainly used as shortcuts or in conjunction with the CTRL, ALT, and Shift keys, which I'll cover in a later article.<br />Continuing on, here are the basics of function keys F5 – F8.<br /><strong>F5 –</strong> Refresh key. Use this key to reload a web page or refresh your desktop. This is a good one for both the Internet (good for Ebay bid battles) and apparent computer freezes which you can read about <a title="http://www.worldstart.com/tips/tips.php/3071" href="http://www.worldstart.com/tips/tips.php/3071">here</a>.<br /><strong>F6 –</strong> Cycles the cursor from field to field in the active program. In MS Word you can use this F-key to go to the next pane or frame.<br /><strong>F7 –</strong> This F-key is program-specific. Experiment in different programs to see what it can do, but remember to save your work first!<br /><strong>F8 –</strong> This key is used to boot Windows in Safe Mode<br />Function keys are pretty versatile, but some only have purpose specific to the program that's running at the time. They're mainly used as shortcuts or in conjunction with the CTRL, ALT, and Shift keys. We'll talk about that soon.<br />For now, here are the basics of function keys F9 – F12.<br /><strong>F9 –</strong> Another program-specific function key, I just call it “lazy”, though... Well, if you're using MS Word the F9 key will update the selected field, so that's one thing it can do!<br /><strong>F10 –</strong> This key is used to access the Menu Bar in programs (File, Edit, View, Etc.). Good for zapping up there if you need to access some of the menu functions.<br /><strong>F11 –</strong> Is used in Internet Explorer to toggle the full screen view, also known as “KIOSK” mode.<br /><strong>F12 –</strong> Another “lazy” key, although some individual programs may have functions assigned to it. In MS Word this can be used as the “Save As” command. <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/f-function-key-tricks.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/f-function-key-tricks.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-08T09:04:00+03:00'>9:04 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/f-function-key-tricks.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=5736944348048843051' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=5736944348048843051&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Saturday, April 4, 2009</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUWAHbxNz5JydQc9-dUr7KF06mwCds4SAG86YPYciApx6KIy2VCgT_i3xiHHiemnyTAvGQwfQ52qjZMlWB2PXf2jvU3nx5udJz5LFbCY2yJ39CuMtt54hAUPhfxA771MwJRIU-Lr-dIg/s200/OOP.jpg' itemprop='image_url'/> <meta content='62615523823450575' itemprop='blogId'/> <meta content='3082147474849954619' itemprop='postId'/> <a name='3082147474849954619'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='http://mavrasolutions.blogspot.com/2009/04/introduction-to-object-oriented.html'>Introduction to Object Oriented Programming Concepts (OOP)</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-3082147474849954619' itemprop='description articleBody'> <strong>1. </strong><a name="Introduction"><strong>Introduction</strong></a> I have noticed an increase in the number of articles published in the Architect category in code-project during the last few months. The number of readers for most of these articles is also high, though the ratings for the articles are not. This indicates that readers are interested in reading articles on Architecture, but the quality does not match their expectations. This article is a constructive attempt to group/ define/ explain all introductory concepts of software architecture for well seasoned developers who are looking to take their next step as system architects.<br />One day I read an article that said that the richest 2 percent own half the world's wealth. It also said that the richest 1 percent of adults owned 40 percent of global assets in the year 2000. And further, that the richest 10 percent of adults accounted for 85 percent of the world's total wealth. So there is an unbalanced distribution of wealth in the physical world. Have you ever thought of an unbalanced distribution of knowledge in the software world? According to my view point, the massive expansion of the software industry is forcing developers to use already implemented libraries, services and frameworks to develop software within ever shorter periods of time. The new developers are trained to use (I would say more often) already developed software components, to complete the development quicker. They just plug in an existing library and some how manage to achieve the requirements. But the sad part of the story is, that they never get a training to define, design the architecture for, and implement such components. As the number of years pass by, these developers become leads and also software architects. Their titles change, but the old legacy of not understanding, of not having any architectural experience continues, creating a vacuum of good architects. The bottom line is that only a small percentage of developers know how to design a truly object oriented system. The solution to this problem is getting harder every day as the aggressive nature of the software industry does not support an easy adjustment to existing processes, and also the related online teaching materials are either complex or less practical or sometimes even wrong. The most of them use impractical, irrelevant examples of shapes, animals and many other physical world entities to teach concepts of software architecture. There are only very few good business-oriented design references. Unfortunately, I myself am no exception and am a result of this very same system. I got the same education that all of you did, and also referred to the same resource set you all read.<br />Coming back to the initial point, I noticed that there is a knowledge gap, increasing every day, between the architects who know how to architect a system properly and the others who do not know. The ones, who know, know it right. But the ones, who do not know, know nothing. Just like the world’s wealth distribution, it is an unbalanced distribution of knowledge.<br /><strong>2. </strong><a name="Background"><strong>Background</strong></a> This article began after reading and hearing the questions new developers have, on basics of software architecture. There are some good articles out there, but still developers struggle to understand the basic concepts, and more importantly, the way to apply them correctly.<br />As I see it, newcomers will always struggle to understand a precise definition of a new concept, because it is always a new and hence unfamiliar idea. The one, who has experience, understands the meaning, but the one who doesn’t, struggles to understand the very same definition. It is like that. Employers want experienced employees. So they say, you need to have experience to get a job. But how the hell is one supposed to have that experience if no one is willing to give him a job? As in the general case, the start with software architecture is no exception. It will be difficult. When you start to design your very first system, you will try to apply everything you know or learned from everywhere. You will feel that an interface needs to be defined for every class, like I did once. You will find it harder to understand when and when not to do something. Just prepare to go through a painful process. Others will criticize you, may laugh at you and say that the way you have designed it is wrong. Listen to them, and learn continuously. In this process you will also have to read and think a lot. I hope that this article will give you the right start for that long journey.<br />“The knowledge of the actions of great men, acquired by long experience in contemporary affairs, and a continual study of antiquity” – I read this phrase when I was reading the book named “The Art of War”, seems applicable here, isn’t it?<br /><a name="Introduction"><strong>3. </strong></a><a name="Prerequisites"><strong>Prerequisites</strong> </a>This article is an effort to provide an accurate information pool for new developers on the basics of software architecture, focusing on Object Oriented Programming (OOP). If you are a developer, who has a minimum of three or more years of continuous development experience and has that hunger to learn more, to step-in to the next level to become a software architect, this article is for you.<br /><strong>4. </strong><a name="Content"><strong>The Main Content</strong></a><br /><strong>4.1. </strong><a name="Architecture"><strong>What is Software Architecture?</strong></a> Software Architecture is defined to be the rules, heuristics and patterns governing:<br />Partitioning the problem and the system to be built into discrete pieces<br />Techniques used to create interfaces between these pieces<br />Techniques used to manage overall structure and flow<br />Techniques used to interface the system to its environment<br />Appropriate use of development and delivery approaches, techniques and tools.<br /><strong>4.2. </strong><a name="important"><strong>Why Architecture is important?</strong></a><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUWAHbxNz5JydQc9-dUr7KF06mwCds4SAG86YPYciApx6KIy2VCgT_i3xiHHiemnyTAvGQwfQ52qjZMlWB2PXf2jvU3nx5udJz5LFbCY2yJ39CuMtt54hAUPhfxA771MwJRIU-Lr-dIg/s1600-h/OOP.jpg"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5320847371868622418" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUWAHbxNz5JydQc9-dUr7KF06mwCds4SAG86YPYciApx6KIy2VCgT_i3xiHHiemnyTAvGQwfQ52qjZMlWB2PXf2jvU3nx5udJz5LFbCY2yJ39CuMtt54hAUPhfxA771MwJRIU-Lr-dIg/s200/OOP.jpg" style="MARGIN: 0px 0px 10px 10px; WIDTH: 200px; FLOAT: right; HEIGHT: 92px; CURSOR: hand" /></a><br />The primary goal of software architecture is to define the non-functional requirements of a system and define the environment. The detailed design is followed by a definition of how to deliver the functional behavior within the architectural rules. Architecture is important because it:<br /><span style="font-size:85%;">Controls complexity<br />Enforces best practices<br />Gives consistency and uniformity<br />Increases predictability<br />Enables re-use.<br /></span><strong>4.3. </strong><a name="OOP"><strong>What is OOP?</strong></a> OOP is a design philosophy. It stands for Object Oriented Programming. Object-Oriented Programming (OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything in OOP is grouped as self sustainable "objects". Hence, you gain re-usability by means of four main object-oriented programming concepts.<br />In order to clearly understand the object orientation, let’s take your “hand” as an example. The “hand” is a class. Your body has two objects of type hand, named left hand and right hand. Their main functions are controlled/ managed by a set of electrical signals sent through your shoulders (through an interface). So the shoulder is an interface which your body uses to interact with your hands. The hand is a well architected class. The hand is being re-used to create the left hand and the right hand by slightly changing the properties of it.<br /><strong>4.4. </strong><a name="Object"><strong>What is an Object?</strong></a> An object can be considered a "thing" that can perform a set of related activities. The set of activities that the object performs defines the object's behavior. For example, the hand can grip something or a Student (object) can give the name or address.<br />In pure OOP terms an object is an instance of a class.<br /><strong>4.5. </strong><a name="Class"><strong>What is a Class?</strong></a><br />A class is simply a representation of a type of object. It is the blueprint/ plan/ template that<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI5rJa7ARpZbvAKga4spLxinDfkNebuCjaN_ZRJLcBk3RUbxLF7p2WqtRIkPmbM2UiIUIj3QSIs0rys25ztlAY6J0BL9Nw99dHPtXjXJR7ByL4VY5PPCSQu7m4Mxq5RCpzGKESRL5_5g/s1600-h/class.gif"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5320848049040553778" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI5rJa7ARpZbvAKga4spLxinDfkNebuCjaN_ZRJLcBk3RUbxLF7p2WqtRIkPmbM2UiIUIj3QSIs0rys25ztlAY6J0BL9Nw99dHPtXjXJR7ByL4VY5PPCSQu7m4Mxq5RCpzGKESRL5_5g/s200/class.gif" style="MARGIN: 0px 0px 10px 10px; WIDTH: 136px; FLOAT: right; HEIGHT: 129px; CURSOR: hand" /></a> describe the details of an object. A class is the blueprint from which the individual objects are created. Class is composed of three things: a name, attributes, and operations.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="0"> Copy Code</a>public class Student<br />{<br />}<br />According to the sample given below we can say that the student object, named objectStudent, has created out of the Student class.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="1"> Copy Code</a>Student objectStudent = new Student();<br />In real world, you'll often find many individual objects all of the same kind. As an example, there may be thousands of other bicycles in existence, all of the same make and model. Each bicycle has built from the same blueprint. In object-oriented terms, we say that the bicycle is an instance of the class of objects known as bicycles.<br />In the software world, though you may not have realized it, you have already used classes. For example, the TextBox control, you always used, is made out of the TextBox class, which defines its appearance and capabilities. Each time you drag a TextBox control, you are actually creating a new instance of the TextBox class.<br /><strong>4.6. </strong><a name="identify"><strong>How to identify and design a Class?</strong></a><strong><br /></strong>This is an art; each designer uses different techniques to identify classes. However according to Object Oriented Design Principles, there are five principles that you must follow when design a class,<br />SRP - The Single Responsibility Principle - A class should have one, and only one, reason to change.<br />OCP - The Open Closed Principle - You should be able to extend a classes behavior, without modifying it.<br />LSP - The Liskov Substitution Principle- Derived classes must be substitutable for their base classes.<br />DIP - The Dependency Inversion Principle- Depend on abstractions, not on concretions.<br />ISP - The Interface Segregation Principle- Make fine grained interfaces that are client specific.<br />For more information on design principles, please refer to <a title="What Is Object-Oriented Design?" href="http://www.objectmentor.com/omSolutions/oops_what.html">Object Mentor</a>.<br />Additionally to identify a class correctly, you need to identify the full list of leaf level functions/ operations of the system (granular level use cases of the system). Then you can proceed to group each function to form classes (classes will group same types of functions/ operations). However a well defined class must be a meaningful grouping of a set of functions and should support the re-usability while increasing expandability/ maintainability of the overall system.<br />In software world the concept of dividing and conquering is always recommended, if you start analyzing a full system at the start, you will find it harder to manage. So the better approach is to identify the module of the system first and then dig deep in to each module separately to seek out classes.<br />A software system may consist of many classes. But in any case, when you have many, it needs to be managed. Think of a big organization, with its work force exceeding several thousand employees (let’s take one employee as a one class). In order to manage such a work force, you need to have proper management policies in place. Same technique can be applies to manage classes of your software system as well. In order to manage the classes of a software system, and to reduce the complexity, the system designers use several techniques, which can be grouped under four main concepts named Encapsulation, Abstraction, Inheritance, and Polymorphism. These concepts are the four main gods of OOP world and in software term, they are called four main Object Oriented Programming (OOP) Concepts.<br /><strong>4.7. </strong><a name="Encapsulation"><strong>What is Encapsulation (or information hiding)?</strong></a> The encapsulation is the inclusion within a program object of all the resources need for the object to function - basically, the methods and the data. In OOP the encapsulation is mainly achieved by creating classes, the classes expose public methods and properties. The class is kind of a container or capsule or a cell, which encapsulate the set of methods, attribute and properties to provide its indented functionalities to other classes. In that sense, encapsulation also allows a class to change its internal implementation without hurting the overall functioning of the system. That idea of encapsulation is to hide how a class does it but to allow requesting what to do.<br />In order to modularize/ define the functionality of a one class, that class can uses functions/ properties exposed by another class in many different ways. According to Object Oriented Programming there are several techniques, classes can use to link with each other and they are named association, aggregation, and composition.<br />There are several other ways that an encapsulation can be used, as an example we can take the usage of an interface. The interface can be used to hide the information of an implemented class.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="2"> Copy Code</a>IStudent myStudent = new LocalStudent();<br />IStudent myStudent = new ForeignStudent();<br />According to the sample above (let’s assume that LocalStudent and ForeignStudent are implemented by the IStudent interface) we can see how LocalStudent and ForeignStudent are hiding their, localize implementing information through the IStudent interface.<br /><strong>4.8. </strong><a name="Association"><strong>What is Association?</strong></a> Association is a (*a*) relationship between two classes. It allows one object instance to cause another to perform an action on its behalf. Association is the more general term that define the relationship between two classes, where as the aggregation and composition are relatively special.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="3"> Copy Code</a>public class StudentRegistrar<br />{<br />public StudentRegistrar ();<br />{<br />new RecordManager().Initialize();<br />}<br />}<br />In this case we can say that there is an association between StudentRegistrar and RecordManager or there is a directional association from StudentRegistrar to RecordManager or StudentRegistrar use a (*Use*) RecordManager. Since a direction is explicitly specified, in this case the controller class is the StudentRegistrar.<br />To some beginners, association is a confusing concept. The troubles created not only by the association alone, but with two other OOP concepts, that is association, aggregation and composition. Every one understands association, before aggregation and composition are described. The aggregation or composition cannot be separately understood. If you understand the aggregation alone it will crack the definition given for association, and if you try to understand the composition alone it will always threaten the definition given for aggregation, all three concepts are closely related, hence must study together, by comparing one definition to another. Let’s explore all three and see whether we can understand the differences between these useful concepts.<br /><strong>4.9. </strong><a name="Composition"><strong>What is the difference between Association, Aggregation and Composition?</strong></a> Association is a (*a*) relationship between two classes, where one class use another. But aggregation describes a special type of an association. Aggregation is the (*the*) relationship between two classes. When object of one class has an (*has*) object of another, if second is a part of first (containment relationship) then we called that there is an aggregation between two classes. Unlike association, aggregation always insists a direction.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="4"> Copy Code</a>public class University<br />{<br />private Chancellor universityChancellor = new Chancellor();<br />}<br />In this case I can say that University aggregate Chancellor or University has an (*has-a*) Chancellor. But even without a Chancellor a University can exists. But a University cannot exist without Faculties, the life time of a University attached with the life time of its Faculty (or Faculties). If Faculties are disposed the University will not exist or wise versa. In that case we called that University is composed of Faculties. So that composition can be recognized as a special type of an aggregation.<br /><br />Same way, as another example, you can say that, there is a composite relationship in-between a KeyValuePairCollection and a KeyValuePair. The two mutually depend on each other.<br />.Net and Java uses the Composite relation to define their Collections. I have seen Composition is being used in many other ways too. However the more important factor, that most people forget is the life time factor. The life time of the two classes that has bond with a composite relation mutually depend on each other. If you take the .net Collection to understand this, there you have the Collection Element define inside (it is an inner part, hence called it is composed of) the Collection, farcing the Element to get disposed with the Collection. If not, as an example, if you define the Collection and it’s Element to be independent, then the relationship would be more of a type Aggregation, than a Composition. So the point is, if you want to bind two classes with Composite relation, more accurate way is to have a one define inside the other class (making it a protected or private class). This way you are allowing the outer class to fulfill its purpose, while tying the lifetime of the inner class with the outer class.<br />So in summary, we can say that aggregation is a special kind of an association and composition is a special kind of an aggregation. (Association->Aggregation->Composition)<br /><br /><strong>4.10. </strong><a name="Generalization"><strong>What is Abstraction and Generalization?</strong></a> Abstraction is an emphasis on the idea, qualities and properties rather than the particulars (a suppression of detail). The importance of abstraction is derived from its ability to hide irrelevant details and from the use of names to reference objects. Abstraction is essential in the construction of programs. It places the emphasis on what an object is or does rather than how it is represented or how it works. Thus, it is the primary means of managing complexity in large programs.<br />While abstraction reduces complexity by hiding irrelevant detail, generalization reduces complexity by replacing multiple entities which perform similar functions with a single construct. Generalization is the broadening of application to encompass a larger domain of objects of the same or different type. Programming languages provide generalization through variables, parameterization, generics and polymorphism. It places the emphasis on the similarities between objects. Thus, it helps to manage complexity by collecting individuals into groups and providing a representative which can be used to specify any individual of the group.<br />Abstraction and generalization are often used together. Abstracts are generalized through parameterization to provide greater utility. In parameterization, one or more parts of an entity are replaced with a name which is new to the entity. The name is used as a parameter. When the parameterized abstract is invoked, it is invoked with a binding of the parameter to an argument.<br /><strong>4.11. </strong><a name="Abstract"><strong>What is an Abstract class?</strong></a> Abstract classes, which declared with the abstract keyword, cannot be instantiated. It can only be used as a super-class for other classes that extend the abstract class. Abstract class is the concept and implementation gets completed when it is being realized by a subclass. In addition to this a class can inherit only from one abstract class (but a class may implement many interfaces) and must override all its abstract methods/ properties and may override virtual methods/ properties.<br />Abstract classes are ideal when implementing frameworks. As an example, let’s study the abstract class named LoggerBase below. Please carefully read the comments as it will help you to understand the reasoning behind this code.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="5"> Copy Code</a>public abstract class LoggerBase<br />{<br />/// <summary><br />/// field is private, so it intend to use inside the class only<br />/// </summary><br />private log4net.ILog logger = null;<br />/// <summary><br />/// protected, so it only visible for inherited class<br />/// </summary><br />protected LoggerBase()<br />{<br />// The private object is created inside the constructor<br />logger = log4net.LogManager.GetLogger(this.LogPrefix);<br />// The additional initialization is done immediately after<br />log4net.Config.DOMConfigurator.Configure();<br />}<br />/// <summary><br />/// When you define the property as abstract,<br />/// it forces the inherited class to override the LogPrefix<br />/// So, with the help of this technique the log can be made,<br />/// inside the abstract class itself, irrespective of it origin.<br />/// If you study carefully you will find a reason for not to have “set” method here.<br />/// </summary><br />protected abstract System.Type LogPrefix<br />{<br />get;<br />}<br />/// <summary><br />/// Simple log method,<br />/// which is only visible for inherited classes<br />/// </summary><br />/// <param name="message"></param><br />protected void LogError(string message)<br />{<br />if (this.logger.IsErrorEnabled)<br />{<br />this.logger.Error(message);<br />}<br />}<br />/// <summary><br />/// Public properties which exposes to inherited class<br />/// and all other classes that have access to inherited class<br />/// </summary><br />public bool IsThisLogError<br />{<br />get<br />{<br />return this.logger.IsErrorEnabled;<br />}<br />}<br />}The idea of having this class as an abstract is to define a framework for exception logging. This class will allow all subclass to gain access to a common exception logging module and will facilitate to easily replace the logging library. By the time you define the LoggerBase, you wouldn’t have an idea about other modules of the system. But you do have a concept in mind and that is, if a class is going to log an exception, they have to inherit the LoggerBase. In other word the LoggerBase provide a framework for exception logging.<br />Let’s try to understand each line of the above code.<br />Like any other class, an abstract class can contain fields, hence I used a private field named logger declare the ILog interface of the famous log4net library. This will allow the Loggerbase class to control, what to use, for logging, hence, will allow changing the source logger library easily.<br />The access modifier of the constructor of the LoggerBase is protected. The public constructor has no use when the class is of type abstract. The abstract classes are not allowed to instantiate the class. So I went for the protected constructor.<br />The abstract property named LogPrefix is an important one. It enforces and guarantees to have a value for LogPrefix (LogPrefix uses to obtain the detail of the source class, which the exception has occurred) for every subclass, before they invoke a method to log an error.<br />The method named LogError is protected, hence exposed to all subclasses. You are not allowed or rather you cannot make it public, as any class, without inheriting the LoggerBase cannot use it meaningfully.<br />Let’s find out why the property named IsThisLogError is public. It may be important/ useful for other associated classes of an inherited class to know whether the associated member logs its errors or not.<br />Apart from these you can also have virtual methods defined in an abstract class. The virtual method may have its default implementation, where a subclass can override it when required.<br />All and all, the important factor here is that all OOP concepts should be used carefully with reasons, you should be able to logically explain, why you make a property a public or a field a private or a class an abstract. Additionally, when architecting frameworks, the OOP concepts can be used to forcefully guide the system to be developed in the way framework architect’s wanted it to be architected initially.<br /><strong>4.12. </strong><a name="Interface"><strong>What is an Interface?</strong> </a>In summary the Interface separates the implementation and defines the structure, and this concept is very useful in cases where you need the implementation to be interchangeable. Apart from that an interface is very useful when the implementation changes frequently. Some say you should define all classes in terms of interfaces, but I think recommendation seems a bit extreme.<br />Interface can be used to define a generic template and then one or more abstract classes to define partial implementations of the interface. Interfaces just specify the method declaration (implicitly public and abstract) and can contain fields and properties (which are also implicitly public and abstract). Interface definition begins with the keyword interface. An interface like that of an abstract class cannot be instantiated.<br />If a class that implements an interface does not define all the methods of the interface, then it must be declared abstract and the method definitions must be provided by the subclass that extends the abstract class. In addition to this an interfaces can inherit other interfaces.<br />The sample below will provide an interface for our LoggerBase abstract class.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="6"> Copy Code</a>public interface ILogger<br />{<br />bool IsThisLogError { get; }<br />}<br /><strong>4.13. </strong><a name="difference"><strong>What is the difference between a Class and an Interface?</strong></a> In .Net/ C# a class can be defined to implement an interface and also it supports multiple implementations. When a class implements an interface, an object of such class can be encapsulated inside an interface.<br />If MyLogger is a class, which implements ILogger, there we can write<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="7"> Copy Code</a>ILogger log = new MyLogger();<br />A class and an interface are two different types (conceptually). Theoretically a class emphasis the idea of encapsulation, while an interface emphasis the idea of abstraction (by suppressing the details of the implementation). The two poses a clear separation from one to another. Therefore it is very difficult or rather impossible to have an effective meaningful comparison between the two, but it is very useful and also meaningful to have a comparison between an interface and an abstract class.<br /><strong>4.14. </strong><a name="What"><strong>What is the difference between an Interface and an Abstract class?</strong></a><br />There are quite a big difference between an interface and an abstract class, even though both look similar.<br />Interface definition begins with a keyword interface so it is of type interface<br />Abstract classes are declared with the abstract keyword so it is of type class<br />Interface has no implementation, but they have to be implemented.<br />Abstract class’s methods can have implementations and they have to be extended.<br />Interfaces can only have method declaration (implicitly public and abstract) and fields (implicitly public static)<br />Abstract class’s methods can’t have implementation only when declared abstract.<br />Interface can inherit more than one interfaces<br />Abstract class can implement more than one interfaces, but can inherit only one class<br />Abstract class must override all abstract method and may override virtual methods<br />Interface can be used when the implementation is changing<br />Abstract class can be used to provide some default behavior for a base class.<br />Interface makes implementation interchangeable<br />Interface increase security by hiding the implementation<br />Abstract class can be used when implementing framework<br />Abstract classes are an excellent way to create planned inheritance hierarchies and also to use as non-leaf classes in class hierarchies.<br />Abstract classes let you define some behaviors; they force your subclasses to provide others. For example, if you have an application framework, an abstract class can be used to provide the default implementation of the services and all mandatory modules such as event logging and message handling etc. This approach allows the developers to develop the application within the guided help provided by the framework.<br />However, in practice when you come across with some application-specific functionality that only your application can perform, such as startup and shutdown tasks etc. The abstract base class can declare virtual shutdown and startup methods. The base class knows that it needs those methods, but an abstract class lets your class admit that it doesn't know how to perform those actions; it only knows that it must initiate the actions. When it is time to start up, the abstract class can call the startup method. When the base class calls this method, it can execute the method defined by the child class.<br /><strong>4.15. </strong><a name="Implementations"><strong>What is Implicit and Explicit Interface Implementations?</strong></a><strong><br /></strong>As mentioned before .Net support multiple implementations, the concept of implicit and explicit implementation provide safe way to implement methods of multiple interfaces by hiding, exposing or preserving identities of each of interface methods, even when the method signatures are the same.<br />Let's consider the interfaces defined below.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="8"> Copy Code</a>interface IDisposable<br />{<br />void Dispose();<br />}<br />Here you can see that the class Student has implicitly and explicitly implemented the method named Dispose() via Dispose and IDisposable.Dispose.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="9"> Copy Code</a>class Student : IDisposable<br />{<br />public void Dispose()<br />{<br />Console.WriteLine("Student.Dispose");<br />}<br />void IDisposable.Dispose()<br />{<br />Console.WriteLine("IDisposable.Dispose");<br />}<br />}<br /><strong>4.16. </strong><a name="Inheritance"><strong>What is Inheritance?</strong></a><br />Ability of a new class to be created, from an existing class by extending it, is called inheritance.<br /><br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="10"> Copy Code</a>public class Exception<br />{<br />}<br />public class IOException : Exception<br />{<br />}<br />According to the above example the new class (IOException), which is called the derived class or subclass, inherits the members of an existing class (Exception), which is called the base class or super-class. The class IOException can extend the functionality of the class Exception by adding new types and methods and by overriding existing ones.<br />Just like abstraction is closely related with generalization, the inheritance is closely related with specialization. It is important to discuss those two concepts together with generalization to better understand and to reduce the complexity.<br />One of the most important relationships among objects in the real world is specialization, which can be described as the “is-a” relationship. When we say that a dog is a mammal, we mean that the dog is a specialized kind of mammal. It has all the characteristics of any mammal (it bears live young, nurses with milk, has hair), but it specializes these characteristics to the familiar characteristics of canis domesticus. A cat is also a mammal. As such, we expect it to share certain characteristics with the dog that are generalized in Mammal, but to differ in those characteristics that are specialized in cats.<br />The specialization and generalization relationships are both reciprocal and hierarchical. Specialization is just the other side of the generalization coin: Mammal generalizes what is common between dogs and cats, and dogs and cats specialize mammals to their own specific subtypes.<br />Similarly, as an example you can say that both IOException and SecurityException are of type Exception. They have all characteristics and behaviors of an Exception, That mean the IOException is a specialized kind of Exception. A SecurityException is also an Exception. As such, we expect it to share certain characteristic with IOException that are generalized in Exception, but to differ in those characteristics that are specialized in SecurityExceptions. In other words, Exception generalizes the shared characteristics of both IOException and SecurityException, while IOException and SecurityException specialize with their characteristics and behaviors.<br />In OOP, the specialization relationship is implemented using the principle called inheritance. This is the most common and most natural and widely accepted way of implement this relationship.<br /><strong>4.17. </strong><a name="Polymorphism"><strong>What is Polymorphisms?</strong></a> Polymorphisms is a generic term that means 'many shapes'. More precisely Polymorphisms means the ability to request that the same operations be performed by a wide range of different types of things.<br />At times, I used to think that understanding Object Oriented Programming concepts have made it difficult since they have grouped under four main concepts, while each concept is closely related with one another. Hence one has to be extremely careful to correctly understand each concept separately, while understanding the way each related with other concepts.<br />In OOP the polymorphisms is achieved by using many different techniques named method overloading, operator overloading and method overriding,<br /><strong>4.18. </strong><a name="Overloading"><strong>What is Method Overloading?</strong></a> The method overloading is the ability to define several methods all with the same name.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="11"> Copy Code</a>public class MyLogger<br />{<br />public void LogError(Exception e)<br />{<br />// Implementation goes here<br />}<br />public bool LogError(Exception e, string message)<br />{<br />// Implementation goes here<br />}<br />}<br /><strong>4.19. </strong><a name="Operator"><strong>What is Operator Overloading?</strong></a> The operator overloading (less commonly known as ad-hoc polymorphisms) is a specific case of polymorphisms in which some or all of operators like +, - or == are treated as polymorphic functions and as such have different behaviors depending on the types of its arguments.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="12"> Copy Code</a>public class Complex<br />{<br />private int real;<br />public int Real<br />{ get { return real; } }<br />private int imaginary;<br />public int Imaginary<br />{ get { return imaginary; } }<br />public Complex(int real, int imaginary)<br />{<br />this.real = real;<br />this.imaginary = imaginary;<br />}<br />public static Complex operator +(Complex c1, Complex c2)<br />{<br />return new Complex(c1.Real + c2.Real, c1.Imaginary + c2.Imaginary);<br />}<br />}<br />I above example I have overloaded the plus operator for adding two complex numbers. There the two properties named Real and Imaginary has been declared exposing only the required “get” method, while the object’s constructor is demanding for mandatory real and imaginary values with the user defined constructor of the class.<br /><strong>4.20. </strong><a name="Overriding"><strong>What is Method Overriding?</strong></a> Method overriding is a language feature that allows a subclass to override a specific implementation of a method that is already provided by one of its super-classes.<br />A subclass can give its own definition of methods but need to have the same signature as the method in its super-class. This means that when overriding a method the subclass's method has to have the same name and parameter list as the super-class's overridden method.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="13"> Copy Code</a>using System;<br />public class Complex<br />{<br />private int real;<br />public int Real<br />{ get { return real; } }<br />private int imaginary;<br />public int Imaginary<br />{ get { return imaginary; } }<br />public Complex(int real, int imaginary)<br />{<br />this.real = real;<br />this.imaginary = imaginary;<br />}<br />public static Complex operator +(Complex c1, Complex c2)<br />{<br />return new Complex(c1.Real + c2.Real, c1.Imaginary + c2.Imaginary);<br />}<br />public override string ToString()<br />{<br />return (String.Format("{0} + {1}i", real, imaginary));<br />}<br />}<br />In above example I have extended the implementation of the sample Complex class given under operator overloading section. This class has one overridden method named “ToString”, which override the default implementation of the standard “ToString” method to support the correct string conversion of a complex number.<br />Collapse<a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#" preid="14"> Copy Code</a>Complex num1 = new Complex(5, 7);<br />Complex num2 = new Complex(3, 8);<br />// Add two Complex numbers using the<br />// overloaded plus operator<br />Complex sum = num1 + num2;<br />// Print the numbers and the sum<br />// using the overriden ToString method<br />Console.WriteLine("({0}) + ({1}) = {2}", num1, num2, sum);<br />Console.ReadLine();<br /><strong>4.21. </strong><a name="case"><strong>What is a Use case?</strong></a><br />A use case is a thing an actor perceives from the system. A use case maps actors with functions. Importantly, the actors need not be people. As an example a system can perform the role of an actor, when it communicate with another system.<br />In another angle a use case encodes a typical user interaction with the system. In particular, it:<br />Captures some user-visible function.<br />Achieves some concrete goal for the user. A complete set of use cases largely defines the requirements for your system: everything the user can see, and would like to do. The below diagram contains a set of use cases that describes a simple login module of a gaming website.<br /><br /><strong>4.22. </strong><a name="Class_Diagram"><strong>What is a Class Diagram?</strong></a><strong><br /></strong>A class diagrams are widely used to describe the types of objects in a system and their relationships. Class diagrams model class structure and contents using design elements such as classes, packages and objects. Class diagrams describe three different perspectives when designing a system, conceptual, specification, and implementation. These perspectives become evident as the diagram is created and help solidify the design.<br />The Class diagrams, physical data models, along with the system overview diagram are in my opinion the most important diagrams that suite the current day rapid application development requirements. UML Notations:<br /><br /><strong>4.23. </strong><a name="Package"><strong>What is a Package Diagram?</strong></a> Package diagrams are used to reflect the organization of packages and their elements. When used to represent class elements, package diagrams provide a visualization of the name-spaces. In my designs, I use the package diagrams to organize classes in to different modules of the system.<br /><strong>4.24. </strong><a name="Sequence"><strong>What is a Sequence Diagram?</strong></a> A sequence diagrams model the flow of logic within a system in a visual manner, it enable both to document and validate your logic, and are used for both analysis and design purposes. Sequence diagrams are the most popular UML artifact for dynamic modeling, which focuses on identifying the behavior within your system.<br /><strong>4.25. </strong><a name="two-tier"><strong>What is two-tier architecture?</strong></a> The two-tier architecture is refers to client/ server architectures as well, the term client/ server was first used in the 1980s in reference to personal computers (PCs) on a network. The actual client/ server model started gaining acceptance in the late 1980s, and later it was adapted to World Wide Web programming.<br />According to the modern days use of two-tier architecture the user interfaces (or with ASP.NET, all web pages) runs on the client and the database is stored on the server. The actual application logic can run on either the client or the server. So in this case the user interfaces are directly access the database. Those can also be non-interface processing engines, which provide solutions to other remote/ local systems. In either case, today the two-tier model is not as reputed as the three-tier model. The advantage of the two-tier design is its simplicity, but the simplicity comes with the cost of scalability. The newer three-tier architecture, which is more famous, introduces a middle tier for the application logic.<br /><br /><strong>4.26. </strong><a name="three-tier"><strong>What is three-tier architecture?</strong></a> The three tier software architecture (also known as three layer architectures) emerged in the 1990s to overcome the limitations of the two tier architecture. This architecture has aggressively customized and adopted by modern day system designer to web systems.<br />Three-tier is a client-server architecture in which the user interface, functional process logic, data storage and data access are developed and maintained as independent modules, some time on separate platforms. The term "three-tier" or "three-layer", as well as the concept of multi-tier architectures (often refers to as three-tier architecture), seems to have originated within Rational Software.<br />The 3-Tier architecture has the following three tiers.<br />Presentation Tier or Web Server: User Interface, displaying/ accepting data/ input to/ from the user<br />Application Logic/ Business Logic/ Transaction Tier or Application Server: Data validation, acceptability check before being added to the database and all other business/ application specific operations<br />Data Tier or Database server: Simple reading and writing method to database or any other storage, connection, command, stored procedures etc<br /><strong>4.27. </strong><a name="MVC"><strong>What is MVC architecture?</strong></a> The Model-View-Controller (MVC) architecture separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes.<br />Unfortunately, the popularity of this pattern has resulted in a number of faulty usages; each technology (Java, ASP.NET etc) has defined it in their own way making it difficult to understand. In particular, the term "controller" has been used to mean different things in different contexts. The definitions given bellow are the closes possible ones I found for ASP.NET version of MVC.<br /><br />Model: DataSet and typed DataSet (some times business object, object collection, XML etc) are the most common use of the model.<br />View: The ASPX and ASCX files generally handle the responsibilities of the view.<br />Controllers: The handling of events or the controlling is usually done in the code-behind class. In a complex n-tier distributed system the MVC architecture place the vital role of organizing the presentation tier of the system.<br /><strong>4.28. </strong><a name="SOA"><strong>What is SOA?</strong></a> A service-oriented architecture is essentially a collection of services. These services communicate with each other. The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.<br />The .Net technology introduces the SOA by mean of web services.<br /><br />The SOA can be used as the concept to connect multiple systems to provide services. It has it's great share in the future of the IT world.<br />According to the imaginary diagram above, we can see how the Service Oriented Architecture is being used to provide a set of centralized services to the citizens of a country. The citizens are given a unique identifying card, where that card carries all personal information of each citizen. Each service centers such as shopping complex, hospital, station, and factory are equipped with a computer system where that system is connected to a central server, which is responsible of providing service to a city. As an example when a customer enter the shopping complex the regional computer system report it to the central server and obtain information about the customer before providing access to the premises. The system welcomes the customer. The customer finished the shopping and then by the time he leaves the shopping complex, he will be asked to go through a billing process, where the regional computer system will manage the process. The payment will be automatically handled with the input details obtain from the customer identifying card.<br />The regional system will report to the city (computer system of the city) while the city will report to the country (computer system of the country).<br /><strong>4.29. </strong><a name="DAL"><strong>What is the Data Access Layer?</strong></a> The data access layer (DAL), which is a key part of every n-tier system, is mainly consist of a simple set of code that does basic interactions with the database or any other storage device. These functionalities are often referred to as CRUD (Create, Retrieve, Update, and Delete).<br />The data access layer need to be generic, simple, quick and efficient as much as possible. It should not include complex application/ business logics.<br />I have seen systems with lengthy, complex store procedures (SP), which run through several cases before doing a simple retrieval. They contain not only most part of the business logic, but application logic and user interface logic as well. If SP is getting longer and complicated, then it is a good indication that you are burring your business logic inside the data access layer.<br /><strong>4.30. </strong><a name="BLL"><strong>What is the Business Logic Layer?</strong></a> I know for a fact that this is a question for most, but from the other hand by reading many articles I have become aware that not everyone agrees to what business logic actually is, and in many cases it's just the bridge in between the presentation layer and the data access layer with having nothing much, except taking from one and passing to the other. In some other cases, it is not even been well thought out, they just take the leftovers from the presentation layer and the data access layer then put them in another layer which automatically is called the business logic layer. However there are no god said things that cannot be changed in software world. You can change as and when you feel comfortable that the method you apply is flexible enough to support the growth of your system. There are many great ways, but be careful when selecting them, they can over complicating the simple system. It is a balance one needs to find with their experience.<br />As a general advice when you define business entities, you must decide how to map the data in your tables to correctly defined business entities. The business entities should meaningfully define considering various types of requirements and functioning of your system. It is recommended to identify the business entities to encapsulate the functional/ UI (User Interface) requirements of your application, rather than define a separate business entity for each table of your database. For example, if you want to combine data from couple of table to build a UI (User Interface) control (Web Control), implement that function in the Business Logic Layer with a business object that uses couple of data object to support with your complex business requirement.<br /><strong>4.31. </strong><a name="GOF"><strong>What is Gang of Four (GoF) Design Patterns?</strong></a> The Gang of Four (GoF) patterns are generally considered the foundation for all other patterns. They are categorized in three groups: Creational, Structural, and Behavioral. Here you will find information on these important patterns.<br />Creational Patterns<br />Abstract Factory Creates an instance of several families of classes<br />Builder Separates object construction from its representation<br />Factory Method Creates an instance of several derived classes<br />Prototype A fully initialized instance to be copied or cloned<br />Singleton A class of which only a single instance can exist<br />Structural Patterns<br />Adapter Match interfaces of different classes<br />Bridge Separates an object’s interface from its implementation<br />Composite A tree structure of simple and composite objects<br />Decorator Add responsibilities to objects dynamically<br />Facade A single class that represents an entire subsystem<br />Flyweight A fine-grained instance used for efficient sharing<br />Proxy An object representing another object<br />Behavioral Patterns<br />Chain of Resp. A way of passing a request between a chain of objects<br />Command Encapsulate a command request as an object<br />Interpreter A way to include language elements in a program<br />Iterator Sequentially access the elements of a collection<br />Mediator Defines simplified communication between classes<br />Memento Capture and restore an object's internal state<br />Observer A way of notifying change to a number of classes<br />State Alter an object's behavior when its state changes<br />Strategy Encapsulates an algorithm inside a class<br />Template Method Defer the exact steps of an algorithm to a subclass<br />Visitor Defines a new operation to a class without change<br /><strong>4.32. </strong><a name="DIFF"><strong>What is the difference between Abstract Factory and Builder design patterns?</strong></a><br />The two design patterns are fundamentally different. However, when you learn them for the first time, you will see a confusing similarity. So that it will make harder for you to understand them. But if you continue to study eventually, you will get afraid of design patterns too. It is like infant phobia, once you get afraid at your early age, it stays with you forever. So the result would be that you never look back at design patterns again. Let me see whether I can solve this brain teaser for you.<br />In the image below, you have both design pattern listed in. I am trying to compare the two one on one to identify the similarities. If you observe the figure carefully, you will see an easily understandable color pattern (same color is used to mark the classes that are of similar kind).<br /><br />Please follow up with the numbers in the image when reading the listing below.<br />Mark #1: Both patterns have used a generic class as the entry-class. The only difference is the name of the class. One pattern has named it as “Client”, while the other named it as “Director”. Mark #2: Here again the difference is the class name. It is “AbstractFactory” for one and “Builder” for the other. Additionally both classes are of type abstract. Mark #3: Once again both patterns have defined two generic (WindowsFactory & ConcreteBuilder) classes. They both have created by inheriting their respective abstract class. Mark #4: Finally, both seem to produce some kind of a generic output.<br />Now, where are we? Aren’t they looking almost identical? So then why are we having two different patterns here?<br />Let’s compare the two again side by side for one last time, but this time, focusing on the differences.<br />Abstract Factory: Emphasizes a family of product objects (either simple or complex)<br />Builder: Focuses on constructing a complex object step by step<br />Abstract Factory: Focus on *what* is made<br />Builder: Focus on *how* it is made<br />Abstract Factory: Focus on defining many different types of *factories* to build many *products*, and it is not a one builder for just one product<br />Builder: Focus on building a one complex but one single *product*<br />Abstract Factory: Defers the choice of what concrete type of object to make until run time<br />Builder: Hide the logic/ operation of how to compile that complex object<br />Abstract Factory: *Every* method call creates and returns different objects<br />Builder: Only the *last* method call returns the object, while other calls partially build the object<br />Sometimes creational patterns are complementary: So you can join one or many patterns when you design your system. As an example builder can use one of the other patterns to implement which components get built or in another case Abstract Factory, Builder, and Prototype can use Singleton in their implementations. So the conclusion would be that the two design patterns exist to resolve two type of business problems, so even though they look similar, they are not.<br />I hope that this shed some light to resolve the puzzle. If you still don’t understand it, then this time it is not you, it has to be me and it is since that I don’t know how to explain it.<br /><strong>5. </strong><a name="Conclusion"><strong>What is the Conclusion?</strong></a> I don't think, that it is realistic trying to make a programming language be everything to everybody. The language becomes bloated, hard to learn, and hard to read if everything plus the kitchen sink is thrown in. In another word every language has their limitations. As system architect and designer we should be able to fully and more importantly correctly (this also mean that you shouldn’t use a ballistic missile to kill a fly or hire FBI to catch the fly) utilize the available tools and features to build usable, sustainable, maintainable and also very importantly expandable software systems, that fully utilize the feature of the language to bring a competitively advance system to their customers. In order to do it, the foundation of a system places a vital role. The design or the architecture of a software system is the foundation. It hold the system together, hence designing a system properly (this never mean an *over* desinging) is the key to the success. When you talk about designing a software system, the correct handling of OOP concept is very important. I have made the above article richer with idea but still kept it short so that one can learn/ remind all of important concept at a glance. Hope you all will enjoy reading it.<br /><br />Source: <a href="http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx">http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx</a> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03667911252458341664' itemprop='url'/> <a class='g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' title='author profile'> <span itemprop='name'>Masood H.Virk</span> </a> </span> </span> <span class='post-timestamp'> at <meta content='http://mavrasolutions.blogspot.com/2009/04/introduction-to-object-oriented.html' itemprop='url'/> <a class='timestamp-link' href='http://mavrasolutions.blogspot.com/2009/04/introduction-to-object-oriented.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2009-04-04T17:37:00+03:00'>5:37 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='http://mavrasolutions.blogspot.com/2009/04/introduction-to-object-oriented.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post.g?blogID=62615523823450575&postID=3082147474849954619' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-773996126'> <a href='https://www.blogger.com/post-edit.g?blogID=62615523823450575&postID=3082147474849954619&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> </div> <div class='blog-pager' id='blog-pager'> <span id='blog-pager-newer-link'> <a class='blog-pager-newer-link' href='http://mavrasolutions.blogspot.com/search?updated-max=2012-06-19T09:32:00%2B03:00&max-results=3&reverse-paginate=true' id='Blog1_blog-pager-newer-link' title='Newer Posts'>Newer Posts</a> </span> <span id='blog-pager-older-link'> <a class='blog-pager-older-link' href='http://mavrasolutions.blogspot.com/search?updated-max=2009-04-04T17:37:00%2B03:00&max-results=3' id='Blog1_blog-pager-older-link' title='Older Posts'>Older Posts</a> </span> <a class='home-link' href='http://mavrasolutions.blogspot.com/'>Home</a> </div> <div class='clear'></div> <div class='blog-feeds'> <div class='feed-links'> Subscribe to: <a class='feed-link' href='http://mavrasolutions.blogspot.com/feeds/posts/default' target='_blank' type='application/atom+xml'>Posts (Atom)</a> </div> </div> </div><div class='widget HTML' data-version='1' id='HTML1'> <h2 class='title'>Google Ads by Mavra</h2> <div class='widget-content'> <script type="text/javascript"><!-- google_ad_client = "pub-9490004189399799"; google_ad_host = "pub-1556223355139109"; /* 728x90, created 4/21/09 */ google_ad_slot = "3190675278"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> </div> <div class='clear'></div> </div><div class='widget Profile' data-version='1' id='Profile1'> <h2>About Me</h2> <div class='widget-content'> <a href='https://www.blogger.com/profile/03667911252458341664'><img alt='My photo' class='profile-img' height='80' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7uIQVODJAOJij77CaWqPRvffbS0IMMLaZgDYeLIcfKGVkQTKhQi_C9Npw2HLg2MErBYAltSSMc-VsZdW5HfGDyXN3EbACPVhvetwWYvUWgcmOHSFFf_DJgpc8rwj5dg/s220/LOGOMavratr.jpg' width='65'/></a> <dl class='profile-datablock'> <dt class='profile-data'> <a class='profile-name-link g-profile' href='https://www.blogger.com/profile/03667911252458341664' rel='author' style='background-image: url(//www.blogger.com/img/logo-16.png);'> Masood H.Virk </a> </dt> <dd class='profile-data'>Jeddah, Makkah, Saudi Arabia</dd> <dd class='profile-textblock'>for more details www.inhousetoday.com</dd> </dl> <a class='profile-link' href='https://www.blogger.com/profile/03667911252458341664' rel='author'>View my complete profile</a> <div class='clear'></div> </div> </div></div> </div> </div> <div class='column-left-outer'> <div class='column-left-inner'> <aside> </aside> </div> </div> <div class='column-right-outer'> <div class='column-right-inner'> <aside> <div class='sidebar section' id='sidebar-right-1'><div class='widget BlogArchive' data-version='1' id='BlogArchive1'> <h2>Blog Archive</h2> <div class='widget-content'> <div id='ArchiveList'> <div id='BlogArchive1_ArchiveList'> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2014/'> 2014 </a> <span class='post-count' dir='ltr'>(4)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2014/05/'> May </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2014/04/'> April </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2014/01/'> January </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2013/'> 2013 </a> <span class='post-count' dir='ltr'>(10)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2013/07/'> July </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2013/06/'> June </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2013/05/'> May </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2013/03/'> March </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2013/01/'> January </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2012/'> 2012 </a> <span class='post-count' dir='ltr'>(13)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2012/11/'> November </a> <span class='post-count' dir='ltr'>(5)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2012/06/'> June </a> <span class='post-count' dir='ltr'>(8)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2011/'> 2011 </a> <span class='post-count' dir='ltr'>(2)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2011/06/'> June </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2011/04/'> April </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2009/'> 2009 </a> <span class='post-count' dir='ltr'>(22)</span> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2009/05/'> May </a> <span class='post-count' dir='ltr'>(7)</span> <ul class='posts'> <li><a href='http://mavrasolutions.blogspot.com/2009/05/complete-url-rewriting-solution-for.html'>A Complete URL Rewriting Solution for ASP.NET 2.0</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/05/10-tips-to-go-from-beginner-to.html'>10 tips to go from a beginner to intermediate deve...</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/05/what-if-i-like-my-desktop-messy.html'>What if I like my Desktop Messy?</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/05/how-can-i-make-my-blog-load-faster.html'>How can I make my blog load faster?</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/05/search-engine-optimization-seo-and-asp.html'>Search Engine Optimization (SEO) and ASP.NET Devel...</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/05/top-10-professions-in-pakistan-and.html'>Top 10 Professions in Pakistan and salary packages</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/05/can-be-very-usefull-in-programming-data.html'>Can be very usefull in programming DATA related ro...</a></li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2009/04/'> April </a> <span class='post-count' dir='ltr'>(13)</span> <ul class='posts'> <li><a href='http://mavrasolutions.blogspot.com/2009/04/top-10-reasons-to-work-at-google.html'>Top 10 Reasons to Work at Google</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/populating-winform-controls-with-ado.html'>Populating WinForm Controls with ADO.NETThis tutor...</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/ten-ways-to-improve-your-website.html'>Ten Ways To Improve Your Website Conversion Rate</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/how-to-enumerate-sql-server-database.html'>How to Enumerate SQL Server database Instances</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/programmers-and-it-failure.html'>Programmers and IT failure</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/10-tips-for-boosting-team-performance.html'>10 Tips for Boosting Team Performance</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/10-skills-developers-will-need-in-next.html'>10 skills developers will need in the next five years</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/f-function-key-tricks.html'>F (Function) - Key Tricks</a></li> <li><a href='http://mavrasolutions.blogspot.com/2009/04/introduction-to-object-oriented.html'>Introduction to Object Oriented Programming Concep...</a></li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='http://mavrasolutions.blogspot.com/2009/03/'> March </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> </li> </ul> </div> </div> <div class='clear'></div> </div> </div><div class='widget AdSense' data-version='1' id='AdSense1'> <div class='widget-content'> <script type="text/javascript"><!-- google_ad_client="pub-9490004189399799"; google_ad_host="pub-1556223355139109"; google_ad_width=200; google_ad_height=200; google_ad_format="200x200_as"; google_ad_type="text_image"; google_ad_host_channel="0001+S0006+L0001"; google_color_border="B8A80D"; google_color_bg="F6F6F6"; google_color_link="B8A80D"; google_color_url="999999"; google_color_text="000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <div class='clear'></div> </div> </div><div class='widget Followers' data-version='1' id='Followers1'> <h2 class='title'>Followers</h2> <div class='widget-content'> <div id='Followers1-wrapper'> <div style='margin-right:2px;'> <div><script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <div id="followers-iframe-container"></div> <script type="text/javascript"> window.followersIframe = null; function followersIframeOpen(url) { gapi.load("gapi.iframes", function() { if (gapi.iframes && gapi.iframes.getContext) { window.followersIframe = gapi.iframes.getContext().openChild({ url: url, where: document.getElementById("followers-iframe-container"), messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { '_ready': function(obj) { window.followersIframe.getIframeEl().height = obj.height; }, 'reset': function() { window.followersIframe.close(); followersIframeOpen("https://www.blogger.com/followers.g?blogID\x3d62615523823450575\x26colors\x3dCgt0cmFuc3BhcmVudBILdHJhbnNwYXJlbnQaByM0NDQ0NDQiByMzNzc4Y2QqByNlZWVlZWUyByM0NDQ0NDQ6ByM0NDQ0NDRCByMzNzc4Y2RKByM2NjY2NjZSByMzNzc4Y2RaC3RyYW5zcGFyZW50\x26pageSize\x3d21\x26origin\x3dhttp://mavrasolutions.blogspot.com/"); }, 'open': function(url) { window.followersIframe.close(); followersIframeOpen(url); }, 'blogger-ping': function() { } } }); } }); } followersIframeOpen("https://www.blogger.com/followers.g?blogID\x3d62615523823450575\x26colors\x3dCgt0cmFuc3BhcmVudBILdHJhbnNwYXJlbnQaByM0NDQ0NDQiByMzNzc4Y2QqByNlZWVlZWUyByM0NDQ0NDQ6ByM0NDQ0NDRCByMzNzc4Y2RKByM2NjY2NjZSByMzNzc4Y2RaC3RyYW5zcGFyZW50\x26pageSize\x3d21\x26origin\x3dhttp://mavrasolutions.blogspot.com/"); </script></div> </div> </div> <div class='clear'></div> </div> </div></div> </aside> </div> </div> </div> <div style='clear: both'></div> <!-- columns --> </div> <!-- main --> </div> </div> <div class='main-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> <footer> <div class='footer-outer'> <div class='footer-cap-top cap-top'> <div class='cap-left'></div> <div class='cap-right'></div> </div> <div class='fauxborder-left footer-fauxborder-left'> <div class='fauxborder-right footer-fauxborder-right'></div> <div class='region-inner footer-inner'> <div class='foot no-items section' id='footer-1'></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='foot no-items section' id='footer-2-1'></div> </td> <td class='columns-cell'> <div class='foot no-items section' id='footer-2-2'></div> </td> </tr> </tbody> </table> <!-- outside of the include in order to lock Attribution widget --> <div class='foot section' id='footer-3' name='Footer'><div class='widget Attribution' data-version='1' id='Attribution1'> <div class='widget-content' style='text-align: center;'> Awesome Inc. theme. Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>. </div> <div class='clear'></div> </div></div> </div> </div> <div class='footer-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </footer> <!-- content --> </div> </div> <div class='content-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </div> <script type='text/javascript'> window.setTimeout(function() { document.body.className = document.body.className.replace('loading', ''); }, 10); </script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/4290687098-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AOuZoY59wAAu5PLRsWML1r4cFNCCw_mGFA:1714691833184';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d62615523823450575','//mavrasolutions.blogspot.com/2009/','62615523823450575'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '62615523823450575', 'title': 'MAVRA - Digital Technology', 'url': 'http://mavrasolutions.blogspot.com/2009/', 'canonicalUrl': 'http://mavrasolutions.blogspot.com/2009/', 'homepageUrl': 'http://mavrasolutions.blogspot.com/', 'searchUrl': 'http://mavrasolutions.blogspot.com/search', 'canonicalHomepageUrl': 'http://mavrasolutions.blogspot.com/', 'blogspotFaviconUrl': 'http://mavrasolutions.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en', 'localeUnderscoreDelimited': 'en', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22MAVRA - Digital Technology - Atom\x22 href\x3d\x22http://mavrasolutions.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22MAVRA - Digital Technology - RSS\x22 href\x3d\x22http://mavrasolutions.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22MAVRA - Digital Technology - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/62615523823450575/posts/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-9490004189399799', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/a26ecadc30bb77e6', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'Twitter', 'key': 'twitter', 'shareMessage': 'Share to Twitter', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'archive', 'pageName': '2009', 'pageTitle': 'MAVRA - Digital Technology: 2009'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard!', 'ok': 'Ok', 'postLink': 'Post Link'}}, {'name': 'template', 'data': {'name': 'Awesome Inc.', 'localizedName': 'Awesome Inc.', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': false, 'variant': 'light', 'variantId': 'light'}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'MAVRA - Digital Technology', 'description': '', 'url': 'http://mavrasolutions.blogspot.com/2009/', 'type': 'feed', 'isSingleItem': false, 'isMultipleItems': true, 'isError': false, 'isPage': false, 'isPost': false, 'isHomepage': false, 'isArchive': true, 'isLabelSearch': false, 'archive': {'year': 2009, 'rangeMessage': 'Showing posts from 2009'}}}]); _WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/1666805145-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/13464135-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'main', document.getElementById('HTML1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_ProfileView', new _WidgetInfo('Profile1', 'main', document.getElementById('Profile1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar-right-1', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AdSenseView', new _WidgetInfo('AdSense1', 'sidebar-right-1', document.getElementById('AdSense1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_FollowersView', new _WidgetInfo('Followers1', 'sidebar-right-1', document.getElementById('Followers1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull')); </script> </body> </html>