Solved

To use a framework or not to use a framework?

Posted on 2016-09-03
4
27 Views
Last Modified: 2016-09-03
I am new to PHP and am trying to learn to code "by hand". I see all the "cool kids" are using Laravel and Codeigniter etc. and I know even less about those than I do PHP.

I just wanted to know if I should continue to learn php from scratch like I am now or learn how to use a framework instead? I am thinking long term now for when I one day want to try get a job as a web developer. I don't want to go to an interview and they say no right away because I can't use a framework.
0
Comment
Question by:Black Sulfur
  • 2
4 Comments
 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 150 total points
ID: 41783083
A) Learn how to code in PHP proficiently
then
B) Learn how to use Frameworks

You can never learn too much!
1
 
LVL 30

Accepted Solution

by:
Marco Gasi earned 200 total points
ID: 41783088
Frameworks are a good choice because they save you from reinvent the wheel, provide a tested and well-working code for a lot of common tasks and gives you the way to accomplish even complex tasks easily. But...

But I don't think that is an alternative: Php is a programming language, php frameworks are just tools built with that programming language itself. If you don't know php and how php manages things, it will be difficult for you deeply understand your framework of choice.
1
 
LVL 29

Assisted Solution

by:Olaf Doschke
Olaf Doschke earned 150 total points
ID: 41783159
What Marco says is a deep truth. Using a framework does not simply compare to driving a car without the knowledge of how it works, that's not possible in programming. Knowing all traffic rules is more important in driving a car and somehow you can rely on some details a framework does for you without knowing, but there's much more to using a framework than driving a car. For example, what compares to traffic rules in regard of PHP and frameworks is knowing all the riscs out there and how to deal with them. But unlike car driving can be done without the ability to fix a car, you can't really make good use of a php framework not knowing PHP basics and having done something lightweight yourself to comprehend how things work together.

More important, usage of a framework is not just knowing gas, breaks, clutch and steering wheel, there is much more to setup, configure, use and extend. To understand a framework you should also understand underyling architectural concepts, like MVC, but before you understand these oop patterns a good understanding of what a language does, even on the structural programming level only and via classical scripting, helps a lot to also understand framework code itself.

Bye, Olaf.
1
 
LVL 30

Expert Comment

by:Marco Gasi
ID: 41783161
To learn PHp I strongly suggest you this book (the same I started with some year ago): http://www.sitepoint.com/books/phpmysql5/
Then you can go on with this one: http://www.sitepoint.com/books/phppro1/
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now