Hi, Sam nice article. Hashnode is a great place for blogging. What's more amazing is that it's free.
I have been writing on Medium for almost a year now and I really loved it. There is a huge audience for developers on Medium too. If you check out the popular publications on Medium, you will realize that most of them are related to programming and software development.
For example, "better programming" has over 100k followers. "JavaScript in plain English" has more than 50k followers. There is a huge audience on Medium that pays 5$/month to read programming content. Medium is more like a social platform, if you're thinking about ranking on Google, having your own blog is the best option.
But Medium has a built-in audience, I write about frontend and JavaScript stuff. Even if I don't get ranked on Google, I still have the chance to get thousands of reads from the existing Medium audience. Some of my articles got over 20k views without ranking on Google.
You can add code snippets on Medium too. You can use a chrome extension, embed a GitHub gist, or use backticks to do that.