Tuesday, 20 February 2007

Patterns – How I see it

Pattern as a whole is about defining a solution of a particular problem (Under specific context) that occurs over and over again. The main idea or purpose is to create reusable solution to a recurring problem.

Even though the idea of pattern was first adopted by the Civil Engineer Christopher Alexander, patterns have roots in many disciplines, including literate programming, and most notably in Alexander's work on urban planning and building architecture. (Alexander, 1977) [1]. The goal of the pattern community is to build a body of literature to support design and development in general. There is less focus on technology than on a culture to document and support sound design. Using pattern in project can speed up the project process by providing tested and proven development paradigms.

Patterns are…
ü Solutions to recurring problems of design
ü Practical/Abstract solutions to real world problems
ü Context specific
ü "Best-fits" for the given set of concerns/trade-offs
ü "Old hat" to seasoned professionals and domain experts
ü A literary form for documenting best practices
ü A shared vocabulary for problem-solving discussions
ü An effective means of (re)using and building upon existing wisdom/experience/expertise
ü Massively hyped!

Patterns help us because they…
ü Solve recurring problems
ü Capture knowledge/expertise from certain domain
ü Document design decisions and rationale
ü Reuse wisdom and experience of master practitioners
ü Convey expert insight to novices
ü Form a shared vocabulary for problem-solving discussion
ü Show more than just the solution:
-context (when and where)
-forces (trade-off alternatives, misfits, goals + constraints)
-resolution (how and why the solution balances the forces)

A Pattern in everyday life
Name: Turning off Windows Automatic Update.

Problem: The Automatic Update icon of Windows Security Centre is constantly on the system tray and keeps popping up security and automatic update messages every few minutes. How to get rid of the annoying Security Centre messages and update Windows when you are free rather than letting it keep bothering you?

Context: The Windows Security Centre keeps checking for the updates available if the computer is online and notifies the user. Even if the computer is not connected to the internet, it keeps telling the user about updating the computer. This process loads along with Windows and it keeps an icon in the system tray which keeps popping up a message every few minutes. Sometimes it is very disturbing when you are doing something important and in no mood of losing concentration. It can be scheduled but it still is annoying. Moreover, as it loads every time when windows boots up, it uses a share of the RAM which might make other programs and the computer work slow.

Forces: Windows is designed in a way that it will keep checking for the updates as Microsoft knows about the loopholes or bugs in their Operating system. Besides, hundreds of new virus threats are coming up every day. To protect the PC against all the threats, updates need to be installed. Even Antivirus Software is installed in the computer, Automatic Update is still necessary as it not only updates for security threats but also updates for smoothly running Windows Operating System.

Solution**: Windows Security Centre can be disabled following the steps below-
Ø Go to Start > Control Panel.
Ø Double click on Administrative Tools.
Ø Double click on Services.
Ø When the Services Window comes up, scroll down to find Security Center.
Ø Double click on Security Center.
Ø The Security Center Properties window pops up. On the window you will find four buttons in a row… Start, Stop, Pause and Resume. Click on Stop. That will stop the programme.
Ø Go to the Startup type combo box field and select Disable.
Ø Click Apply and then click OK.
Ø Restart the computer.

Caution: As this solution permanently stops Security Centre and automatic update, don’t forget to check for updates manually and update your computer occasionally to keep Mr Windows up to date so that it can not let you down one more time.

** This solution is completely free of any risk and it is totally up to you whether you want to apply the solution or not. I hold no responsibility for any kind of Security issues or problems that might occur because of permanently disabling Security Center and Automatic Update on your Computer.


Reference:
[1] A Pattern Definition
URL: http://hillside.net/patterns/definition.html
Viewed On: 8 February 2007

4 comments:

Imtiaz said...

Good work. Helped me to understand the concept "Pattern". Use of diagrams would have been useful.

Anonymous said...

Hi Zaman
An appropriate example for this heading. Again a very interesting problem which is our daily life experience. Your solution is good. I would suggest that for windows update icon problem a small program or application should be developed(compatible with Microsoft windows and legal) to keep all these tasks of users need in database and allow user to put reminder on them. You can have reminder available these days but I am talking about application which can be customised according to users needs (that is managing update icons).

Anonymous said...

Hay Zaman

This is a very nice piece of work, which explains very cleary what a pattern and why we need it in the software practice.

M Nuruzzaman said...

Thanks Majid. "Compatible with Microsoft Windows and legal" ... ermmm... Your suggestion is good but I'm really not sure how exactly would that work- Disabling Automatic Update with a small program (By someone) that is compatible with Microsoft and Legal... I don't think Bill Gates will be impressed to learn about your solution :) Thanks for sharing your thoughts.