Object-oriented music - InformationWeek

InformationWeek is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

IoT
IoT
Government // Enterprise Architecture
Commentary
3/22/2008
12:00 AM
Commentary
Commentary
Commentary
50%
50%

Object-oriented music

I've been an amateur musician most of my life, and I've been playing more music recently than usual.  Perhaps for that reason, it has struck me that the way musicians think about music is much like the way object-oriented programmers think about object-oriented programming.

Consider: Object-oriented programming is programming with abstraction, inheritance, and dynamic binding.  To see that each of these notions has a musical analogy, consider the idea of the scherzo movement of a symphony.

The notions of "symphony" and "movement" are both abstractions, similar to the notions of "vector" or "queue."  A symphony is an extended piece of orchestral music, normally comprising several movements, which are shorter pieces in the same or related keys.  A scherzo is a kind of movement (inheritance), usually in a dance form (inheritance), with witty or humorous qualities (multiple inheritance, or interface side conditions).  And if we talk about, say, a typical structure for the scherzo movement of a symphony, without mentioning a particular symphony, we are engaging in dynamic binding.

 So it seems to me that the kinds of abstractions that we use as programmers are surprisingly similar to those that musicians use.

 Now that I've become aware of this similarity, other examples have been popping up.  I'll talk about more of them later.

 

We welcome your comments on this topic on our social media channels, or [contact us directly] with questions about the site.
Comment  | 
Print  | 
More Insights
InformationWeek Is Getting an Upgrade!

Find out more about our plans to improve the look, functionality, and performance of the InformationWeek site in the coming months.

News
How SolarWinds Changed Cybersecurity Leadership's Priorities
Jessica Davis, Senior Editor, Enterprise Apps,  5/26/2021
Commentary
How CIOs Can Advance Company Sustainability Goals
Lisa Morgan, Freelance Writer,  5/26/2021
Slideshows
IT Skills: Top 10 Programming Languages for 2021
Cynthia Harvey, Freelance Journalist, InformationWeek,  5/21/2021
White Papers
Register for InformationWeek Newsletters
Video
Current Issue
Planning Your Digital Transformation Roadmap
Download this report to learn about the latest technologies and best practices or ensuring a successful transition from outdated business transformation tactics.
Slideshows
Flash Poll