Jump to content
MakeWebGames

Standard Expression, or Object Oriented?


Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted (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 by runthis
Posted (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 by Danny696

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...