Content

Software Programming Patterns

submitted on 26th Jan 2005. A part of Articles.  submit an article

written by owen

It is important to understand why some programmers write code differently from other programmers and the reasoning behind each block or section of code. This article is not directed at any particular language or style of programming, it is a discussion of the differences computer code which is written to solve various problems. The patterns may overlap but nothing is ever defined specifically and are to be considered as a general overview.

Error Reduction

At some point code may be written in order to reduce errors that may arise at a late point in time. In a computer program a error can arise at any point in anytime and for any random reason. In order to reduce the effects of such an occurrence some parts of a program might be written in order to reduce the effect of such an error.

Read Ability

The code is written so that it is easy to read by anybody that may happen to decide to read it at some point in the future. Sometimes also referred to as clean code but clean code is also relative to the experience of the reader.

Efficiency

The code is written so that it can make the best use of computer resources. This does not necessarily mean it is fast, easy to read or reduces possible errors.

Speed

Falls under 2 forms speed of execution and speed of development. Speed of execution involves writing the program so that it can run as fast as possible in the expected operating environment. Speed of development means it is written so the application can evolve or change at a high rate.

Simplicity

The code is written so that it is simple. Simplicity is relative but usually it spreads rapidly. Simple to read, update, integrate, extend etc.

Stability

The code is written so that it does not crash easily either by internal or external forces. Usually maximizing scalability and robustness.

Reusability

The code is written so that it can not only be used to solve the current problem but many future problems as well.

Friendliness

Code usually falls into 2 forms programmer friendly and user friendly. The first form is code written in order to make it easier to re-write or update. While the second form is directed towards code written in order to improve user interface efficiency. Code can also be language friendly, hardware friendly, etc.

Dependency

Often times code is written so that it is very dependent or very independent for whatever reason.

Conclusion

The patterns outlined are usually not mutually exclusive and it is often not possible to maintain a constant pattern through out an application. As to whether a pattern is more advantageous than another is dependent on several variables.

permanent link, visited 1450 times.

comments

  1. i don't think practibility of this logic in real cases

    by sandeep thakur ( Wed, 22nd Mar 2006 at 6:04 am )


Post your comments on this article


add picture, your website and other options

More or less

Ship 1 by owen

Pool 1 by owen

6 Love 2 by Mad Bull

Soyamilk - cherry 1 by owen

View from 32 2 by SE

Info

JAMAICA FREE Classifieds

There have been 5 new comments since yesterday.


We were just wondering where we could purchase our very own Owensoft... we're planning on staging a mudwrestling match between it and our Microsoft...winner gets to take on Adobe Acrobat Reader (which has been known to fight DIRTY let me tell you). Thanks for visiting our site, Lori and Cutcha - Lori and Cutcha ( San Diego, CA )


Hi Owen, long time, no see. Good luck with Dean, from what I can see on the maps it's coming in now. - Vegard ( Oslo, Norway )


I'm definitely feeling the design and content. Well put together site.Keep up the great work! - Keith - Caribbean Ideas ( San Fernando, Trinidad )


owen! its been a while since i last visited. i love the new look. very funky (sorry couldnt think of a cooler word). - me ( australia )


hey very interesting stuffs here, luv ur photo too . keep up the good work! - adia ( thailand )


just found the site...haven't read much but i'll be back... - Nadya Dee ( Mid-town, Jah-mek-yah )


Hey Owen thanx for visiting my website, its sort of dead right now as i lost some data for the downloads and forum but I will bring it up to speed in the next week. - Cipher ( Grenada )


you do have mad web development skills. you should change 'teachs' to 'teaches' - cor ( los angeles )