 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
 |
|
 |
06-19-2009, 01:58 PM
|
#1 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
Do you Code from scratch or use framework ?
Do you do a website from Null, or use a framework ?.
|
|
|
|
06-19-2009, 02:36 PM
|
#2 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
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)
|
|
|
|
06-19-2009, 03:06 PM
|
#3 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
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
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".
|
|
|
|
06-19-2009, 03:30 PM
|
#4 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
|
|
|
|
06-19-2009, 03:57 PM
|
#5 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
Both, I use my framework.
|
|
|
|
06-19-2009, 04:11 PM
|
#6 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
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.
|
|
|
|
|
The Following User Says Thank You to Village Idiot For This Useful Post:
|
|
06-19-2009, 04:16 PM
|
#7 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
I'm using my own framework.
__________________
|
|
|
|
06-19-2009, 04:50 PM
|
#8 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
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.
|
|
|
|
06-19-2009, 05:35 PM
|
#9 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
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.
|
|
|
|
06-19-2009, 05:58 PM
|
#10 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
Out of interest, why have you been formatting your posts so weirdly lately?
|
|
|
|
06-19-2009, 11:20 PM
|
#11 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
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.
|
|
|
|
06-20-2009, 01:05 AM
|
#12 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
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..
|
|
|
|
06-20-2009, 01:22 AM
|
#13 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
I see. I tried fast reading and it did no good, it just looks weird.
|
|
|
|
06-20-2009, 01:33 AM
|
#14 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
It's still in beta as i said before..
But i have turned it off for now ;)
|
|
|
|
06-20-2009, 12:48 PM
|
#15 (permalink)
|
|
The Contributor
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
|
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.
|
|
|
|
|
The Following User Says Thank You to ryanmr For This Useful Post:
|
|
06-20-2009, 01:12 PM
|
#16 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Lol, cool plugin!
__________________
|
|
|
|
06-22-2009, 12:42 PM
|
#17 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
|
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? =)
|
|
|
06-22-2009, 01:21 PM
|
#18 (permalink)
|
|
The Contributor
Join Date: May 2009
Posts: 53
Thanks: 2
|
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. :)
|
|
|
06-22-2009, 01:27 PM
|
#19 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
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.
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|