Design Patterns

  • Magento
    Custom Events in Magento With the Observer PatternMagento
    Considering the number of eCommerce frameworks available in the market, Magento is one of the most popular choices for medium-to-large-scale web shops. The wealth of features it comes with and the architecture of the framework itself set it apart from the other frameworks. Although lots of third party extensions for Magento provide a way to extend the core functionality, the architecture is designed so that core features can be altered without hacking the core. In this tutorial, we're going to demonstrate the example of creating your own custom events using the observer pattern.Read More…
  • Android SDK
    Quick Tip: How to Use the EventBus LibraryEvbus
    Have you ever tried sending information from a Service or BroadcastReceiver to an Activity and wondered why it is so complicated? In this quick tip, you'll learn how to use the EventBus library in a simple app to facilitate communication between an Activity and a BroadcastReceiver.Read More…
  • Design Patterns
    Design Patterns: The Adapter PatternAdapter
    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…
  • Design Patterns
    Multi-Instance Node.js App in PaaS Using Redis Pub/SubNodejs retina preview 1
    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 machine. As a result, the instances don't share memory. In this tutorial you'll learn how to overcome this little inconvenience.Read More…
  • Object-Oriented Programming
    Design Patterns: The Facade PatternFacade pattern
    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…
  • Milo
    Rolling Your Own Framework: A Practical ExampleJavascript wide retina preview
    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 “magic” that makes two-way data binding possible in Milo, and to wrap things up, we’ll build a fully functional To Do application in less than 50 lines of code.Read More…
  • Milo
    Rolling Your Own FrameworkJavascript wide retina preview
    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 out there, what possible motivation could we have for rolling our own?Read More…
  • JavaScript
    Modules, a Future Approach to JavaScript LibrariesJavascript wide retina preview
    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 necessary intervention for what was once a browser land full of discrepancies and implementation issues. jQuery seamlessly glossed over browser bugs and quirks and made it a no brainer approach to getting things done, such as event handling, Ajax and DOM manipulation. At the time, jQuery solved all our problems, we include its almighty power and get to work straight away. It was, in a way, a black box that the browser “needed” to function properly. But the web has evolved, APIs are improving, standards are being implemented, the web is a very fast moving scene and I’m not sure giant libraries have a place in the future for the browser. It’s becoming a module-oriented environment.Read More…
  • Web Development
    Design Patterns in JavaDesign patterns in java
    One of the unchanging facts of life is that change is the undying constant in every software lifecycle - one that you cannot run away from. The challenge is to adapt to this change with minimum latency and maximum flexibility. The good news is that someone has probably already solved your design problems and their solutions have evolved into best practices; these agreed-upon best practices are referred to as "Design Patterns". Today, we're going to explore two popular design patterns, and learn how good design can help you write code that is squeaky clean and extensible. Read More…
  • General
    A Beginner’s Guide to Design PatternsDppreview
    Ever wondered what design patterns are? In this article, I'll explain why design patterns are important, and will provide some examples, in PHP, of when and why they should be used.Read More…
Suggested Tuts+ Course
SOLID Design Patterns in C#$15