hjertnes.blog

Three of my favourite Clojure methods: assoc-in, get-in, dissoc-in.

18.09.2018 10:00

When people hear Clojure and Immutable, I guess they think with horror of doing that with a language that have not been designed for it, like for example Java or JavaScript.

In Clojure you use the methods get, dissoc and accoc to get, set or remove values from hashtables or objects if you come from JavaScript land. That’s great, but far from revolutionary. Where it really shines is with the get-in, dissoc-in and assoc-in methods. They do the same thing, except that you can go as deep as you need to. They are the best when you work with deep data structures.

It was when I discovered these methods when I got it. This language is designed to work with immutable types. And it is easier than working with mutable types in most languages.

A Pile of Pencils

17.09.2018 10:00

The moment I got home after recieving the Clasroom Friendly Sharpener through eBay and tested it out on a few pencils I started to consider ordering another one. Because it is the only sharpener I want to use.

I did not do that. But instead I found a pen case or pouch at home and sharpened 24 pencils on both ends and started to carry that. The pouch I found at home have since been replaced by one from Nock. But the same principle stands.

Instead of doing what I did in the beginning, where I used up on pencil before moving on to the next, I now carry a lot of sharp pencils. And I use one after another and then re-sharpen them when I get home. Not usually every single day, but 2-3 times a week. But I usually stick to one pencil and re-sharpen it as often as I need when I am at home.

I still carry the KUM Masterpiece though, just in case, but I have never needed it.

Inside

17.09.2018 10:00

I first go this game on my iPhone, during Christmas, I think. And I played it some. Then I re-purchased it the day I got my Switch. And this game is really awesome. The artwork is beautiful, and the game play is a interesting play on a puzzle game. The main thing is slowing puzzels to move on, but some stuff are still time sensitive like on a side scroller.

Awesome game, not that expensive, and I recommend getting it either on the Switch or on iOS. I prefer the Switch version, but I would not say that it is better there. I just prefer not having any games on my Phone

#

14.09.2018 18:15

Liked: How to make a one-page zine | Experiment with Nature

#

14.09.2018 18:15

Liked: V8 JavaScript Engine: Celebrating 10 years of V8

#

14.09.2018 18:15

Liked: Compiling and Exporting Chapters for My iOS 12 Review with Drafts 5 – MacStories

#

14.09.2018 18:14

Liked: 10 Years of 512 Pixels – 512 Pixels

#

14.09.2018 18:14

Liked: How the Stanford Heart Study App Saved Jason Perlow – MacStories

#

14.09.2018 18:14

Liked: Why Clojure? – AppsFlyer – Medium

#

14.09.2018 18:13

Liked: PostgreSQL 11 and Just In Time Compilation of Queries