r/functionalprogramming • • Jun 19 '19

Witchcraft: the magic of math, functional programming, and community

https://medium.com/open-collective/witchcraft-the-magic-of-math-functional-programming-and-community-b45bc7213ff8
26 Upvotes

5 comments sorted by

6

u/Sneechfeesh Jun 19 '19 edited Jun 19 '19

I studied music theory and composition originally. Unbeknownst to me, it had the same prereqs as computer science. I learned category theory, linear algebra, and a smattering of techniques. They didn’t tell us what they were called at the time, but later as a programmer I realized what they were.

Can some people who have studied music theory and composition but also computer science and/or math explain what she means here?

I don't think anybody is actually taught category theory in undergrad, except for folks who read about it on their own. And is it really considered a prerequisite for a CS degree? Also, what could music theory and composition possibly have to do with linear algebra?

I didn't study computer science, and I know nothing about music theory, but I did study math in undergrad. The statement sounds like BS.

2

u/aikixd Jun 19 '19

Studying music theory as a hobby. Yes, Western music is pretty much just math (I guess other music theories are pretty much the same). The way the harmonics, accords, rhythm and other stuff is made is calculated. For instance, at first I had trouble with improv. After an hour read about harmonics I could do it with ease (excluding the muscle memory part, of course). Knowing music theory, you can extrapolate it to a more generic solution and end up with math.

2

u/Sneechfeesh Jun 19 '19

But is it math in the way she describes? Does learning harmonics relate to functors between categories or linear maps between vector spaces?

If it is, that's very exciting, and I'd love to learn more about it.

2

u/aikixd Jun 20 '19

You do not learn music theory in those terms, although you can describe it in them if you want. Music theory is a solution to a problem, not a problem solving principle, like math. You have an established set of rules, which can be described as categories, vectors or whatnot. But this will not give you to much insight into math, since the problem itself is quite simple. You will, however, have a good reference to use when learning those topics, that will help you understanding them. You can also easily create new music theories. Though the sound attractiveness will be questionable.

1

u/[deleted] Jul 03 '19

Hell no. I went from music to math. Knowing how to cut changes and play Charlie Parker solos didn’t help with abstract algebra at all.

I call BS