<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Gof on wid's blog</title><link>https://wid-blog.github.io/tags/gof/</link><description>Recent content in Gof on wid's blog</description><generator>Hugo</generator><language>ko</language><lastBuildDate>Sun, 17 Mar 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://wid-blog.github.io/tags/gof/index.xml" rel="self" type="application/rss+xml"/><item><title>Observer</title><link>https://wid-blog.github.io/posts/tech/design-pattern/observer/</link><pubDate>Sun, 17 Mar 2024 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/posts/tech/design-pattern/observer/</guid><description>Observer는 상태 변화를 구독자에게 통지하는 일대다 관계로 결합을 끊는다. Subject는 누가 듣는지 모른 채 통지만 한다. EventEmitter, RxJS, 이벤트 기반 아키텍처가 모두 여기서 확장된다. 브로커를 매개하는 pub/sub와는 구분된다.</description></item><item><title>Strategy</title><link>https://wid-blog.github.io/posts/tech/design-pattern/strategy/</link><pubDate>Sun, 03 Mar 2024 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/posts/tech/design-pattern/strategy/</guid><description>Strategy는 알고리즘군을 같은 인터페이스로 캡슐화해 런타임에 교체한다. if/switch 분기 수정 대신 전략 추가로 확장한다. 일급 함수가 있는 언어에서는 별도 Strategy 클래스가 함수 하나로 흡수된다.</description></item><item><title>Facade</title><link>https://wid-blog.github.io/posts/tech/design-pattern/facade/</link><pubDate>Sun, 25 Feb 2024 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/posts/tech/design-pattern/facade/</guid><description>Facade는 복잡한 서브시스템에 단순한 진입점을 제공해 클라이언트와 내부 구현의 결합을 끊는다. 서비스 레이어, 라이브러리 SDK가 사실상 Facade다. Adapter는 인터페이스 변환, Mediator는 양방향 조정이라는 점에서 구분된다.</description></item><item><title>Decorator</title><link>https://wid-blog.github.io/posts/tech/design-pattern/decorator/</link><pubDate>Sun, 18 Feb 2024 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/posts/tech/design-pattern/decorator/</guid><description>Decorator는 상속의 조합 폭발을 조합으로 대체한다. 같은 인터페이스를 유지하는 래퍼를 런타임에 겹쳐 기능을 동적으로 더한다. java.io, Python 함수 데코레이터, 웹 미들웨어 체인이 모두 같은 의도의 변주다.</description></item></channel></rss>