If you specifically want to program beats, I recommend this quirky book "Pocket Operations": https://shittyrecording.studio. It's basically guitar tabs for drum machines. Pick out some styles as a foundation and then build on top of it. Think of it as boilerplate code.
Being a software dev by day, and a former musician in high school, the current world of digital music production tools is as incredible as it is overwhelming. It's good to have something that orients your practice and experimentation.