• 9 Posts
  • 376 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle







  • My philosophy is that anyone familiar with the code shouldn’t need the comments to understand it, and anyone who isn’t should be able to with the comments.

    This means that I have semi long names like “this_variable_varies” would be about the max name size I would use. But I also use plenty of small functions and I use comments to explain big chunks of code with just a simple goal and method description.

    I sometimes find my code a bit overly verbose, but I know I would rather see that then some code that I need to de-obfuscate mentally.





  • I got xiaomi, opened it up and disconnected the Bluetooth / wifi card. Connect it to a linux device and now it is a shitter version of a dumb tv. It’s crazy how smart tvs really really suck at being dumb. But it does work once you get used to some annoying quirks.

    Tip: connect a cheap air mouse/keyboard to it as a remote