SQL Gaps and Islands Problem 解題思路:適用 MSSQL、MySQL、PostgreSQL,使用 ROW_NUMBER 與 Window Function 解決連續範圍與中斷區間問題
State Pattern(狀態者模式)
Posted on
Edited on
In
C#
,
DesignPattern
Disqus:
Symbols count in article: 4.6k Reading time ≈ 4 mins.
Symbols count in article: 4.6k Reading time ≈ 4 mins.
以 C# 實作狀態模式 (State Pattern):用訂單流程為例,展示如何用狀態物件取代複雜的條件判斷與狀態轉移邏輯
MediatorPattern(中介者模式)
Posted on
Edited on
In
C#
,
DesignPattern
Disqus:
Symbols count in article: 2.3k Reading time ≈ 2 mins.
Symbols count in article: 2.3k Reading time ≈ 2 mins.
以 C# 實作中介者模式 (Mediator Pattern):透過中介者物件解耦模組間的複雜交互,降低系統耦合度
RabbitMQ (二) 概念
RabbitMQ 系列第二篇:深入了解 RabbitMQ 核心概念,包含 Producer、Consumer、Exchange、Queue、Binding 等角色與訊息流轉機制
RabbitMQ (一) 安裝介紹
RabbitMQ 系列第一篇:介紹 RabbitMQ 訊息中介軟體與 AMQP 標準協議,以及在 Windows/Linux 上安裝 Erlang 環境與 RabbitMQ Server 的步驟
建立自己Blog系列(三) Hexo next theme 介紹
Hexo 部落格建立教學第三篇:介紹為何選用 Hexo 框架,使用 Markdown 撰寫、搭配 CICD 部署到 GitHub Pages,以及 NexT 主題安裝設定
Autofac + Interceptors(AOP) 動態代理
使用 Autofac DynamicProxy 實現 AOP 動態代理,透過 Interceptor 攔截方法呼叫實作快取、日誌等橫切關注點
Autofac (IOC)容器介紹
Autofac IoC 容器入門教學:了解控制反轉與物件生命週期管理,比較 Ninject、Unity 等容器並實作依賴注入
橋接模式(BridgePattern)
Posted on
Edited on
In
C#
,
DesignPattern
Disqus:
Symbols count in article: 5.6k Reading time ≈ 5 mins.
Symbols count in article: 5.6k Reading time ≈ 5 mins.
以 C# 實作橋接模式 (Bridge Pattern):將抽象與實作分離,用品牌×顏色的多對多組合展示如何避免類別爆炸
(SQL Server)Dynamic pivot 動態樞紐分析
SQL Server Dynamic Pivot 動態樞紐分析教學:使用動態 SQL 搭配 PIVOT 運算子,將列轉行實現動態欄位的樞紐分析報表