Two Types of Composition
Read OriginalThis article delves into the concept of composition in software development, clarifying a term often misunderstood. It distinguishes between two primary types: function composition (nesting functions) and object composition (merging objects), also suggesting the alternative terms 'nesting' and 'merging' composition. The author provides code examples for function composition and discusses how similar compositional principles apply in contexts like CSS/HTML layout with Flexbox.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser