Saturday, 19 February 2011

Clojure Complete

==========
Code Complete (Steve McConnell)
- Highlight Loc. 2851-56  | Added on Monday, February 14, 2011, 07:30 AM

In the case of natural languages, the linguists Sapir and Whorf hypothesize a relationship between the expressive power of a language and the ability to think certain thoughts. The Sapir-Whorf hypothesis says that your ability to think a thought depends on knowing words capable of expressing the thought. If you don't know the words, you can't express the thought and you might not even be able to formulate it (Whorf 1956). Programmers may be similarly influenced by their languages. The words available in a programming language for expressing your programming thoughts certainly determine how you express your thoughts and might even determine what thoughts you can express.
==========
Code Complete (Steve McConnell)
- Note Loc. 2855  | Added on Monday, February 14, 2011, 07:31 AM

think about clojure in relation to this. you define your own language.
==========

Top of my list for personal development this year is to re-visit Clojure. Although I spent a few months programming in it last year, I have the nagging suspicion that I was actually programming in Java in Clojure. I want to learn to think in Clojure, and program in it idiomatically.

This quote from Code Complete caught my attention because of the idea that in Clojure you write the language that you want to write your application in. Clojure is, in many ways, the ultimate language for writing a DSL, since there is minimal syntax and thus any functions and macros you write in effect extend the language. You are not limited to the words provided by Clojure - you can invent new words to express your thoughts.

This is the sort of thing that I want to investigate further.

I am very hopeful that the upcoming Joy of Clojure will help me to attain Clojure enlightenment.

No comments:

Post a Comment