hjertnes.blog

#

31.01.2018 01:00

Xcode X at WWDC? 🤔

#

30.01.2018 01:00

I guess this will be a week with a lot of podcast skipping, because I don’t give a shit about the HomePod

#

30.01.2018 01:00

[@jack]1 I fixed the mb.el issue you added.

#

30.01.2018 01:00

Hello World?

Exception handling.

30.01.2018 01:00

Handling exceptions is a pain in the ass no matter what language you use. I hate it in JavaScript, I hate it in C# and I hate it in Python. Exceptions are in many ways the least horrible way to deal with errors, at least that I know about.

Most languages that have try / catch or try / expect(python) syntax let you specify a exception or not. This means that you add multiple blocks of code to deal with different scenarios.

For example:

  • Try to read a file

  • Do this if the file doesn’t exist

  • Do this if we don’t have the permissions

  • Do this if the file is empty

  • Do this if we receive some other error.

This is not possible with the current catch(error){} syntax in JavaScript. But there are some ways to simulate it.

It’s not perfect, but it is a start.

#

29.01.2018 01:00

Micro Monday. This week I recommend everyone to follow the awesome [@belle]1 she is one half of the startup Hello Code. They make one of my favorite apps Exist and the Hello Code podcast is awesome.

#

29.01.2018 01:00

🤔 Home - Neovim

#

29.01.2018 01:00

[@eli]1 are there a built in package manager for nvim?

A good inkwell?

29.01.2018 01:00

I’ve had this on my mind for a few months now, and things that stay that way for a very long time are usually in the “not the worst thing in the world” camp.

The kind of bottle you get with your ink varies a lot, based on a few different factors; usually the price and the amount of ink. For example Iroshizuku have fantastic bottles, while Diamine have bad bottles and Noodlers aren’t the best, but not the best either.

There are a few different things I think are important when you are judging a bottle; but above everything there is two things that are the most important. How easy is it to fill your pens when it starts to run low? Is the opening large enough to fit any pen?

On one side is it really dumb to spend a significant amount of money on designing and producing a glorified container. You’re just going to use most of the ink before you throw it out. But on the other side is designing a good one important for the experience of using the ink, and you get to use more of it if it is good.

On the other side would a fancy bottle make the product more expensive. But the added cost will be lower per ml for larger bottles.

Would it be worth it to buy a inkwell that is designed to make it easy to use as much as possible of the ink? Then the whole “how good is the ink bottle debate” is void. I actually think I would. But I might consider re-using some of my Iroshizuku bottles until I find something I like.

Spacemacs

29.01.2018 01:00

Spacemacs have been on my radar for almost two years at this point.

I have been using Visual Studio Code for close to two years, and then Sublime Text since 2011, and Textmate since 2008; and before that in in between I have used VIM for close to 15 years.

I decided to try to make the jump because I was becoming more and more unhappy with Code, and when I tried to get VIM to do the same kind of things that was possible with Code the result was never good enough. But then I discovered that Emacs might be the perfect fit, because most of what I wanted was posssible in a more elegant and stable way.

The reason I never gave emacs a change was because the keyboard shortcuts drove me nuts, and the learning curve was very high. But everything was way more apporachable with Spacemacs. I decided to initially give it a week. And I was sold after just a few hours.

The power of emacs have given me a real performance boost. And I have moved a lot of stuff I used standalone apps for over to emacs since then.