Hjertnes.blog

Two sides to everything

September 19, 2018

No matter what “it” is, there are usually at least two sides to it. Usually there are some good, and some bad and a lot in between.

It is always important to be able to analyse stuff from multiple angels and viewpoints. Because it is easy to look at it from where you stand. But how does someone more conservative think about it? Someone more radical? Different groups of the society?

Each of them will react differently to different arguments.

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

September 18, 2018

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.

Inside

September 17, 2018

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