It became a tradition for me that in September I go to Krakow to participate in DevDay conference. It was my 4th time there and as usual it was pleasant to be there. In comparison with the previous year there were two changes. The first one was the venue. This time the event took place in a modern cinema, with a big screen and very comfortable chairs. The second change, the more subtle one, was in the selection of speakers and subjects. I have a feeling that there is a transition from strict technical (.Net) conference into more general, personal development oriented one. I like this change a lot. The older I am, the more I want to listen about people stories and their feelings and less about another framework.Read more
Lesser known Clojure: new string functions in Clojure 1.8
The latest version of Clojure (1.8) introduced a new set of functions operating on strings. Those functions are only a syntactic sugar. All of its functionality can be achieved with
Java methods, but they make our code more idiomatic and easier to read. For clarity’s sake I will list all of them with its doc strings and some examples.
Lesser known Clojure: reduce kv
In addition to commonly known
reduce function Clojure has its specialized version called
reduce-kv. This function is designed to work with associative collections (like map or vector). Here is its signature:
Lesser known Clojure: keep, keep-indexed and map-indexed functions
I could safely say that
filter are the most commonly used functions in
Clojure (and probably other functional languages). Of course
Clojure provides other useful functions that operate on collections that are not so popular and commonly known. Let’s look at some of them.