TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-24-2009, 03:52 PM   #1 (permalink)
The Contributor
 
nefus's Avatar
 
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
nefus is on a distinguished road
Default frameworks

So... I wanted to ask this here to make sure I understood what a framework is. It's my understanding they are basically a set of functions you add to shortcut your programming? These new functions add new features and simplify existing ones?
__________________
I am not a programmer, nor do I play one on tv.
nefus is offline  
Reply With Quote
Old 06-24-2009, 04:19 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Typically a set of functions inside a set of classes, that are ideally able to be used independent of one another. Although some dependencies are naturally unavoidable. They hasten the most common of tasks, such as interacting with a database. And prevent us from reinventing the wheel time-and-time again, as it were.

Insofar as I can see, the only reason Ruby, quite an old language, made a brief return was because of the Rails framework. Many people seem to be unable to grasp the fact that Rails is a framework, however.

So in the most basic example, let's say you have a database class in your framework. That won't be specific to any particular project, but instead a configuration file of some type, which will be specific to a project, although retain the same syntax throughout, will be used to change specifics. Such as the database's credentials.

This saves the time of writing out all your SQL statements time-after-time, and repeating the code to connect to your database each time. A good framework will consist of many various classes, such as the Zend Framework.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
nefus (06-24-2009)
Old 06-24-2009, 04:48 PM   #3 (permalink)
The Contributor
 
nefus's Avatar
 
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
nefus is on a distinguished road
Default

Do they usually have oop and non-oop functions? The only time I looked at a framework it seemed to be oop and I have to admit that oop eludes me. The lightbulb just hasn't come on.
__________________
I am not a programmer, nor do I play one on tv.
nefus is offline  
Reply With Quote
Old 06-24-2009, 09:45 PM   #4 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Usually just OOP, but a framework really can be anything that facilitates programming.

Where are you struggling with OOP? Its usefulness?
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MVC Frameworks Izym Advanced PHP Programming 3 01-22-2009 09:43 AM
Frameworks Nick General 5 12-02-2008 05:03 AM
FrameWorks tego10122 General 7 09-29-2008 04:59 PM
Too many frameworks? Aaron General 2 04-07-2008 08:40 AM
PHP Frameworks... Necessary? webosb General 0 12-04-2007 05:20 PM


All times are GMT. The time now is 06:13 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design