Hjertnes.blog

How I interact with Micro.blog

August 22, 2018

As a user of Micro.blog you have a few options to how you read your timeline and post content or replies.

I’m not that worlds best at using so called social apps. The fact is that I forget about them when I have more interesting stuff to do. And the next thing I know is that there have gone hours or even days between looking at them. This is why I almost never read anything in the Micro.blog apps.

What I do is that I read my timeline as a RSS feed, and I re-locate the post in the Micro.blog app if I would like to reply to it.

This works much better for me, because then I can read all the times at a speed that works for me. I started doing this back before the Micro.blog apps supported to go far back in time, and most of the M.B action happened while I was asleep.

Using RSS for this is probably not something most people would want to do. But I love it.

Pure functions

August 21, 2018

One terms you will hear over and over and over when you start getting into functional programming is the term pure functions.

But they can be a little bit difficult to understand, or difficult to find a clear description.

A pure function is a function that returns a result based on it’s inputs and the inputs alone. The result should be deterministic. This have some consequences for how most programmers write their code. Because a pure function never change anything outside itself.

This mean that it does not use variables that are not defined inside it or are parameters, and it does not change anything outside itself.

If it prints: not pure. If it writes to a file: not pure. If it alters global state: not pure.

I think that using pure functions as much as possible is a good idea, because pure functions are often less buggy and easier to maintain. And it forces you to limit unpure functions to a minimum and really thinking before you deal with unpurity.

Personally I prefer languages like Clojure that are built with this in mind.

#

August 21, 2018

I’m really loving Splatoon 2 this far!

My writing workflow

August 20, 2018

The way I write is that it starts with some idea. I usually write it down either in Drafts or in a Field Notes, that eventually finds its way into Omni Focus. Then I write a draft in a lined Leuchtturm1917 notebook. Usually either with a pencil or a fountain pen.

The next step is that I go through all the stuff I have written there every 25 pages or so. I transcribe the stuff I am happy with on my AlphaSmart Neo or re-add the idea to Omni Focus if I want to try it again.

Then I start BBEdit, open my Drafts.txt document and send the text from my AlphaSmart when I’m done.

The next step is that I once a week schedule posts for this site and The Ink Smudge. I pick the stuff I like from the Drafts document and I also try to delete stuff that I know I’m never going to publish.