Reusable Code

April 22, 2011 No Comments

As a web developer you are probably familiar with this concept: Reusable Code. For some of us (like me) it was pounded in your head throughout school and I have to say it has definitely made my life easier. Reusable Code is just as it suggests: useful code that you can use in many different projects so you don’t waste needless time rewriting the same code. What you want to do it make your code broad so that it will fit into many different situations. For example if I want to make a contact form in ASP.NET I know that not everybody has the same parameters (options) in their form but 90% of the time there’s going to be a name, number, email, and message. So I program a method (code tidbit) that has these parameters. If I need to add more then everything is already set up for me all I have to add is add the parameter and what to do with it. Another example is javascript/JQuery plugins. I personally save a lot of my javascript plugins for future use – maybe I can use an old plugin, manipulate it, and throw it as a new gallery but either way I don’t have to search or code a brand new plugin every time I have to make a gallery of some kind. Do you practice Reusable Code?

 

What kind of example can you give of using Reusable Code?

Reusable Code

By – Alex Miller

Tags: , , , , , , , , , , , , ,

Web Pointers

Sorry, the comment form is closed at this time.

Recent News

How To Spring Clean Your Website

How To Spring Clean Your Website

Published May 17, 2012
What is Inbound Marketing and How Will it Help Your Business Grow?

What is Inbound Marketing and How Will it Help Your Business Grow?

Published May 17, 2012
Get Some Help: Interior Design and Marketing

Get Some Help: Interior Design and Marketing

Published May 15, 2012
Organic Undies

Organic Undies

Published May 14, 2012
File Sharing is Holy

File Sharing is Holy

Published May 13, 2012
Unlearning Your Learning

Unlearning Your Learning

Published May 12, 2012
What does Eco-friendly Mean?

What does Eco-friendly Mean?

Published May 11, 2012
How To Hire A Contractor

How To Hire A Contractor

Published May 10, 2012
Get Involved: Anthony Smith 3 on 3 Basketball Tournament

Get Involved: Anthony Smith 3 on 3 Basketball Tournament

Published May 9, 2012
Tips For Aspiring Web Developers

Tips For Aspiring Web Developers

Published May 8, 2012
Mother’s Day vs. Mother Earth

Mother’s Day vs. Mother Earth

Published May 7, 2012
Artist Spotlight: Tara McPherson

Artist Spotlight: Tara McPherson

Published May 6, 2012



Follow

Get every new post delivered to your Inbox

Join other followers: