Results 1 to 5 of 5

Thread: Purpose of frameworks

  1. #1
    KartikRoxx is offline Unknown Net Builder
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Purpose of frameworks

    I am new to web development and have been learning new things, but i don't understand the purpose of frameworks like wordpress and all. I mean why should i prefer them if i want to set up a site of my own?

  2. #2
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    First thing, Wordpress is a CMS - or content management system. These are good for making it very easy to add and manage content. They provide a good platform to build a website on top of. There are many plugins and can make complicated tasks easier by using code someone else already wrote for the job.

    A framework would be something like Symfony (symfony.com) or cake php. Frameworks provide a base set of code to work within. The actual features within frameworks vary greatly, but an example would be a database layer that allows you to insert data by doing something like:

    $newListing = new Listing();
    $newListing->setCategory("Cities");
    $newListing->save();

    This code would insert a new object Listings into the database with the category set to cities.

    Frameworks essentially allow you to sit down and start coding the features to your application quickly, without worrying about rewriting the base set of code, or framework, to provide functionality for stuff you do in all of your applications.

    Here's an article I found in Google quickly where you can read more: Discussing PHP Frameworks: What, When, Why and Which? - Noupe
    Submit Your Proxies @ NewProxySites.com

  3. #3
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    If you want to learn coding then you should avoid frameworks IMO, but if you are part of of team that needs to put together a client solution quickly, then Frameworks will speed up your development time.

  4. #4
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    Everyone has their personal preferences about frameworks.

    I coded very basic (more modifying current applications) PHP for about a year, until I dove into Symfony. From there I've been able to successfully develop any thing I've wanted to so far. I would recommend them personally.
    Submit Your Proxies @ NewProxySites.com

  5. #5
    ProSence is offline Newbie Net Builder
    Join Date
    Oct 2012
    Posts
    64
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks for clearing my doubts on frameworks.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •