Jump to content

Design Methods vs. Design Patterns


guinbRo

Recommended Posts

So I've been trying to get more savvy with the programming lingo.  I'm a first year CS student, but I've messed with PHP for about a year to a year and a half.  I'm not that great at much, but I'm having fun learning some of the basics of data structures and algorithms (mergesort, quicksort, graphs, ahh the list goes on). 

 

One thing my professors haven't covered yet has been design methods and design patterns.  I've seen these words tossed around before in peer-reviewed journals and such but basic web searches as they apply to programming don't really tell me too much about them.  Any chance of someone putting it in laymans terms? 

 

Thanks,

 

guinbrO

Link to comment
Share on other sites

I've never heard the term "design method", but a design pattern is basically just a way of solving a fairly common problem. For example, have you ever wanted to make a class that stores a bunch of data so it's all available in one place? There's a design pattern for that. Ever wanted to make sure that only one instance of a class exists and others can't be created? There's a design pattern for that too. Ever seen a really complicated class and felt like making another class that's much easier to use? Guess what?

 

Google it. There's a ton of information out there on the subject.

Link to comment
Share on other sites

Ah that makes more sense, thanks.  I wonder where I picked up design methods, I probably meant something else entirely  :P.  Anyways I think I'm starting to understand it then, a design pattern could be something like creating a class to handle MySQL queries to make your life simpler. 

Link to comment
Share on other sites

Link to comment
Share on other sites

Thanks for the reads.  I'm getting the concept a bit more.  I've been studying up on the MVC idea, and I've been getting a stronger hold on OOP since I've been learning Java.  It's amazing, the more you learn, the more you want to learn!  8)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.