Advertisement

OOP

  • Design Patterns
    Design Patterns: The Adapter PatternAdapter
    459 shares
    In the previous article we saw how the facade design pattern can be employed to simplify the employment of any large and complex system using only a simple facade class. In this article we will see how the adapter design pattern can be used when your code is dependent on some external API, or any other class that is prone to change frequently. This pattern falls under the category of "structural patterns", because it teaches us how our code/class should be structured in order to manage and/or extend them very easily.Read More…
  • Object-Oriented Programming
    Design Patterns: The Facade PatternFacade pattern
    447 shares
    In this tutorial, we are going to cover the facade design pattern. It falls under the category of structural patterns because it deals with how your code should be structured to make it easily intelligible and keep it well maintained in the long term.Read More…
  • WordPress
    Object-Oriented Programming in WordPress: A SummaryWordpress oop
    121 shares
    At this point, it's time to draw this beginner's series to a close but prior to doing so, I'd like to provide a summary of each of the articles so that we not only have a refresher of the everything that we've done, but so that we also have a single summary page to bookmark for reference.Read More…
  • WordPress
    Object-Oriented Programming in WordPress: Inheritance IIWordpress oop
    106 shares
    In the previous article, we introduced the concept of object-oriented inheritance, attempted to place it laymen's terms, and then also took a high-level look at the conceptual model of how it works within the context of programming. Yes - we've covered a lot, but in order to lay the foundation for a beginner to have a strong place from which to start writing object-oriented PHP, there's a lot to examine. With that said, inheritance is where we begin getting into the intermediate topics of the paradigm, so this will be the final article that provides a look at the beginner concepts.Read More…
  • WordPress
    Object-Oriented Programming in WordPress: Inheritance IWordpress oop
    102 shares
    One of the hardest parts of writing a series for beginners on object-oriented programming is knowing where to stop. There are so many topics to cover that we can slowly begin moving into the direction of advanced programming techniques ultimately forgoing exactly what our intended mission was: to arm beginners with a set of tools, strategies, and understanding of beginning concepts.Read More…
  • WordPress
    Object-Oriented Programming in WordPress: Document The Plugin IIWordpress oop
    106 shares
    At this point in the series, we're ready to move forward with rounding out our plugin by documenting our files, classes, functions, variables, and more. Though this is the last step that we actually have to completing the plugin, it's not the last post in the series as we'll continue to look at a few advanced topics in object-oriented programming. But before we do that, let's bring our plugin up to version 1.0 by putting into practice everything we learned in the previous article.Read More…
  • WordPress
    Object-Oriented Programming in WordPress: Document the Plugin IWordpress oop
    110 shares
    At this point in the series, we've covered a lot of material - not only have we covered the basics of object-oriented programming, but we've also begun to build a fully functional plugin. But the challenge that comes with the work that we've done this far is that it doesn't include any documentation about how the plugin actually works. If you recall from the previous article, we made a conscious development decision to post-pone this feature. Starting in this article, we're going to be taking a two-part look at how to document WordPress plugins, and how we can do so given our current plugin.Read More…
  • WordPress
    Object-Oriented Programming in WordPress: Building the Plugin IIWordpress oop
    104 shares
    In the previous article in this series, we finally began preparing the foundation for the plugin that we're going to be writing. Specifically, we took a look at the file organization, the components, and the actual details of what the plugin is going to do. We also stubbed out the code that we'll be filling out in this tutorial.Read More…
  • PHP
    Object-Oriented Programming in WordPress: Building the Plugin IWordpress oop
    135 shares
    At this point in the series, we're finally able to begin building our first plugin using the object-oriented techniques that we've learned thus far in the series. If you're just now joining us, I highly recommend catching up on the series thus far; otherwise, you may risk missing out on some of the key points that we're going to be demonstrating as we begin to build out the plugin over the next few articles.Read More…
  • PHP
    Object-Oriented Programming in WordPress: ScopeWordpress oop
    142 shares
    In continuing our discussion of object-oriented programming in WordPress, we need to begin talking about the idea of scope. In short, this refers to the idea as to how classes can control how their attributes and functions are accessed (or whether or not they can even be accessed). This is yet another core idea of object-oriented programming after which we should be in good shape to begin working on an actual WordPress plugin.Read More…
  • PHP
    Object-Oriented Programming in WordPress: Functions and AttributesWordpress oop
    117 shares
    As we continue our discussion of object-oriented programming within the context of WordPress, it's time for us to begin talking about actual features of object-oriented programming. Though we've already covered classes, we needed to explore some foundational programming constructs before coming back around to some of the core object-oriented concepts. In this article, we're going to begin talking about functions and attributes: two foundational aspects of object-oriented programming.Read More…
  • PHP
    Object-Oriented Programming in WordPress: Control Structures IIWordpress oop
    88 shares
    WordPress is a powerful CMS that provides a flexible foundation on which to build both sites and applications. If you want to extend WordPress functionality, then you do so via plugins. Although there are a number of different ways to do that, this series has us taking a look at object-oriented programming specifically from the perspective of a beginner and in the context of WordPress. In this post, we're looking at a second set of control structures that allow us to control the flow of code throughout an application.Read More…
Advertisement
Suggested Tuts+ Course
OOP in PHP With Tests$15
Advertisement