How often do you use classes in your PHP coding? Abstract? Interface?
PHP Classes
Collapse
X
-
PHP Classes
<developer> MechBunny
/ KVS / PHP / MySQL / HTML5 / CSS3 / jQuery 
Email: vlad [at] dangerouscoding.com
Telegram: @dangerouscodingTags: None -
-
Sell our Silicone Dolls and make big money!
Our website:
https://www.sexdolls-shop.com/
Signup:
http://www.sexdollscash.com/sliiing/registration.php
Contact:
[email protected]Comment
-
I dont see need for them either. Such a fuss about OOP coding and classes, yet not needed in most cases.
Last time when i had need for class was when i need ability to store mutlidimension array based on number, not name, so had to get classes from zend framework to do that.Comment
-
Well php classes aren't for nothing, but if you aren't programming a webstore I don't see the use... must be something big to program classes.
Concerning sql, mysqli is faster than mysql on bigger tables (in sets of 5000 lines), and safe for sql injection...
May also be a little speed gain, depends on what you are coding...email: [email protected] email me for link trades/hardlink exchanges
ICQ : 665974711
my sites: http://hardcoreteenfuck.comComment
-
Yeah, same goes with using frameworks, unless you are making a big script with a lot of modules, no point in using framework.Well php classes aren't for nothing, but if you aren't programming a webstore I don't see the use... must be something big to program classes.
Concerning sql, mysqli is faster than mysql on bigger tables (in sets of 5000 lines), and safe for sql injection...
May also be a little speed gain, depends on what you are coding...
And regarding sql, that is a whole different subject which can be discussed infinitely .Comment
-
Beautiful And Usable Web Design Creations For The Adult Industry Since 2003
I'm Yuu, Designer and Content Producer
Paysites - Affiliate Programs - Dating & Cam Sites - Mainstream Projects - Tube Sites - Banners - Wordpress Themes - NATs integration - Landing Pages
Check my Portfolio and Content Production OffersComment
-
There are two ways of doing PHP:
- the old way (basically php3/php4) where no classes are used and everything is basically in functions and you just call them when you need them
- the new way (OOP in php5/php6) and it's mostly used in combination with various MVC frameworks (CodeIgniter, Yii, phpFuel, Cake, Angular) and this is very useful when: you will need to reuse the part of the code, when several people work on same project, when someone doesn't have to read all your functions before it can start some coding etc...
Don't make me wrong, classes in php aren't new, but lately their use in projects increased as language developed and people wanted to fully move to OOP.
Here's one useful php link: PHP: The Right WayMake a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!
PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
Comment
-
I don't use classes too much myself either, 90% of the case my own framework functions based does the job and does it well, but lately everyone and their moms want frameworks, classes and OOP. Which is not a bad thing, but imo it's overkill in most of the cases.<developer> MechBunny
/ KVS / PHP / MySQL / HTML5 / CSS3 / jQuery 
Email: vlad [at] dangerouscoding.com
Telegram: @dangerouscodingComment
-
I use classes... I don't use php...Comment
-
only when i am copying something from github...
else i play with functions directly.,Comment
-
i take it most of you aren't working on very large or modern php projects.
you should be using classes anytime you are writing more then just a quick script. once you get used to OOP PHP its pretty easy to follow. these are things you will want to know and learn if you plan to jump to other languages as well.Comment


Comment