Besides improving the input of code-refactor.lua, this plugin isn't doing anything special in my setup. So I could basically remove the select config for telescope. I always thought it will improve it. 🤷
The config is nothing special. Just changed the key to <leader>a. Which opens a small floating window with possible code-actions.
Because I work 99% of the time in a React.js environment where arrow functions are used everywhere, it is handy to have a code action where I can toggle it into a normal function.
Watched the third movie today with my oldest. We were there at noon. The theater was empty. Only us. I don’t know what I expected, but an empty on a Christmas Day so early was not on my list. I expected that at least 2–3 people would be there.
The movie itself was what I expected. We had a lot of fun watching it. A bit too long because my son was starting to run at ¾ of the movie. He sprinted to the cinema screen and back to me multiple times. But for the finale, he was back in his seat.
After watching the Knuckles Spinoff Series, we missed Wade Whiple a bit. He had only a tiny role in this movie. But Knuckles alone made us love enough. 😂
I’m glad that Jim Carrey came back to his role as Dr. Robotnik. After the second movie, he said that he is considering retirement. Lucky us that they made the script good enough for him and that he had a double role. It was insanely well-made. In the trailer, I thought there were entirely different people. However, in the movie, they gave a subtle hint that Carrey is playing both roles. 😂
At the end, I’m excited about the fourth movie. I hope that Jim Carrey will also be in it. Because he is the soul of all 3 movies so far.
The challenge here is, for a given time, perhaps a Month, working around 30 minutes a day on a project of choice and posting about the progress.
An Idea could be, using the January, which has 31 Days. Every day, doing around 31 minutes of work on a project. Maybe your own or an open-source project.
Another Idea is to not limit it to X minutes each day, instead just make progress somewhere and post it on your blog or social media. Perhaps changing your eating habit, doing more activities like walking, jogging or just excessive more. As long as you make progress, it will be fine. :)
For me, I plan to make progress on my side-projects. And for a long time, I had that in my mind of doing minimum 30 minutes a day on a project. It doesn't matter what, coding for 30 min or just documenting stuff. There should be progress. No matter what.
I came across this quote in my notes but couldn't find its source. But I really like this perspective on learning. It shouldn't be a problem to make mistakes while learning.
The more I use git worktree, the more use cases I find. But what is git worktree? Basically, it takes a copy of your project and creates a new folder with the copy. So that you can work in parallel on the same project, without the need to stash or commit your current changes.
A good use case is, for example, when you are working on feature X and your boss found a bug in your application which needs to be fixed as soon as possible. You tell your boss: “No problem, I'll fix it right away”. You don't need to close your editor, stop the dev server or stash your changes. With git worktree you create a copy of your project into a new branch. Now you can work in parallel on both branches, without juggling with unsaved files.
One new use case, I've found, was while working on a client's project. Usually, we need a VPN to get data into the local dev server. My plan was, to have Storybook running and the main site on localhost, to compare components. The task here was, to rewrite the components from Styled-Components to Linaria CSS. Unfortunately, the VPN had connection issues and I required a different way. So, I've created a new worktree and ran a second Storybook server. Now I was able to compare the components because I had the new files running on one server and the old files on a second. 🥳
To get have an easier life working with git worktree, I've created some git aliases:
[alias]
....
wt = worktree
wa = worktree add
wr = worktree remove
wl = worktree list
...
For the fifth time, I'm watching RPO, third this year. The last time I saw it, was also together with my wife. And surprisingly, she loved the movie too. Which I never expected. 😅
Before watching the movie for the first time, I've read the book. One of the few books I have inhaled and read in every free minute. (One of the other one is The Martian, where I also love the movie). Maybe it's not the best book from a professional standpoint, but it makes me happy, and this is what counts.
The same goes for the movie. It's not the best of its kind, but I just love watching it and letting it drag me into it's world. Every time I see it on my screen, I feel the urge to watch it. Like today. One of those rare times when I can just lie on the couch and watch, without feeling the guild of not being productive. 😎
This post is nothing special, no details or something, just a post that I'm happy with being done. The move was just a simple rewrite of the styles. No fancy tools used. Just transferred the styles one by one. So you could stop reading here. 😅
For the last 2 years, I've worked on a MacBook for my clients and private projects. And I think I can finally compare the feeling of working with the MB and other Notebooks. Around 2015, I've bought my first ThinkPad, a T450s from Lenovo and used it for ~6 years (Before that, I was using a Schenker XMG Gaming Notebook, which was not the best for client work. Big and clumsy). I was happy with it and my Arch Linux installation. The only thing what bothered me, was the memory limit of 12gb. So I decided to buy the next ThinkPad, a T490s. That was the end of 2019 and the start of 2020. Which I then used until I bought the MacBook. The best thing was, that the Arch Linux installation was the same as on the T450s, I just moved the data onto a new bigger SSD.