Learn Coding Design Patterns

Learn common design patterns, including MVC, MVVM, and singleton, to improve your code's organization and make it easier for you and your colleagues to work with.

All Design Patterns content:

  1. Multi-Instance Node.js App in PaaS Using Redis Pub/Sub

    Multi-Instance Node.js App in PaaS Using Redis Pub/Sub

    Tutorial Intermediate

    If you use PaaS to host your application, you often end up with lots of small "containers", and with each instance of your app running in another virtual...

  2. Design Patterns: The Facade Pattern

    Design Patterns: The Facade Pattern

    Tutorial Intermediate

    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...

  3. Rolling Your Own Framework: A Practical Example

    Rolling Your Own Framework: A Practical Example

    Tutorial Beginner

    In this article, we’ll look at another common problem in developing browser applications: The connecting of model data to views. We’ll unravel some of the...

  4. Rolling Your Own Framework

    Rolling Your Own Framework

    Tutorial Beginner

    Building a framework from scratch is not something we specifically set out to do. You’d have to be crazy, right? With the plethora of JavaScript frameworks...

  5. From Beginner To Advanced in OpenCart: Understanding MVC

    From Beginner To Advanced in OpenCart: Understanding MVC

    Tutorial Intermediate

    In our previous tutorial, we discussed some of the basics programming of OpenCart. In this tutorial, we are going to continue the discussion of the design...

  6. From Beginner to Advanced OpenCart: More About MVC

    From Beginner to Advanced OpenCart: More About MVC

    Tutorial Beginner

    Previously, we reviewed the Model-View-Controller - or MVC - architecture of OpenCart. In this regard, we created our first "Hello World!" Controller. So, In...

  7. From Beginner To Advanced in OpenCart: The Architecture

    From Beginner To Advanced in OpenCart: The Architecture

    Tutorial Beginner

    Up until this point, our previous articles have focused on OpenCart's user interface. In the articles, we discussed how to use the admin panel. Starting in...

  8. Modules, a Future Approach to JavaScript Libraries

    Modules, a Future Approach to JavaScript Libraries

    Tutorial Beginner

    JavaScript libraries such as jQuery have been the go-to approach for writing JavaScript in the browser for nearly a decade. They’ve been a huge success and...

  9. Refactoring Legacy Code: Part 8 - Inverting Dependencies for a Clean Architecture

    Refactoring Legacy Code: Part 8 - Inverting Dependencies for a Clean Architecture

    Tutorial Intermediate

    Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally writing the Golden Master tests for...

  10. Refactoring Legacy Code: Part 7 - Identifying the Presentation Layer

    Refactoring Legacy Code: Part 7 - Identifying the Presentation Layer

    Tutorial Intermediate

    Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally writing the Golden Master tests for...

  11. Refactoring Legacy Code: Part 6 - Attacking Complex Methods

    Refactoring Legacy Code: Part 6 - Attacking Complex Methods

    Tutorial Intermediate

    Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally writing the Golden Master tests for...

  12. Refactoring Legacy Code: Part 5 - Game's Testable Methods

    Refactoring Legacy Code: Part 5 - Game's Testable Methods

    Tutorial Intermediate

    Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally writing the Golden Master tests for...