Advertisement

Design Patterns

  • 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…
  • Design Patterns
    Multi-Instance Node.js App in PaaS Using Redis Pub/SubNodejs retina preview 1
    343 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
    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…
  • Milo
    Rolling Your Own Framework: A Practical ExampleJavascript wide retina preview
    308 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
    233 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
    489 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
    39 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…
  • General
    A Beginner’s Guide to Design PatternsDppreview
    209 shares
    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…
Advertisement
Suggested Tuts+ Course
Design Patterns in C#$15
Advertisement