Interesting article a coworker posted taking an objective look at composition versus the “I” word.
In the Beginning……there was no inheritance and no composition, only code. And the code was unwieldy, repetitive, blocky, unhappy, verbose, and tired. Copy and Paste were the primary mechanisms of code reuse. Procedures and functions were rare, newfangled gadgets viewed with suspicion. Calling a procedure was expensive! Separating pieces of code from the main logic caused confusion! It was a Dark Time.
Composition vs. Inheritance: How to Choose?
I happened upon a tech blog this week, and it has a ton of great material for developers and techies alike. I ended up on his site through this infographic:
What Is Programming And What Do Programmers Do? [Infographic]
He does a great job summarizing the life of a programmer in a minute or two worth of reading, so much so that I’m subscribing to his blog. I figured I’d share in case anyone else found value in it.
He also has an entertaining infographic about choosing a programming language. It’s a little biased toward Python, but everyone is entitled to their opinion 🙂 :
Which Programming Language Should I Learn First? [Infographic]