TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
A TERMINAL COMMAND THAT TELLS YOU IF YOUR USB-C CABLE IS BAD
Summary from the TLDR newsletter
Android Studio recently added a new feature that warns users when they connect a slow cable to their phones. This post presents a script that checks USB connections in macOS. The script was originally cobbled together with AI, but while it worked, it was a mess to maintain. The developer used AI to port it to Go so the code could be structured more legibly and more easily tweaked.