Tag

composition

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Jan 21, 2025 · Fundamentals

Master Python Classes: Inheritance, Composition, and Advanced OOP Techniques

This guide explores Python class fundamentals, covering inheritance versus composition, the use of super(), distinctions among instance, class, and static methods, dataclasses, the __dict__ attribute, name mangling, @property, dynamic class creation with type(), and __slots__ for attribute control.

ClassesOOPPython
0 likes · 9 min read
Master Python Classes: Inheritance, Composition, and Advanced OOP Techniques
政采云技术
政采云技术
Dec 28, 2022 · Frontend Development

Understanding Currying in JavaScript

This article explains the concept of currying in JavaScript, demonstrates its benefits for reducing parameter repetition and improving code maintainability, and shows practical implementations including manual currying, utility functions, and applications in Redux middleware and function composition.

CurryingFunctional ProgrammingJavaScript
0 likes · 9 min read
Understanding Currying in JavaScript
Architecture Digest
Architecture Digest
Feb 28, 2022 · Fundamentals

Object‑Oriented Modeling: Concepts, Code Examples, and Design Principles

This article explains the principles of object‑oriented modeling, contrasting object and data models, illustrating with a simple account example, discussing composition versus aggregation, and providing Java code snippets for modeling processes such as eating, demonstrating how to design and implement domain objects and services.

AggregationDomain-Driven Designcomposition
0 likes · 12 min read
Object‑Oriented Modeling: Concepts, Code Examples, and Design Principles
macrozheng
macrozheng
Feb 21, 2022 · Fundamentals

When Inheritance Breaks Your Code: Why Composition Often Wins

This article critiques the over‑idealization of object‑oriented programming, explaining how inheritance can create tight coupling and hidden bugs, why encapsulation may leak state, the limits of polymorphism, and how modern stateless service architectures favor composition and functional approaches.

EncapsulationOOPStateless
0 likes · 13 min read
When Inheritance Breaks Your Code: Why Composition Often Wins
IT Services Circle
IT Services Circle
Feb 7, 2022 · Fundamentals

Designing Unique IDs and Choosing Between Inheritance and Composition in C++

The article discusses how to give each class object a unique identifier, compares inheritance and composition for associating objects, and examines the trade‑offs of each approach using C++ examples, ultimately suggesting that the choice should depend on hierarchy depth and maintenance cost.

C++Object-Oriented DesignUnique ID
0 likes · 5 min read
Designing Unique IDs and Choosing Between Inheritance and Composition in C++
Top Architect
Top Architect
Dec 16, 2021 · Fundamentals

Object‑Oriented Modeling: From Data Model to Object Model, Composition, Aggregation and Practical Java Examples

This article explains the fundamentals of object‑oriented modeling, contrasting data‑model and object‑model designs, illustrating attribute‑method composition, composition versus aggregation, and providing concrete Java and SQL examples such as a simple Account domain, an eating‑process model, and an open‑source e‑commerce reference.

AggregationDatabasecomposition
0 likes · 14 min read
Object‑Oriented Modeling: From Data Model to Object Model, Composition, Aggregation and Practical Java Examples
Architecture Digest
Architecture Digest
Dec 15, 2021 · Fundamentals

Object‑Oriented Modeling: Concepts, Attributes, Composition, and Code Examples

This article explains the philosophical basis of object‑oriented thinking, distinguishes attributes and operations, compares data‑model and object‑model designs with Java and SQL examples, discusses composition versus aggregation through a digestion model, and illustrates application‑service patterns in account credit scenarios.

AggregationDomain-Driven Designcomposition
0 likes · 13 min read
Object‑Oriented Modeling: Concepts, Attributes, Composition, and Code Examples
Top Architect
Top Architect
Dec 1, 2021 · Fundamentals

Object‑Oriented Modeling: Concepts, Java Implementations, and Composition vs. Aggregation

This article explains the fundamentals of object‑oriented modeling, contrasts data‑model and object‑model designs with Java code examples such as a simple Account entity and an eating‑process simulation, and clarifies the difference between composition and aggregation while also touching on application services and a Spring‑Boot e‑commerce project.

AggregationDomain-Driven Designcomposition
0 likes · 12 min read
Object‑Oriented Modeling: Concepts, Java Implementations, and Composition vs. Aggregation
IT Architects Alliance
IT Architects Alliance
Sep 24, 2021 · Fundamentals

Object-Oriented Modeling: Concepts, Java Implementation, and Composition vs Aggregation

This article explains object‑oriented fundamentals, contrasts object and data models with Java and SQL examples, discusses application services, and clarifies composition versus aggregation through real‑world analogies and code demonstrations.

AggregationDomain-Driven Designcomposition
0 likes · 11 min read
Object-Oriented Modeling: Concepts, Java Implementation, and Composition vs Aggregation
Architects Research Society
Architects Research Society
Sep 19, 2021 · Fundamentals

Understanding UML Associations, Aggregations, Compositions, Generalization and Specialization

This article explains UML relationship types—including association, aggregation, composition, generalization and specialization—by describing their definitions, visual notations, multiplicity, role names, and real‑world examples, helping readers distinguish each concept and apply them in software modeling.

AggregationAssociationGeneralization
0 likes · 7 min read
Understanding UML Associations, Aggregations, Compositions, Generalization and Specialization
Architect
Architect
Sep 16, 2021 · Fundamentals

Object Modeling: Comparing Object and Data Models, OOP Principles, and Composition vs Aggregation

This article explains the philosophical basis of object‑oriented thinking, distinguishes objects from things, discusses attributes and methods, compares object‑oriented and data‑model designs with Java and SQL examples, and clarifies composition and aggregation through real‑world and code illustrations.

AggregationData ModelingDomain-Driven Design
0 likes · 13 min read
Object Modeling: Comparing Object and Data Models, OOP Principles, and Composition vs Aggregation
ByteFE
ByteFE
Jul 5, 2021 · Fundamentals

Key Concepts of Functional Programming in JavaScript

This article explains core functional programming concepts in JavaScript—including pure functions, side effects, currying, composition, and pointfree style—detailing their definitions, advantages, practical code examples, and how they improve code clarity, testability, and reusability.

CurryingFunctional ProgrammingJavaScript
0 likes · 11 min read
Key Concepts of Functional Programming in JavaScript
Selected Java Interview Questions
Selected Java Interview Questions
Jun 11, 2021 · Fundamentals

Why Prefer Composition Over Inheritance and How to Apply It in Java

The article explains the drawbacks of deep inheritance hierarchies in object‑oriented design, illustrates the problem with a bird example, and demonstrates how composition, interfaces, delegation, and Java 8 default methods can replace inheritance to improve code readability, maintainability, and flexibility.

compositiondesign patternsinheritance
0 likes · 12 min read
Why Prefer Composition Over Inheritance and How to Apply It in Java
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2021 · Fundamentals

Understanding Class Relationships in Object‑Oriented Programming: Dependency, Composition, and Inheritance with Python Examples

This article explains the three core class relationships in object‑oriented programming—dependency, composition, and inheritance—illustrates each with clear Python code, discusses inheritance advantages, single‑ and multiple‑inheritance types, and introduces the method‑resolution‑order (MRO) algorithm.

Class RelationshipsDependencyMRO
0 likes · 11 min read
Understanding Class Relationships in Object‑Oriented Programming: Dependency, Composition, and Inheritance with Python Examples
政采云技术
政采云技术
Mar 16, 2021 · Fundamentals

Understanding Programming Paradigms: Imperative, Declarative, Functional, and Object‑Oriented in JavaScript

This article explains core programming paradigms—imperative, declarative, functional, and object‑oriented—illustrating their concepts, differences, and practical JavaScript examples, while discussing features like first‑class functions, currying, composition, and OOP principles such as encapsulation, inheritance, and polymorphism.

CurryingDeclarativeFunctional Programming
0 likes · 14 min read
Understanding Programming Paradigms: Imperative, Declarative, Functional, and Object‑Oriented in JavaScript
政采云技术
政采云技术
Aug 22, 2019 · Frontend Development

Understanding JavaScript Functions: Types, Scope, Closures, and Advanced Techniques

This article provides a comprehensive guide to JavaScript functions, covering their various forms, execution contexts, scope chains, arguments handling, return values, the dynamic this keyword, and advanced functional programming techniques such as currying, decoration, and function composition.

ClosuresCurryingDecoration
0 likes · 54 min read
Understanding JavaScript Functions: Types, Scope, Closures, and Advanced Techniques
Qunar Tech Salon
Qunar Tech Salon
Aug 4, 2017 · Frontend Development

Understanding and Implementing Higher-Order Components in React

This article explains the concept of higher‑order components (HOCs) in React, demonstrates basic and advanced implementations—including parameterized HOCs, display‑name handling, composition with compose, and practical examples such as loading and copy utilities—while comparing HOCs with parent components and recommending open‑source libraries.

Higher-Order ComponentJavaScriptcomposition
0 likes · 10 min read
Understanding and Implementing Higher-Order Components in React