hjertnes.blog

#

02.02.2018 01:00

PaintCode:

Turn drawings into Swift code with PaintCode 3

#

02.02.2018 01:00

LG really know how to give their products awesome names: “LG 27” LED 4K 27UD88-W”

#

02.02.2018 01:00

Do we need to bring the subscribe back or is proper auto discovery enough?

#

02.02.2018 01:00

What is a super bowl?

Interesting language that compiles to JavaScript

02.02.2018 01:00

I’m not interested in most of the languages that compile to JavaScript. Some of them add syntax sugar (CoffeeScript), while others are too removed from the community (Elm) and others aren’t I that sure about (TypeScript).

The reason I don’t like CoffeeScript is that I don’t see anything but a different syntax to write JavaScript. In other words there are no technical reasons to use it as far as I can see. While Elm is it’s own eco system, and why would I choose to not use the community around NPM? The best of the three is without doubt TypeScript, but I’m not sure if writing C# for JavaScript is the way to go, yet.

Then I discovered [Reason)(https://reasonml.github.io/). It looks like it has a lot of what I dig about Elm (Type Safety aka discovering a majority of the potential bugs at build time) while still being able to use existing modules from NPM; and using stuff from the OCaml eco system is a great bonus.

It looks great, and I’m going to check this out in the near future. ≈

iPhone 8 Plus

02.02.2018 01:00

I went with the iPhone 8 Plus instead of the iPhone X.

The main reason was that my iPhone 6S died of water damage. It’s kind of interesting to look as the screen starts to look more and more like a ghost before it dies completely.

I went for the Space Grey iPhone 8 Plus, with 64GB of storage. It’s funny how the default iPhone storage have increased much faster than my storage needs. Because I used to have to go for the mid tier (32GB) to have the least storage to be comfortable. I would probably prefer 128, but 64 was the only thing that was in stock.

The reason “being in stock” is very important to me is that everything is on my phone. My train season ticket is in an app, and I use my phone to approve all two factor(and also signing) in my bank.

And yes, podcasts.

In other words, getting something as fast as possible was important.

Like I did with my 6S, I went with an Apple Case; an red one. I had two of them for my 6S. First a silicone one before it broke and then a leather case for the remainder of its life. They are both awesome. The silicone feels better, but is a little bit harder to take in and out of your pocket. While the leather is a little bit more slippery, and is therefore easier to take in and out of the pocket.

To be clear, it’s not difficult to pocket the silicone and the leather isn’t that slippery. But there is a minor difference.

This phone feels more or less the same as my old one, just a little bit better. With a few minor differences.

I do love having two lenses. One wide and one normal; no Apple it isn’t a portrait lens. It’s like having a 28mm and a 50mm.

The USN-C fast charging is fantastic. You basically cut the charging time in half, if you use a USB-C cable and a MacBook Pro brick.

I don’t have a huge problem with the lack headphone jack. The UX of using a bluetooth headset is better anyways, because you don’t have to unplug your headset to not use if, while for example answering the phone. But it is annoying to not being able to charge your phone, while listening to stuff when you are using a cable headset.

#

01.02.2018 01:00

I think the rush of finally getting something dumb to work after struggling with it for hours if not days is the reason I’m a developer.

#

01.02.2018 01:00

It looks like the monthly challenge stuff is a little bit buggy

Awesome Babel Plugin

01.02.2018 01:00

I have been doing a lot of major re-structuring of my day job front end code this month, and I guess I’ll continue doing that at least until the end of next month. And I was looking for a better way to dealing with import paths.

As you structure grows you’ll probably have more and more of some import statements like this “import foo from ‘../../../../../bar’”. And I was thinking: there got to be a better way. And after googling for a while I found this. It is a babel plugin that let’s you use tilde to reference the root (where you webpack config lives).

If you want to import the file in the root called “bar.js” or “bar.jsx” you only have to do “import foo from ‘~/bar’” instead of having to figure out how many levels under it you are coming from.

I have used it for a few weeks now and love it. It makes it far less likely that you need to do a lot of code changes when you only are moving stuff around.

SQLite.swift + App Groups

01.02.2018 01:00

I had a hard time to get Sqlite.swift to work nice with a App Group container. Look in the gist for details on how to get it work.