Wrote a post on how I come up with ideas, and share the content: https://developerwithacat.com/blog/202507/blog-engagement-ti...
For the actual writing - I try to make it in a way that I like reading it. Informal, short, punchy, with variety in sentence tone/length.