Parifoot19
New member
- Local time
- 20:36
- Joined
- Oct 29, 2019
- Messages
- 11
I often laziness when he knew to learn OOP and especially the OOP in php. Do you think it's really important to use OOP for your projects? Do you use it?
I often laziness when he knew to learn OOP and especially the OOP in php. Do you think it's really important to use OOP for your projects? Do you use it?
Never without. You won't accomplish any larger project without OOP.
A good entry for PHP OOP would be Laravel. Great docs, easy to learn and amazing community.
And even WordPress OOPs itself but limits itself by this "we want simple updates and support every dev" policy. 🤮
If the project calls for it! Not every simple script needs to be OOP. I think it makes it more sense for complex and growing projects. If it’s something I can do in less than 200 lines of code in a simpler way then no. A great thing about PHP is that it can be written in functional, OOP and procedural.
OOP doesn’t make good code on its own either, it’s possible to write good and bad code in every style.
It’s pretty widely accepted at this point that PHP standards are OOP and that the language is becoming more and more object-capable as the versions go on.
Disagree here. EVERY of my projects starts with a composer.json and PSR-4 which requires OOP.If the project calls for it! Not every simple script needs to be OOP.