Design Patterns

  • Design Patterns
    Design Patterns: The Factory Method PatternPre
    In the previous article, we went through the Simple Factory pattern. Now in this article we will examine Factory Method Design pattern. In the case of Simple Factory, it provides an interface to create objects, while the Factory method does the same thing but in addition it allows a subclass to make a decision on which class to instantiate.Read More…
  • Android
    Dependency Injection on Android With RoboGuicePicgeneric
    RoboGuice, also called Google Guice on Android, is an easy-to-use dependency injection framework, which can make Android development more intuitive, convenient, and enjoyable. In this tutorial, I am going to show you how to make the most of it in your Android projects.Read More…
  • Mobile Development
    Design Patterns: DelegationPreview image@2x
    The delegation pattern is among the most common patterns in iOS and OS X development. It is a simple pattern that is heavily used by Apple's frameworks and even the simplest iOS application leverages delegation to do its work. In this article, we'll explore delegation and you'll learn how to implement it using Swift and Objective-C.Read More…
  • JavaScript
    Go Back to Basics With Our New Course on JavaScript FundamentalsJs fun
    So you want to learn JavaScript? In this course we’ll start at the very beginning and cover everything about the language that a beginner needs to know. Maybe you've never programmed anything before, or maybe you're coming to JavaScript from another language. Whatever your situation, we'll go through everything you need to get up and running with one of the most popular and dynamic languages in use today.Read More…
  • Mobile Development
    Design Patterns: SingletonsPreview image@2x
    Design patterns are often considered a more advanced topic and therefore ignored or overlooked by people new to iOS or OS X development. However, there are a number of design patterns every aspiring iOS or OS X developer will be faced with from day one. The singleton pattern is one such pattern. In this article, we'll take a close look at the singleton pattern by discussing its advantages and disadvantages. You'll also learn how to implement the singleton pattern in Swift and Objective-C.Read More…
  • Mobile Development
    Design Patterns: Dependency InjectionPreview image@2x
    Even though dependency injection is a topic that is rarely taught to beginners, it is a design pattern that deserves more attention. Many developers avoid dependency injection, because they don't know what it means or because they think that they don't need it. In this article, I'm going to try to convince you of the value of dependency injection. To do this, I will introduce you to dependency injection by showing you how simple it is in its simplest form.Read More…
  • Design Patterns
    Design Patterns: The Observer PatternObserver pattern
    Now here I come with one more behavioral design pattern in this series, which is the Observer Pattern. Observer means that someone is looking at your activity, and it may be possible that the observer takes some action depending on your activity.Read More…
  • Design Patterns
    Design Patterns: The Singleton PatternSingleton design pattern
    In this article you are going to learn how to implement the Singleton design pattern, and why and when to use this pattern in your application. As the name "Singleton" suggests, this method allows us to create one and only one object of a class.Read More…
  • Design Patterns
    Design Patterns: The Command PatternCommand design pattern
    After covering a few creational and structural design patterns, we have started behavioral patterns now. You can see the first article in this category of the strategy pattern. With creational patterns, we learned how we should create our objects, and from structural patterns we learned how we should structure our classes and objects to help build a better application.Read More…
  • Object-Oriented Programming
    Design Patterns: The Simple Factory PatternSimple factory design pattern
    When you think of Factory, what comes in your mind? I would say a place where things are produced. Read More…
  • Design Patterns
    Design Patterns: The Strategy PatternStrategy pattern
    So far we have covered three design patterns in this series. We have defined four categories of different design patterns. In this article, I am going to explain the Strategy Design Pattern, which falls under Behavioral Design Patterns.Read More…
  • Design Patterns
    Design Patterns: The Decorator PatternDecorator pattern
    Earlier in this series we explored the facade and adapter design patterns. Using facade, we can simplify large systems, and by implementing adapter we can stay safe while working with external API and classes. Now we are going to cover the decorator design pattern, which also falls under the category of structural patterns.Read More…
Suggested Envato Tuts+ Course

Next lesson playing in 5 seconds

Put JavaScript Design Patterns Into Practice$9