64x64 icon dark hosting
Get a Tuts+ subscription for just $45! Deploy New Relic now to claim.
Advertisement

Design Patterns

  • Object-Oriented Programming
    Design Patterns: The Simple Factory PatternSimple factory design pattern
    344 shares
    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
    171 shares
    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
    534 shares
    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…
  • Magento
    Custom Events in Magento With the Observer PatternMagento
    134 shares
    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
    140 shares
    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
    474 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…
  • Design Patterns
    Multi-Instance Node.js App in PaaS Using Redis Pub/SubNodejs retina preview 1
    376 shares
    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
    469 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…
  • Milo
    Rolling Your Own Framework: A Practical ExampleJavascript wide retina preview
    311 shares
    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
    234 shares
    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
    463 shares
    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
    21 shares
    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…
Advertisement
Suggested Tuts+ Course
SOLID Design Patterns in C#$15
Advertisement