Notes

Atom Feed

This page contains random thoughts and impressions by me.

  1. 2018-09-19
  2. 2018-09-12
    Christian Kruse,

    Public service announcement: Math.max(...[]) returns -Infinity - took me about an hour of debugging to locate this problem.

    19:25
  3. 2018-09-11
    Christian Kruse,

    Currently I am working on a TypeScript project. During this project I wanted to give the TypeScript compiler the hint that I expect a class object as a parameter. I couldn't find something in the documentation. But since you can use expressions as type declaration I tried to use typeof:

    class Bar {}
    function foo(val: typeof Bar) {}
    foo(Bar)
    

    Surprisingly this works. Now after I knew what I had to look for I could find a hint in the documentation as well:

    Next, we then use the class directly. Here we create a new variable called greeterMaker. This variable will hold the class itself, or said another way its constructor function. Here we use typeof Greeter, that is “give me the type of the Greeter class itself” rather than the instance type.

    Maybe this saves you a few headaches.

    09:23
  4. 2018-09-10
    Christian Kruse,

    Over the weekend my good friend Jeena was visiting me. We had a lot of fun and tons of interesting talks. It was a pleasure, Jeena!

    05:24
  5. 2018-08-23
  6. 2018-08-15
  7. 2018-08-12
    Christian Kruse,

    EmacsCast: A journey into Emacs is a podcast of a programmer diving into Emacs. While I didn't listen to it, yet, I thought I should share it because there is not very much Emacs content out there. In the first episode he introduces hilself and explains why he, as a SublimeText user, dives into Emacs.

    Enjoy!

    14:29
  8. Christian Kruse,

    After a pause of 14 days it is surprisingly easy to get back into running. 17,8km in 01:21:33, 04:35 per km 🏃

    14:09
  9. 2018-08-11
  10. 2018-08-10
  11. 2018-05-14
    Christian Kruse,

    It's one of those days where I want to throw away ten years old code and just rewrite it…

    07:27
  12. 2018-05-02
  13. 2018-04-15
    Christian Kruse,

    Quick tip: use gsettings set org.gnome.desktop.interface show-battery-percentage true to show the battery percentage.

    19:02
  14. 2018-04-14
  15. 2018-04-12
  16. 2018-03-18
  17. 2018-02-24
    Christian Kruse,

    I hate running in the winter. The first 15 minutes it‘s fucking cold. Then up until about 10km its warm enough. Then for the rest of the run it is cold again. ❄️

    10:40
  18. 2018-02-15
    Christian Kruse,

    I have started to work with React during the last few months. I have to say, I am really impressed how well everything works and how easy it is to create good, working UIs with it.

    07:51
  19. 2018-02-10
    Christian Kruse,

    I understand now why so many users hate Windows 10... doing some support for relatives, fuck, this is unbearable. Windows seems to get worse every release.

    20:17
  20. 2018-02-09
    Christian Kruse,

    Current status: BEAMing due to working with Erlang and Elixir (get it? Get it? BEAMing!)

    12:55
  21. 2018-02-03
  22. 2018-01-29
  23. 2018-01-07
  24. 2017-12-31
    Christian Kruse,

    Resume for 2017: I ran about 1000km, lost 38kg, gained some muscles and had a lot of fun while trying to achieve this. A good year. 👍

    14:31
  25. 2017-12-06
    Christian Kruse,

    A project I was working on the last couple of months finally hit production 😍

    15:19
  26. 2017-12-02
  27. 2017-11-30
    Christian Kruse,

    Wow. According to this about 50% of the top 500 websites take up to 14 seconds to „get interactive” with 4s alone spend for parsing and compiling JS. That's insane.

    06:36