PHP Classes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VladS
    Available for Coding Work
    • Jun 2008
    • 1459

    #1

    PHP Classes

    How often do you use classes in your PHP coding? Abstract? Interface?
    <developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery
    Email: vlad [at] dangerouscoding.com
    Telegram: @dangerouscoding
  • Coup
    🚨 PBBC International 🚨
    • Apr 2010
    • 9931

    #2

    Comment

    • kkkkkk
      svp get banned svp
      • Dec 2005
      • 1628

      #3

      Comment

      • Google Expert
        Webmaster
        • Jun 2004
        • 14294

        #4
        Originally posted by VladS
        PHP
        LOL


        Ruby on Rails. Thank me later.

        Comment

        • kkkkkk
          svp get banned svp
          • Dec 2005
          • 1628

          #5

          Comment

          • CHMOD
            Confirmed User
            • Jun 2003
            • 1697

            #6
            Originally posted by VladS
            How often do you use classes in your PHP coding? Abstract? Interface?

            I do not use them at all. In fact, I hate classes.
            There is probably something that I didn't get though.
            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

            • Klen
              • Aug 2006
              • 32235

              #7
              Originally posted by CHMOD
              I do not use them at all. In fact, I hate classes.
              There is probably something that I didn't get though.
              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

              • nightslit
                Confirmed User
                • Oct 2013
                • 226

                #8
                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.com

                Comment

                • Klen
                  • Aug 2006
                  • 32235

                  #9
                  Originally posted by nightslit
                  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...
                  Yeah, same goes with using frameworks, unless you are making a big script with a lot of modules, no point in using framework.

                  And regarding sql, that is a whole different subject which can be discussed infinitely .

                  Comment

                  • Ferus
                    Bye - Left to do stuff
                    • Feb 2013
                    • 4108

                    #10
                    IF you are reusing your code in many applications with a little complexity, I would use classes.

                    I am glad I went through 2 weeks of basic OOP programming (c#) because it have saved me a lot of time.

                    Comment

                    • yuu.design
                      Too lazy to set a custom title
                      • Mar 2006
                      • 25924

                      #11
                      Originally posted by Coup
                      hahahah, mean guy!
                      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 Offers

                      Comment

                      • HomerSimpson
                        Too lazy to set a custom title
                        • Sep 2005
                        • 13826

                        #12
                        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 Way
                        Make 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

                        • VladS
                          Available for Coding Work
                          • Jun 2008
                          • 1459

                          #13
                          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: @dangerouscoding

                          Comment

                          • matureisland
                            Confirmed User
                            • Sep 2013
                            • 278

                            #14
                            I use classes... I don't use php...��
                            Free Wordpress Porn Poster

                            Tumblr Image Downloader Free and Premium Version

                            Comment

                            • freecartoonporn
                              Confirmed User
                              • Jan 2012
                              • 7683

                              #15
                              only when i am copying something from github...
                              else i play with functions directly.,
                              SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

                              Comment

                              • Relic
                                So Fucking Banned
                                • Aug 2002
                                • 10300

                                #16
                                Never, fuck classes.

                                Comment

                                • fris
                                  Too lazy to set a custom title
                                  • Aug 2002
                                  • 55679

                                  #17
                                  when im doing wordpress stuff, i usally only use them in plugins, never in themes.
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                  Comment

                                  • ina.susie
                                    Registered User
                                    • Dec 2014
                                    • 13

                                    #18
                                    I, as a beginner, sometimes use codeacademy classes but usually forums

                                    Comment

                                    • Why
                                      MFBA
                                      • Mar 2003
                                      • 7230

                                      #19
                                      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

                                      Working...