Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 710 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Php framework VS raw php code?? Can I build facebook from scratch using, say, cakePhp?

#1
I'm considering learning a PHP framework for rapid development. I've a solid background in PHP and Jquery including AJAX. I'm felling that there should be some major flexibility that I lose if I use frameworks, just like using CMS's. Is it true? Or can I build virtually anything AJAX driven using frameworks? Like including notifications...(just like facebook)
Reply

#2
You can build virtually anything with a decent framework by just extending it. You don't want to build a large project(like Facebook) using raw code... that would take a really long time, would be very buggy, and is just bad design.
Reply

#3
Personally I think you could write your own framework.

1. this is 'fun' to do (read; you'll learn a lot from it);
2. the you spent on learning a framework built by someone else you now spent on creating your own, directly learning all the ins and outs

I mean, if you think of it, for basic operations. What do you really expect from a framework?

1. Some access/security checking/processing;
2. Have Models and Controllers for your database;
3. Have a Base-class for handling your properties;
4. Have some other classes that you might find handy (ObjectList, DB-Layer, Exception-reporting, BaseController etc);
5. Some sort of renderer (or just use an index file to do such things).

Okay, if you write your own framework you could end up buggy. But don't you kinda take the same risk when starting to learn a new framework? Having all the posibillities of using it's functionallity in a poor or even wrong way due to it's complexity?
Reply

#4
There are plenty of pre-made blog softwares out there, but in order to learn PHP, I used CodeIgniter to make my own blog. If you work on it, you can make anything, but also don't reinvent the wheel. If there is something already made, there is no shame in using it.
Reply

#5
It really depends on what you are trying to accomplish. The problem with writing your own framework for a project like this is that you are the only one who knows where everything is. So you get the task of not only writing the framework, but documenting it, and then putting all of the functionality in on top of that. Not to mention trying to ramp up any new member of the development team.

**Why A Framework**

A framework already has many developers (and others) behind it. Why not leverage the framework? There is a large community of people behind most frameworks. And if you pick the right framework, you will also get plenty of excellent documentation. In addition, there are third party plugins, components, addons that the community develops as well. All of which will be easy to understand because they will (mostly) follow the standards of the framework.

In addition to the community and leveraging the man hours used to create an open source framework, it allows you to focus on the bits of your application that are most important: the functions the pertain specifically to the application. Why waste time writing all of the mundane parts: ie. database connections, apis, email senders, templating, etc. Use what is out there and go to market much faster.

**My Suggestion**

I use CakePHP. It is OOP and very structured. They may be a small learning curve as with every framework. But the implementation makes development very fast. There are some high profile sites that use it and it works great. (

[To see links please register here]

)
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through