jlelse's Blog

Thoughts, stories and ideas

Refactoring

Published on in 💬 Micro
Short link: https://b.jlel.se/s/29c
Share 
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

I wrote about my Indieweb dream this morning. To come closer to this dream and to clean up some code, I started refactoring my hugo backend code. I made use of Go interfaces to later be able to easily add more storage, CDN or social network providers. It also made the code a bit cleaner and a bit more modular, but there’s still a lot of learning and work to do. What I still struggle with though is testing: I don’t have any automatic tests yet. How do I test HTTP calls to external APIs?

Tags:

Jan-Lukas Else
Interactions & Comments
You can also create an anonymous comment.