Ask HN: Thinking in Functional programming

https://news.ycombinator.com/item?id=714336
by justlearning • 17 years ago
20 20 17 years ago

So, I am working thru the "programming clojure" book. My first lisp language.

I have been finding it very difficult to implement simple problems. I have become familiar with the syntax (got over the = operator typing every other place from my finger memory). While I am comfortable, I feel like I know few keywords without knowing where to use, akin to learning a new language - saying hi, bye, but unable to form a sentence. That is my ponder stop..almost pushes me into procrastination mode

How do I Think in Functional. I catch myself thinking oops(i think of classes,methods..)and i correct myself and end up with something procedural like.

With ref to Uncle Bob's link below , how do I think "inside out"?

II) instead of having another question, I thought of asking it as a sub question from the same link below - TDD in clojure. for one, I don't see a mock object ever created in clojure...please correct me.

I was wondering how to do "TDD" in LISPy languages.

http://blog.objectmentor.com/articles/2009/07/19/uncle-bob-jsps-learning-clojure

Related Stories

Loading related stories...

Source preview

news.ycombinator.com