Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-19-2010, 02:17 PM   #1
DirtyRider
Confirmed User
 
Join Date: Feb 2003
Posts: 819
PHP question - Use framework or not?

I wanted to do some programming for a site, just basically dealing handling galleries.

I was really curious if you guys are using any framework like zend and why someone would want to use it or not use it?

I've read about the template and cache features which interests me. I'd like to hear some opinions if its better to use a framework or not.

Thanks in advance
__________________
hello
DirtyRider is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:27 PM   #2
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Just handling galleries, a framework might be a bit overkill, especially Zend but I really like CodeIgniter myself for being useful yet getting out of my way if I need it to.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:27 PM   #3
bzent
Registered User
 
Join Date: May 2010
Posts: 90
I really like CodeIgniter and Yii.
bzent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:29 PM   #4
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
There's not a single framework I like... they're all bloated and inefficient IMO...
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:31 PM   #5
DirtyRider
Confirmed User
 
Join Date: Feb 2003
Posts: 819
Cool, i will look check CodeIgniter for sure.

Can you please let me know why you think zend would be a bit overkill? Is it because of the load on the server?
__________________
hello
DirtyRider is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:33 PM   #6
DirtyRider
Confirmed User
 
Join Date: Feb 2003
Posts: 819
Quote:
Originally Posted by BestXXXPorn View Post
There's not a single framework I like... they're all bloated and inefficient IMO...
Yeah i was really hoping someone would convince me as to why they are good. Some sites that I've seen use frameworks in the past seem to load a bit slow.

Why would you say they are inefficient?
__________________
hello
DirtyRider is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:49 PM   #7
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Quote:
Originally Posted by DirtyRider View Post
Yeah i was really hoping someone would convince me as to why they are good. Some sites that I've seen use frameworks in the past seem to load a bit slow.

Why would you say they are inefficient?
For the same reasons I'm not keen on prebuilt scripts :P Top 4:

1) Any time a security exploit is found in the framework you've adopted, it's open season on YOU until it's fixed.

2) Your framework evolves at its own pace... not yours. Good luck getting a framework to adopt something you need on your schedule ;)

3) Lack of complete control of your source. If you don't like the way something in the framework operates you COULD change it but then what about all those updates? You're forever merging sources... lame.

4) The framework has to account for everything all the time. Frameworks generally create an abstracted layer of logic which, by its very nature, incurs additional overhead.

Can anyone name a major player in mainstream that uses a framework they didn't write themselves?
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

Last edited by BestXXXPorn; 05-19-2010 at 02:51 PM..
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:51 PM   #8
bzent
Registered User
 
Join Date: May 2010
Posts: 90
PlugRush does use Cake.
bzent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:52 PM   #9
LoveSandra
So Fucking Banned
 
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
bump 4 help
LoveSandra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:54 PM   #10
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Always developed my own
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:56 PM   #11
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by DirtyRider View Post
Cool, i will look check CodeIgniter for sure.

Can you please let me know why you think zend would be a bit overkill? Is it because of the load on the server?
I haven't used Zend and I'm using the word "overkill" based on the learning curve required to start using it and based on what I've read about the framework compared to CodeIgniter. With CI, I was able to roll out an application quickly and it's not bloated or slow. The documentation is fantastic.

http://codeigniter.com/user_guide/toc.html
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 02:57 PM   #12
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
To build your own basic framework doesn't take a lot of effort, just some time, but once built it is very very lightweight and can be bloated up as much as you want depending on the job.

I'm all for getting a core working home-built framework and then using that to build on each client's needs.

Just me.

--edit guess why it's called a framework - it's the structure to build on top off, so why have the code to build a swimming pool if you live in Iceland, when all you need is the code to build a nice insulated house with open fire...
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 05-19-2010 at 02:59 PM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 03:19 PM   #13
DirtyRider
Confirmed User
 
Join Date: Feb 2003
Posts: 819
Hey, just want to say thanks to everyone that has replied. This thread has helped a lot.

I just really wanted to try something new and wasn't sure if I should waste the extra time figuring out the framework thing.

Thanks again. Any additional comments are welcome
__________________
hello
DirtyRider is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 04:16 PM   #14
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Quote:
Originally Posted by borked View Post
To build your own basic framework doesn't take a lot of effort, just some time, but once built it is very very lightweight and can be bloated up as much as you want depending on the job.

I'm all for getting a core working home-built framework and then using that to build on each client's needs.

Just me.

--edit guess why it's called a framework - it's the structure to build on top off, so why have the code to build a swimming pool if you live in Iceland, when all you need is the code to build a nice insulated house with open fire...
This is one of the main reasons our points of view are so in line the majority of the time You appreciate the elegant solutions ;)
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 06:39 PM   #15
Big E
Registered User
 
Industry Role:
Join Date: Mar 2002
Location: San Diego, CA
Posts: 935
Something no one else has mentioned here - programmer portability. Go ahead and write your own framework/code/whatever, and if someone else has to work on it, they need to get up to speed, learn all the ins-and-outs, etc.

With a well-known framework (CodeIgniter is best IMO), another programmer can jump right into your code without too many problems.

Not a big deal if you're planning on writing everything yourself for the rest of your life, but something to think about.
Big E is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2010, 07:49 PM   #16
bzent
Registered User
 
Join Date: May 2010
Posts: 90
Quote:
Originally Posted by BestXXXPorn View Post
1) Any time a security exploit is found in the framework you've adopted, it's open season on YOU until it's fixed.
Alternative way to look at it:
Open source code is less likely to have exploits than your own code, because thousands of programmers use/see/develop it. Sure, a site may not have the same exploits available that every other _insert framework_ site does, but I'd be willing to develop if someone sat there and wanted a crack at your site, it would be easier than finding an exploit in a framework.

Just my I don't use frameworks often, but when I do it's because they're faster to develop on and I've never had any issues with security.
bzent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.