Well, to be honest, it was a 2 year journey. I started writing about coding and built up a following on Medium. This was followed by actively contributing to my local dev community and teaching programming courses. I started speaking at Meetups on a regular basis, ultimately organizing and hosting them myself.

All of this contributed to technical knowledge, writing prowess and people skills, which are crucial if you want to be a Developer Advocate.

(Feel free to message me directly if you want a more detailed explanation.)