Category "design-patterns"

Big configuration object as a parameter in Swift?

In JavaScript/TypeScript, we have this pattern that is often used in libraries where you have one optional parameter as the last function argument which default

Interface Method with different type of arguments

I'm constructing a set of filter-classes which will all have the same method 'Applyfilter'. How should I define the interface which contains apply filter? The o

Reasons for and against objects handling their own persistence [closed]

I am looking at different options for persistence modelling in Windows Phone using Isolated Storage. One of the ideas I have come up with was

How to pass context in golang request to middleware

I am trying to understand how the context introduced in Golang 1.7 works and what would be the appropriate way to pass it to middleware and to a HandlerFunc. Sh

What is the exact difference between Adapter and Proxy patterns?

As I understood both Adapter and Proxy patterns make two distinct/different classes/objects compatible with each for communication. And both of them are Structu

Asynchronous processing with fallback java

I am working on an java application that will makes calls to a web service, I dont want to incur additional latency while making these calls hence I am planning