logoalt Hacker News

darksaints • today at 4:24 AM • 3 replies • view on HN

By a weird stroke of luck, clojure was one of the first languages I learned. And yeah, I guess it left a lasting impact on me in the form of an appreciation for immutability and dataflow programming.

Unfortunately it also left me with an extremely deep distaste for dynamic types, and in particular, the blind usage of lists and maps for everything. The ML family of languages finally gave me a paradigm worth keeping around.


Replies

kmac_ • today at 8:30 AM

I always thought that a good craftsman knows many tools and techniques, so I learned and practiced everything. My goal was not to leave blank spots on my technology and language map. I learned FP, OOP, and various architectures like DDD, and I did not dismiss any language or major framework. "Every tool has its own place and is useful". Then, after years, I was employed by a company that used Ruby as their main language. "Such beautiful, simple code," I thought. It was a real culture shock for me. Strings and maps everywhere. No types. Monkey patching. No structure. I was really disappointed, but other words come to mind. I quit. So yeah. Once you go to some regions, there is no way back. I wonder how people who started with, for example, Haskell, and were shaped in a correct way, function when they touch other paradigms.

chii • today at 7:38 AM

> the blind usage of lists and maps for everything

it's not blind, tho it could seem that way, and if someone hadn't thought deeply abut how they should use lists and maps, then it could be described as being blindly using them.

But this style is also what makes clojure dynamic, and flexible. Updates don't have to be rigid, and keeping backwards compatibility is a lot easier than a lot of statically typed languages.

That's not to say you can't have some rigidity where it's needed (specs for example, can be sprinkled in where you need/want it).

quixoticelixer- • today at 4:27 AM

I started learning Clojure when I was 17, but then later moved away from programming. It's done the opposite with me, I struggle to really get the benefit of static types and I still think of everything as maps and functions.

➕ show 3 replies