Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should a beginning PHP programmer consider frameworks?

Tags:

php

frameworks

I'm a complete beginner when it comes to programming. I'm taking a stab at PHP, and have seen how powerful the frameworks can be. But should I even consider trying to work with a framework until I have a strong grasp of PHP itself?

Note: I'd most likely be using CodeIgnitor, but the question applies to any of the frameworks.

like image 993
Casey Wagner Avatar asked Nov 27 '22 13:11

Casey Wagner


2 Answers

Preferably, you should have a strong grasp of the language (and programming in general) before you start using frameworks. Frameworks can and will save you a lot of work, but you they also introduce advanced concepts and implementations.

After you gain some experience and start to wonder what's the best way to solve some common problems you have faced before - that will be a good time to give frameworks a try.

I would suggest you try to read some of the source code of the different frameworks and see if it makes sense to you. If it doesn't - you are probably not ready yet.

like image 117
Eran Galperin Avatar answered Dec 04 '22 07:12

Eran Galperin


Personally I would stick to learning PHP and creating some projects without the assistance of a framework. While frameworks can abstract a lot of the messy, boring parts of a project away, it's important to still know how they work, especially when debugging.

Frameworks can be also be very complicated, and learning how to effectively use one can be difficult even with a good understanding of programming language.

like image 44
Matthewd Avatar answered Dec 04 '22 06:12

Matthewd