More music... why not
And again I shall compare the article with music.
The word this entry will revolve around is abstraction. Love/hate relationship whether it's coding or composing.
The author explains many things, but what I consider beautiful is how he tells us how big the reward is after struggling with abstraction of functional languages... maybe not in these words but I shall rephrase it with my own salt & pepper.
Alright,almost every tutorial, blog or stackoverflow post I've read of Clojure says that the best way to learn it is by coding, thing I just realized after the first problems homework and here comes my analogy... how do you master any musical instrument? By playing it!
In this course I shall make Clojure my own guitar.
First you don't realize how powerful a guitar can be, you may think you'll become a rockstar by just playing punk songs from Californian bands but even them had to practice and study. Maybe some people are born with the talent but also to shine between the talented you have to improve those skills.
Just like an instrument, we have Clojure (and any other functional programming language of course), you can't make a super robust program at first but starting with the typical coding exercises (going from celsius to fahrenheit, etc).
Abstraction while coding when using recursion to express in five code lines what you usually iterate in twenty is a powerful tool which I learned to like and try to use in most of my code (except when it exceeds iteration or another approach's complexity). This is comparable to music tools to express something, especially in blues I find this, blues uses very simple scales for a guitar player to improvise, around 2 notes per string you can make quite a groovy tune without needing a diatonic scale. Another example are chords vs power chords... you can play a C in 5th string with a power chord having C G C (a simple construction that has the fifth and 8th note) but if you want something more elegant (or just another approach) you can do a simple C chord having the whole harmony of the chord, it may be more complex to a starting player but when he masters it he will know when he can use it or simply use a power chord.
Dear reader, hope you find the beauty of my analogies between music and coding.
The word this entry will revolve around is abstraction. Love/hate relationship whether it's coding or composing.
The author explains many things, but what I consider beautiful is how he tells us how big the reward is after struggling with abstraction of functional languages... maybe not in these words but I shall rephrase it with my own salt & pepper.
Alright,
In this course I shall make Clojure my own guitar.
First you don't realize how powerful a guitar can be, you may think you'll become a rockstar by just playing punk songs from Californian bands but even them had to practice and study. Maybe some people are born with the talent but also to shine between the talented you have to improve those skills.
Just like an instrument, we have Clojure (and any other functional programming language of course), you can't make a super robust program at first but starting with the typical coding exercises (going from celsius to fahrenheit, etc).
Abstraction while coding when using recursion to express in five code lines what you usually iterate in twenty is a powerful tool which I learned to like and try to use in most of my code (except when it exceeds iteration or another approach's complexity). This is comparable to music tools to express something, especially in blues I find this, blues uses very simple scales for a guitar player to improvise, around 2 notes per string you can make quite a groovy tune without needing a diatonic scale. Another example are chords vs power chords... you can play a C in 5th string with a power chord having C G C (a simple construction that has the fifth and 8th note) but if you want something more elegant (or just another approach) you can do a simple C chord having the whole harmony of the chord, it may be more complex to a starting player but when he masters it he will know when he can use it or simply use a power chord.
Dear reader, hope you find the beauty of my analogies between music and coding.
Comentarios
Publicar un comentario