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-19-2009, 01:58 PM   #1 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default Do you Code from scratch or use framework ?

Do you do a website from Null, or use a framework ?.
codefreek is offline  
Reply With Quote
Old 06-19-2009, 02:36 PM   #2 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

I mostly use my own personal (i suppose you could call it a framework) mvc system, i can never be bothered to take the time to learn a new framework.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 06-19-2009, 03:06 PM   #3 (permalink)
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Null, I've always learned the language and then applied it. Plus for competitions I can't use any frameworks so starting from scratch is really helpful.

Quote:
Originally Posted by knight13 View Post
I have always seen people talking about frameworks, but i never seen it mentioned in any of the php books i read or at least i do not think i have, what exactly are they? and what are they used for?
PHP frameworks are just like JS frameworks in they provide a simple solution to problems. They are often premade software (wordpress, joomla, jquery, mootools, ect...).

A few days ago there was a PHP Mail framework, it really simplified the process of sending mail.

For example this is what you would normally code:
PHP Code:
<?php
// Declare the variables
$to $_POST['to'];
$from "From: adam@example.com";
$subject $_POST['subject'];
$message $_POST['message'];

// Now validate the three $_POST's.
/**
 *
 *  ...........................
 *
 */

// Now send the message.
flush();
   
mail($to$subject$message$frrom);
flush();

echo 
'Message Sent!';

?>
While the PHP framework may have just required this.
PHP Code:
<?php
// Collect the information
$mail = new MAIL;
$mail->to($_POST['to']);
$mail->subject($_POST['subject']);
$mail->message($_POST['message']);
$mail->from("adam@example.com");

$mail->send();
?>
The framework will deal with any and all errors, validation, and editing.

Frameworks just make the job(s)/task(s) simpler, at the cost of reliance on licenses and learning the "language".
__________________
My Site
adamdecaf is offline  
Reply With Quote
Old 06-19-2009, 03:30 PM   #4 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

@knight13
http://en.wikipedia.org/wiki/Model-view-controller
http://en.wikipedia.org/wiki/Akelos_PHP_Framework
codefreek is offline  
Reply With Quote
Old 06-19-2009, 03:57 PM   #5 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Both, I use my framework.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 06-19-2009, 04:11 PM   #6 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I find framework rather pointless, most add layers of abstractions where they do not need to be added. Others pile on more than needs to be added. Whatever the case I've never found a useful PHP framework.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
codefreek (06-19-2009)
Old 06-19-2009, 04:16 PM   #7 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

I'm using my own framework.
__________________
Tanax is offline  
Reply With Quote
Old 06-19-2009, 04:50 PM   #8 (permalink)
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

I code from scratch, not even my own framework, i just plan the project needs in a MVC form and start coding (with maintainability and extensibility as much as I can do)

But I've been thinking of looking to use kohana I don't know, I like working in every aspect of the project from scratch.
tony is offline  
Reply With Quote
Old 06-19-2009, 05:35 PM   #9 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

i kinda agree, with Village Idiot.
Sure you can use a framework but i would just as easily,
be happy with a good CRUD system, and thats it,
well thanks everyone for your thoughts on this.
codefreek is offline  
Reply With Quote
Old 06-19-2009, 05:58 PM   #10 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Out of interest, why have you been formatting your posts so weirdly lately?
__________________

Village Idiot is offline  
Reply With Quote
Old 06-19-2009, 11:20 PM   #11 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

I have to disagree with codefreek and Village Idiot. I think (some) frameworks are great for quickly building complex web applications. However, the majority of them just make things more complicated.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 06-20-2009, 01:05 AM   #12 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

Village Idiot, i have made a firefox plugin that highlights words that are more important so if you fast read you will see
the important words and might have an idea on what the text is about so you don't have to be reading the whole thing but the plugin is in beta still, and the color mix might not be that good but i have to follow a color Schema, because not all colors attracts the eye to the word etc..

Hope that answered your question..
codefreek is offline  
Reply With Quote
Old 06-20-2009, 01:22 AM   #13 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I see. I tried fast reading and it did no good, it just looks weird.
__________________

Village Idiot is offline  
Reply With Quote
Old 06-20-2009, 01:33 AM   #14 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

It's still in beta as i said before..
But i have turned it off for now ;)
codefreek is offline  
Reply With Quote
Old 06-20-2009, 12:48 PM   #15 (permalink)
The Contributor
 
ryanmr's Avatar
 
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
ryanmr is on a distinguished road
Default

That's a pretty neat Firefox plugin, codefreak!
Anyway, I've tried CodeIgniter and CakePHP but I've never been able to figure them out completely. I have been piecing together my own mini-framework together but MVC has clicked with either, so it's just a plain helper based system.
__________________
blog twitter ifupdown
ryanmr is offline  
Reply With Quote
The Following User Says Thank You to ryanmr For This Useful Post:
codefreek (06-20-2009)
Old 06-20-2009, 01:12 PM   #16 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Lol, cool plugin!
__________________
Tanax is offline  
Reply With Quote
Old 06-22-2009, 12:42 PM   #17 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

Normally i would use my own Frameworks, but here at work i used both CakePHP and CodeIgniter.

Cake sucks (very) hard but CodeIgniter is pretty easy and works like a charm.
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 06-22-2009, 01:21 PM   #18 (permalink)
The Contributor
 
Sirupsen's Avatar
 
Join Date: May 2009
Posts: 53
Thanks: 2
Sirupsen is on a distinguished road
Default

Still kind of in the deep learning progress of PHP, and therefore I decided to not use a framework. I want to know how everything works. That's a good learning process for me at least. :)
Send a message via AIM to Sirupsen Send a message via MSN to Sirupsen Send a message via Yahoo to Sirupsen Send a message via Skype™ to Sirupsen
Sirupsen is offline  
Reply With Quote
Old 06-22-2009, 01:27 PM   #19 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

WebGear is the framework of my choice. Mainly, because it's written by myself, and secondly, because I don't appreciate low quality coding. It just makes the whole programmers community look bad because they're too busy being arrogant, they forgot to learn anything from 2002 until now.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon 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
Prettifying Pasted Code on TalkPHP Wildhoney The Lounge 15 01-04-2013 02:46 AM
Tips to Improve Your Coding and Projects Village Idiot Tips & Tricks 45 12-03-2012 07:46 AM
Writing Clean Code Village Idiot Tips & Tricks 10 06-25-2012 12:35 PM
Part 2: Using the Prototype JavaScript Framework Karl Javascript, AJAX, E4X 4 11-05-2008 12:52 PM
Zend Studio code completion framework Devels General 1 09-06-2008 05:04 PM


All times are GMT. The time now is 12:42 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