design-patterns.md

July 15, 2021 · View on GitHub

Bookmarks tagged [design-patterns]

www.codever.land/bookmarks/t/design-patterns

sohamkamani/javascript-design-patterns-for-humans

https://github.com/sohamkamani/javascript-design-patterns-for-humans

An ultra-simplified explanation of design patterns implemented in javascript


AnemicDomainModel

https://www.martinfowler.com/bliki/AnemicDomainModel.html

The basic symptom of an Anemic Domain Model is that at first blush it looks like the real thing. There are objects, many named after the nouns in the domain space, and these objects are connected with...


The Principles of Agile Design

https://www.infoq.com/presentations/principles-agile-oo-design/

Bob Martin of Object Mentor presents the first of his five principles of agile design. Beginning with an explanation of the real purpose of object-oriented design - the management of dependencies - Bo...


algorithms

https://github.com/keon/algorithms

Minimal examples of data structures and algorithms in Python.


PyPattyrn

https://github.com/tylerlaberge/PyPattyrn

A simple yet effective library for implementing common design patterns.


python-patterns

https://github.com/faif/python-patterns

A collection of design patterns in Python.


sortedcontainers

http://www.grantjenks.com/docs/sortedcontainers/

Fast, pure-Python implementation of SortedList, SortedDict, and SortedSet types.


The One Correct Way to do Dependency Injection

http://blog.schauderhaft.de/2012/01/01/the-one-correct-way-to-do-dependency-injection/

A couple of weeks ago a coworker told me that they have a little utility in their projects in order to set private fields for tests. He kind of claimed they needed that since they are using Spring, wh...


Why I Changed My Mind About Field Injection?

https://www.petrikainulainen.net/software-development/design/why-i-changed-my-mind-about-field-injec...

I used to be a huge fan of field injection. But one day I started to question myself. Could it be possible that I have been mistaken? Let’s find out what happened.


Making the Netflix API More Resilient – Netflix TechBlog – Medium

https://medium.com/netflix-techblog/making-the-netflix-api-more-resilient-a8ec62159c2d

The API brokers catalog and subscriber metadata between internal services and Netflix applications on hundreds of device types. If any of these internal services fail there is a risk that the failure ...


Tolerant Reader

https://martinfowler.com/bliki/TolerantReader.html

In the case of collaborating services, one of the stickiest points is evolution. Although there are some people who believe that you should just get your service definitions right first time so you ne...


Refactoring and Design Patterns

https://refactoring.guru/

Refactoring.Guru makes it easy for you to discover everything you need to know about refactoring, design patterns, SOLID principles and other smart programming topics.


Adapter (TypeScript Design Patterns) - YouTube

https://www.youtube.com/watch?v=beU4i949YXU

The adapter pattern allows you to make different classes with different interfaces work together, without changing their source code.


Strategy Design Pattern in Java 8

https://www.baeldung.com/java-strategy-pattern

Implementation of Strategy design pattern in the light of Java 8 features.


On The Subject Of Subjects (in RxJS) – Ben Lesh

https://medium.com/@benlesh/on-the-subject-of-subjects-in-rxjs-2b08b7198b93

Subjects in RxJS are often misunderstood. Because they allow you to imperatively push values into an observable stream, people tend to abuse Subjects when they’re not quite sure how to make an Observa...


Design Patterns: PubSub Explained – CodeKraft

https://abdulapopoola.com/2013/03/12/design-patterns-pub-sub-explained/

I actually wanted to write about PubSub alone: it’s a fascinating design pattern to me however, the thought occurred to me, why not write a design patterns’ series? It’ll be good knowledge for me and ...


Observer vs Pub-Sub pattern – Hacker Noon

https://hackernoon.com/observer-vs-pub-sub-pattern-50d3b27f838c

I was once asked in an interview, “what is the difference between Observer pattern and Pub-Sub pattern?”


Sidecar pattern | Microsoft Docs

https://docs.microsoft.com/en-us/azure/architecture/patterns/sidecar

Deploy components of an application into a separate process or container to provide isolation and encapsulation.


Template method pattern - Wikipedia

https://en.wikipedia.org/wiki/Template_method_pattern

What problems can the Template Method design pattern solve? [4]

  • The invariant parts of a behavior should be implemented only once so that subclasses can implement the variant parts.
  • Subclasses sh...
  • tags: design-patterns, clean-code

The Principles of OOD - Object Oriented Design

http://www.butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod

The first five principles are principles of class design. The first three package principles are about package cohesion, they tell us what to put inside packages. The last three principles are about t...


Single responsibility principle - Wikipedia

https://en.wikipedia.org/wiki/Single_responsibility_principle

The single responsibility principle is a computer programming principle that states that every module or class should have responsibility over a single part of the functionality provided by the so...


API gateway pattern

http://microservices.io/patterns/apigateway.html

Implement an API gateway that is the single entry point for all clients. The API gateway handles requests in one of two ways. Some requests are simply proxied/routed to the appropriate service. It han...


Delegation pattern - Wikipedia

https://en.wikipedia.org/wiki/Delegation_pattern

Delegation is a way to make composition as powerful for reuse as inheritance [Lie86, JZ91]. In delegation, two objects are involved in handling a request: a receiving object delegates operations t...


The Single Responsibility Principle | 8th Light

https://8thlight.com/blog/uncle-bob/2014/05/08/SingleReponsibilityPrinciple.html

When you write a software module, you want to make sure that when changes are requested, those changes can only originate from a single person, or rather, a single tightly coupled group of people repr...


图说设计模式

https://github.com/me115/design_patterns


史上最全设计模式导学目录

http://blog.csdn.net/lovelion/article/details/17517213


Reactor pattern - Wikipedia

https://en.wikipedia.org/wiki/Reactor_pattern

The reactor design pattern is an event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs. The service handler then demultiplexes the inco...


Factory (object-oriented programming) - Wikipedia

https://en.wikipedia.org/wiki/Factory_(object-oriented_programming)

In object-oriented programming (OOP), a factory is an object for creating other objects – formally a factory is a function or method that r...