• 94 Posts
  • 1.98K Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle






  • It’s actually the first time I used to do Ai assisted unit test creation. There were multiple iterations and sometimes it never worked well. And the most important part is, as you say, think through and read every single test case and edit or replace if necessary. Some tests are really stupid, especially stuff that is already encoded in the type system through Rust. I mean you still need a head for revision and know what you want to do.

    I still wonder if I should have just gave it the function signature without the inner workings of the function. That’s an approach I want to explore next time. I really enjoyed working with it for the tests, because writing tests is very time consuming. Although I am not much of test guy, so maybe the results aren’t that good anyway.

    Edit: In about 250 unit tests (which does not cover all functions sadly) for a cli json based tool, several bugs were found thanks to this approach. I wouldn’t have done it manually.






  • I used the Xbox 360 game controller for years on PC, then switched to Xbox One, then Xbox One S and then to the Xbox Series S controller. So we speak about decades at this point. I played extensively Steam games and emulation for all kinds of systems (where input latency is extremely important in some games). At the same time I also have used extensively a wired classic SNES like shaped controller that is wired connected and recently I replaced my Xbox controller with a 8bitdo wireless controller.

    So you see there is some experience in using and in comparison. Latency was never an issue and I never felt it. But the common theme here is, I never used Bluetooth and always use the (even if its proprietary) dongle by Microsoft for connection. That’s because it should provide superior connection stability and better input latency. I always had issues with Bluetooth before (I mean with any other kind of hardware connection) and always hated it and avoid it.

    Having said this, Bluetooth can be good. In example the Playstation consoles and their controller are using Bluetooth and its not an issue there. But you have to make sure that the driver and the Bluetooth dongle (or chip) is compatible and working fine, in combination with the controller. If you notice a difference between wired and wireless, then its a sign that the wireless connection doesn’t work properly for your setup. I think my best advice is to buy the proprietary dongle from Microsoft (as I hate doing this, but its the best for Xbox controllers). You will also need to change the driver from xpadneo to xone.

    However I switched recently to a different controller because I experienced a few issues with the driver. Because the driver wasn’t updated for a while and it broke with a new Linux Kernel update on my Archlinux based system.



  • (Edit: I always mix up the terms server side and client side decoration. Hopefully by my description its clear which one I’m referring to.)

    Pro SSD: the window manager should decide how the apps look

    • user: consistency across the operating system usage
    • dev: generalized and less burden on the dev, less dependencies to worry about and development specific to GNOME
    • both: flexible, change your window manager and the app changes without modifications (at least in ideal world)

    At least for a normal window. I wouldn’t mind if an application can request with a high priority that it wants to display its own decorations. In that case there should be an option to disable decorations from the window. That is how some applications do work and allows for a flexible usage based on users configuration. Now if there was just an official API from all window managers that can check this configuration, then the user wouldn’t even need or know there is a setting for.