Sitemap

Abstraction

1 min readJul 1, 2015

--

I recently watched this video by Tom Stuart about abstraction. I thought Mr. Stuart did a great job explaining the benefits of abstraction, which helped me see how it could be applied to my code.

Get Matthew Giardina’s stories in your inbox

Join Medium for free to get updates from this writer.

Basically, abstraction enables us to do more powerful things with our minds than they otherwise would be able to do. The part of the video that I found most interesting was when Mr. Stuart said that mathematics is all just an abstraction. I never thought about math like that before, but he’s right. We don’t actually need to have 100 apples to know what having 100 apples means. Likewise, we don’t need to remember exactly why 1 + 1 + 1 + 1 = 4, we just need to know that’s what 4 is. This abstraction of “four” enables us to now do 4 + 4, without having to to (1+1+1+1) + (1+1+1+1). This is the power of abstraction, and applying this same principle to code will allow us to do more powerful things.

--

--

Matthew Giardina
Matthew Giardina

Written by Matthew Giardina

Rails Engineering Student at The Iron Yard. Follow me @mlgiardina.