This page contains random thoughts and impressions by me.
2017-11-30
Wow. According to https://mjtsai.com/blog/2017/11/27/the-cost-of-javascript/ 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.
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.
2017-11-24
How to pattern match on regular expressions in Elixir: %Regex{} = ~r/pattern/
I noticed a new behavior. I lost 37kg in 6 months, and now, as I have finished losing weight, every time I eat above my calories I feel guilty. Yesterday I ate about 50 kcal over my need for that day, and I thought about an hour if I should go for another walk just to get rid of that surplus.
Although my goal is to gain some muscle weight (which means I have to have a caloric surplus) I am still in that „eat less!“ mindset. That's an interesting new behavior for me.
I ordered the Apple Watch Series 3. While it is a lot of money for a silly watch (the most I spent on watches before the Apple Watch was about 80€ for a G-Shock) I noticed that my Series 0 watch is my most used Apple device over the last three years. I use it every day, mainly for activity tracking during sports and for calorie counting. The fitness marketing totally worked on me. I'm even excited for the new device 😝
2017-09-15
Apple is using some interesting tech for web pages on the iPhone X http://stephenradford.me/removing-the-white-bars-in-safari-on-iphone-x/
Chris Wellons writes in this article about gap buffers and their performance indications when using multiple-cursors.el. He states that because of the technical implementation of changes in Emacs as gap buffers things like multiple-cursors.el are a performance hit and thus should not be used. Instead one should use search & replace as well as macros.
I totally disagree. Performance is nothing I should be molested with as a user. When I choose to use a tool I look at the mental overhead it adds. Will it disturb my workflow? How much thought do I have to invest to use it properly? How much thought is necessary to solve my editing problems?
Macros, for example, add a lot of mental overhead. I have to be aware of many things: I have to ensure that the cursor is at a defined position before executing it (often done with a movement to the beginning of the line), I have to ensure that cursor movements are reproducible in the different contexts, etc, pp. It totally disturbs me in what I am doing right now.
Search & replace on the other hand add a bit of complexity, but much less than macros. The biggest difference is that I can't see my changes before executing the replace.
This is fixed when using multiple cursors: I instantly see my changes and can adopt them, e.g. in case of typos. Also more complex edits are possible since all cursor movements are done on all cursors.
I just don't care about the performance. Make it fast enough that I don't get annoyed by lag, that's good enough for me.
This FSFE campain is pretty neat: public money, public code. I signed it. https://publiccode.eu
How can you contribute to Firefox 57 success https://diary.braniecki.net/2017/09/01/all-hands-on-deck-how-you-can-use-your-skills-to-contribute-to-firefox-57-success/
While I agree that performance alone is a bad reason to choose a tech stack I still think that performance is important. On the other hand expressiveness and effectiveness of the language are important as well. He makes a pretty good case.
2017-06-21
Very interesting article about the reasons why Ubuntu Mobile failed http://www.lieberbiber.de/2017/06/20/my-ubuntu-for-mobile-devices-post-mortem/
Although I'm not a Firefox user these days I have to say I'm impressed by their last release. After years of ignorance followed by years of „we're not that slow really“ they finally got noticeably faster. It feels much less sluggy and websites which were slow on the older releases now feel much more responsive. Kudos!