May 2018
Beginner to intermediate
290 pages
6h 43m
English
Like most programming tools, destructuring works best when mixed with a healthy dose of common sense. The real value of destructuring is that it makes those deep dives into data structures easier to code and easier to read. There is something about the look for the value here approach of destructuring that clicks with the human brain. Or it clicks to a point: digging too far into a complex data structure with a single destructuring expression is one sure way to make your code confusing.
For example, if you had a vector of reader information, like this:
| | [{:name "Charlie", :fav-book {:title "Carrie", :author ["Stephen" "King"]}} |
| | {:name "Jennifer", :fav-book {:title "Emma", :author ["Jane" "Austen"]}}] ... |
Read now
Unlock full access