Live data from Hacker News

Discussing PHP Frameworks: What, When, Why and Which?

noupe.com

21–26 of 26 posts

Re: Discussing PHP Frameworks: What, When, Why and Which?

#21
It's amazing how all-over the place these comments are on frameworks! Maybe it's because frameworks vary so much in their goals, weight and architecture.

There are really 2 kinds of performance; latency and throughput. Latency is how fast a single request is served; throughput how many requests you can serve concurrently. A good framework has a noticeable but negligible effect on latency (which also goes down all the time as the framework improves and hardware gets faster), yet also makes scalability easier by helping you abstract out the parts that make it scalable. If the framework you're using makes it hard to scale horizontally, that's a failure of that framework, not of the concept of frameworks.

I also disagree on the size of web sites that frameworks are useful on. I see a lot of comments like "ok for small/medium sites but bad for large sites". Why would frameworks suddenly get bad on a large site? For performance reasons? Architectural reasons? If either of these happen to you then you've simply chosen the wrong framework.

The argument that "an organizational system and set of useful libraries for programming web-related tasks" all of the sudden stop working once a site reaches a certain size is bogus. It might be true for a framework, but it won't be true for all of them.

I ended up writing a php framework (http://phocoa.com) in order to write less code. Frameworks give you leverage. They only box you in or cause scalability problems if they're architected poorly. I have really enjoyed the experience of building a framework as well as using it. I have been writing web apps, mobile apps, and desktop apps of all kinds for nearly 15 years and so I have had broad exposure to a variety of development stacks, from nothing to rich frameworks. Of course it's just my personal opinion, but in my experience a well-written framework is always better than doing it yourself, and a poorly-written one is almost always worse than doing it yourself.

Re: Discussing PHP Frameworks: What, When, Why and Which?

#22
post #10
post #8

Earlier quoted context omitted.

I think you are thinking too small. For most small sites I agree that frameworks are overkill but once you get past that they become nearly essential to maintaining your code. Running a web app with even over 10KLOC without some sort of framework in place sounds like a receipt for disaster. Also frameworks do not mean you have to have code generate all your queries or stick another templating language over php. If yo…

I totally disagree. And I've made complex web apps since when CGIs in C where the only way to have dynamic generated content. In fact I think it is the contrary: for small sites (and small budgets) frameworks can be ok. For big websites custom code is a must. The idea that using a framework makes code easier to maintain is the complete opposite of my experience. Big (serious) projects require a lot of custom logic wh…

Totally agree with you.

When me and my buddies are working on new (hobby) projects, we usually do our quick prototyping using something like CodeIgniter. It's fast and lets us have something out within hours vs. days.

A lot of these frameworks have super simple tie-ins to other APIs, so we can easily include the Google Maps API, Twitter, etc within a few seconds. Now the app isn't going to be very efficient or scalable but it's something that we can play with and then build the final product off of.

Re: Discussing PHP Frameworks: What, When, Why and Which?

#23
post #9
post #6

Earlier quoted context omitted.

Couldn't agree with you more.

I couldn´t disagree with you both more. I´m sorry, but webapps development can be much, much, much harder than desktopapps developement. Take into account a single parameter: scalability . Note: I expect we are talking about real app programming, and not hobbie programming.

And desktop development can be much, much, much harder than web development. It really depends on what you are writing.

The nature of web apps though tend to be based around CRUD using a database already written, a web server already written, and possibly a caching server, or similar, already written. The challenging part in most web apps, as I see it, is coming up with the idea and implementing a great user experience around it, which means top notch (interaction) designers and really sweating the details.

If you contrast that with desktop apps, here my movie player needs to play WMV (via reverse engineering efforts), my browser needs a fast JavaScript interpreter, a cutting edge CSS layout engine, my photo management software needs to handle thousands of pictures in sub-seconds, should group via face recognition etc., my MP3 player needs to do 3D visualizations of the music playing and rip my CDs to a fraction of its original size using state of the art psychoacoustic models, etc.

Sure, there is plenty of desktop software which does simple things, but saying the scalability factor of web apps make them harder than writing desktop software is belittling desktop apps to a point which is absurd.

Re: Discussing PHP Frameworks: What, When, Why and Which?

#24
post #20
post #17

There's also NOLOH ( http://www.noloh.com ), which allows you to create sophisticated web sites and web applications easily and intuitively in a single development language. Disclaimer: I'm a co-founder of NOLOH.

Wow, that's creepy. I've just been building exactly the same thing - i even used the same keywords.

NOLOH's been around since 2005 and has multiple patents pending. Perhaps you would like to talk sometime, we're always looking for talented developers to join our team.

Re: Discussing PHP Frameworks: What, When, Why and Which?

#25
post #24
post #20

Earlier quoted context omitted.

Wow, that's creepy. I've just been building exactly the same thing - i even used the same keywords.

NOLOH's been around since 2005 and has multiple patents pending. Perhaps you would like to talk sometime, we're always looking for talented developers to join our team.

That's very interesting. I never understood why more people haven't made the connection between objects in the front end and PHP objects in the backend, and how it's only natural to unify those into one language instead of messing with seperate html, css, js etc. Anyhow good luck to you guys, it's the way to go, i want to keep working on more features and then maybe i'll give you a shout if i feel i've got something new worth contributing :)

Re: Discussing PHP Frameworks: What, When, Why and Which?

#26
post #7

We use Kohana, which is a lightweight php5 port of codeigniter. we like it a lot

I'm currently looking at kohana - I use Zend FW now (been doing a long time without any of the established frameworks, only my own set of tools). Can you elaborate a bit why Kohana instead of Zend? Even if I end up using Kohana, there are several things in Zend I will keep - PDF for example.

I don't have any experience with Zend, but I've heard its just a very heavy weight install.

Kohana is super light and easily extended, though you lose a lot of the fluffy libraries.

Post reply on HN