Hjertnes.blog

Dont use Git like a glorified Dropbox

May 18, 2018

We have probably all done it a few times or a few times a day. Taken all the changes that aren’t committed and given it the message “Stuff” and pushed it. But what is the point with a source code management if you just use it as a glorified Dropbox?

I have a few rules I try to follow in order to avoid it:

  • Only one change per commit; if you changed a bug and refactored it because it was a mess, then it should be two commits.
  • Every commit should leave the repo in a working order
  • Use proper commit messages, that explain what you did

The idea is to select what files should be included in the commit manually, and not just take everything; and then to the same for the lines in the diff.

#

May 17, 2018

Okay. I have tried a few times to go back to twitter and to follow a few people I miss here on Micro.blog. But I can’t stand it. I’m not sure what it is. But it feels so toxic. I’m not sure what it is.

#

May 17, 2018

I think my neighbors are judging me for not bothering to putting on a suit for 17th of May.

#

May 17, 2018

It should be illegal to put “chilli” on something if it isn’t even a little bit spicy 😫😤🙄

#

May 17, 2018

What I love about Lightroom CC is that my computer is useable while it is syncing, and that time takes about the same time Classic used to generate all kinds of previews.

Learn LISP

May 17, 2018

There are some languages you learn for fun, others you learn because you have to and some that you learn because of the job market. And then you have those you or some of us learn because learning them will bring a way to look at things with them. One of these languages are LISP. LISP is not one language but rather a family of languages.

I seriously think that doing a real project in a LISP like for example Clojure would do most developers some good. Because you will learn how to use a really simple, but beautiful language. And how to solve problems in a beautiful and understated way with many small functions instead of a huge class.

It’s probably not for everyone. But I think it will bring a perspective and a understanding that you will not get from something like C++ or Java.

#

May 16, 2018

The 23mm f2 is an awesome snapshot lens.

Helm vs Ivy

May 16, 2018

Helm and Ivy are the two big systems for doing “completion” in Emacs. Both of them are supported by Spacemacs.

They do more or less the same thing. It helps you to do what you are trying to do, either by completing a M-x command or figure out method names or class properties when you code. And a whole lot more.

I have used both, and the differences are minor. Helm is a little bit more full featured and always does what you expect. While Ivy is faster and more minimal.

I’m going to stick with Helm, because I’m so used to it, and I think it is a little bit easier to work in in certain areas. For example the M-x auto-complete are much better in my opinion. But, if you want something smaller, something faster or prefer something more minimal I think Ivy is a good option. And I would be perfectly happy with Ivy, if it was the only option.

#

May 15, 2018

Ordered a 23mm for my Fuji last night; and two new photo bags.

#

May 15, 2018

Clojure❤️