Kicked off the migration to react-twc in one of my projects.
For simple components, it works well. But if they are not just styled, for example, if they need to render a different element, it gets verbose. <MyComponent as=“section” /> now needs the asChild prop and then the section element as a child. It’s not that bad, but I think it’s ugly.
As someone who also uses many Radix components, I’m familiar with it. So it is ok, but it still looks ugly.
For variants of the same element, I migrated to react-twc with cva. Which gives a clean look and makes clear what needs to be used.
And for the rest, for example, labels and inputs, I kept them as is, for now. The label and inputs are wrapped with a div. Also, I need to pass down the Radix Form elements with the as prop.
Thoughts
For some components, I have to refactor the code. At the current state, I don't know whether it's worth using react-twc or not. For simple components, I think it is awesome. Furthermore, for components with plenty of variants, by using CVA. But for a complex one, I have to think about it and work out something that fits.
Sure, I could do just fine without them. Or just use Writeas. But Obsidian helps a lot for writing on all of my devices, and LanguageTool helps clean up the junk I write. 😅
I’ve found a way I can personally handle tasks and tickets at work.
The problem is that most of the time, no matter how much I’m into a task, I forget plenty of things. I don’t know why. So I came up with a simple structure and Obsidian.md as a tool. On how I can express my thoughts on such topics and also save them for later.
When writing with cursor, it is like talking with your silly self and thinking the outcome is really good.
Writing with CC is like writing with an elaborate sane person, who really knows more than you. (Most of the time.)
When writing a prompt to either of them, I have this mindset above for each in my head, and this is how my prompts look. Maybe this is the reason why my outcome on cursor is not as good as in cc?
Nevertheless is gain something from both of them, so the current state is ok for me.
This is one of my projects that has a low priority and doesn’t get the love it deserves. But in the end, this is one what saves me a lot of work and I need to adjust only a JSON entry after I’m done with a client.
I've recently reestablished an old rule I had used for a while to keep my place clean. But over the years it disappeared, and I no longer adhered to that rule. Now that everything is messy again, I was reminded of the rule once more.
Rule of 2. Pick up two things every time you enter a room, leave your car, etc.
This is such a helpful rule. And I need to get used to it again. Every place can benefit from it; the same is true for coding. Here I try to clean up a file; I update code in it. But this has limits. If the code changes I need to make will create a massive PR just to complete the feature, I try to focus only on the feature. Just to make the work not harder for every reviewer.
When I closed the notebook lid, I was really confident that I had written my daily post. But in the morning, I noticed that I totally missed that. 😩 And I had already prepared most of the post. So maybe I will remember posting it in the evening today.
There is a post about how I migrated to WEZterm, which I still need to write at some time in the future.
Preliminary skirmish
But let’s assume I already wrote the post. I’m really happy with the terminal. I needed to migrate away from Alacritty+Tmux because of the lack of Windows support from Tmux. Overall it was a good decision to migrate. The only thing that currently bothers me is that there is a “bug” where the font rendering misses some characters but brings them back on config reload. (cmd+r)
Here starts the main post
After starting my journey with Claude Code, I needed a handy shortcut to open CC in a 1/3 split pane. Here is the part of my config, which is doing the Job: