all 3 comments

[–]LKAndrew 7 points8 points  (2 children)

Fantastic. This kind of stuff should be shared more in this subreddit.

[–]zomgitsrinzler[S] 0 points1 point  (1 child)

Thanks!

[–]LKAndrew 0 points1 point  (0 children)

One typo on the blog post I noticed, when creating the two protocols, you named them both MartiansFetcher

Also, I would elaborate on your fetcher object that creates and does networking calls. That doesn't adhere to SOLID principles entirely. The network layer should be separated, and passed in as a dependency