Skip to content
Tagged articles

Rule of Three

2 articles · Page 1 of 1
Linyb Geek Road
Linyb Geek Road
Oct 9, 2026 · Fundamentals

Palantir Ontology Modeling: 4 Core Principles for Scalable Domain Design

This article breaks down Palantir's four prioritized ontology modeling principles—domain-driven design, DRY with Rule of Three, open/closed extension, and composition over inheritance—illustrating each with concrete anti-patterns and a practical 12-question review checklist to prevent model fragmentation as teams scale.

Composition Over InheritanceDRYData Modeling
0 likes · 20 min read
Palantir Ontology Modeling: 4 Core Principles for Scalable Domain Design
Liangxu Linux
Liangxu Linux
Jan 6, 2025 · Fundamentals

Master Deep vs Shallow Copy in C++ and Follow the Rule of Three/Five

This article explains the concepts of shallow and deep copying in C++, demonstrates their pitfalls such as shared memory and double deletion, and shows how to implement proper copy constructors, assignment operators, and move semantics following the Rule of Three/Five to ensure safe and efficient resource management.

C++Deep CopyMemory Management
0 likes · 16 min read
Master Deep vs Shallow Copy in C++ and Follow the Rule of Three/Five