Jan-Lukas Else

Thoughts of an IT expert

πŸ’¬ Micro: 2019-12-22

This section is for short notes, thoughts or IndieWeb interactions.


Refactoring

Published on in πŸ’¬ Micro

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?

View

Jan-Lukas Else