runthis Posted August 10, 2011 Posted August 10, 2011 What do you deal with the most on a daily basis? Quote
a_bertrand Posted August 10, 2011 Posted August 10, 2011 With PHP I mainly develop in a procedural way. But day to day I mainly use C# where I work exclusively in OO Quote
Dominion Posted August 10, 2011 Posted August 10, 2011 In PHP mainly procedural, but I have just stated a small project that is going to require me using a OOP style. I feel it's important to understand both styles for anyone mainly involved with PHP. Quote
Sim Posted August 10, 2011 Posted August 10, 2011 I mainly use OOP with PHP now-a-days on my own projects. Some of my projects are outdated and over 5,000 lines of code, so I got to use procedure when updating. Most freelance work requires me working with procedure coding too. If starting a freelance project from scratch, I use OOP. Quote
runthis Posted August 11, 2011 Author Posted August 11, 2011 when creating from scratch. I am OOP all the way, although like SIM said, i got old projects like forums/games that were strict procedural. On a client basis i find myself mostly solving improper linking, paypal buttons. If a client does use OOP they usually are smarty templated Quote
Sim Posted August 11, 2011 Posted August 11, 2011 Smarty rules!! I been using smarty for years. Quote
Danny696 Posted August 11, 2011 Posted August 11, 2011 Smarty sucks. I use procedural, PHP isnt to OO friendly as of yet, but I do hope in the coming versions it becomes more OO, then I will start using it. Quote
runthis Posted August 11, 2011 Author Posted August 11, 2011 (edited) Danny696 Smarty sucks. I completely agree I am sure if i really gave it an honest go i might like it, but its downsides trample its upsides. So many downsides. OO is pretty good in php now What i use oop for is keeping the php sortove seperate, plus you know exactly where to go when theres an issue and if you tab right, you'll have a very easy to read code. with classes and functions you can make static things as well, you can use the same random number on the same page and get a different number, or the same query call a different value, theres a bunch of reasons why if your not to familiar, try and get into it, everyone knows procedural. Edited August 11, 2011 by runthis Quote
Danny696 Posted August 11, 2011 Posted August 11, 2011 (edited) plus you know exactly where to go when theres an issue and if you tab right, you'll have a very easy to read code. Ermm, thats not OOP :/ Edited August 12, 2011 by Danny696 Quote
Mufasa Posted August 13, 2011 Posted August 13, 2011 OO all the way. Best way to have modular and expandable code IMO (unless it's like a cron or something) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.