Podcasts + Castro

http://is5.mzstatic.com/image/thumb/Music128/v4/34/ab/8b/34ab8b67-ced5-549d-6eb9-baf8a962892a/source/170x170bb.jpgRecently I switched to using Castro as my podcast app. I find it much nicer to use than other podcast apps I’ve tried, which includes Downcast, Overcast, and Apple’s podcast app. The drag and drop is wonderful, and I love the inbox feature. Plus it has an elegance that the other apps lacked (IMHO).

But now that I’m using a better podcast app, I’m subscribing to even more podcasts, and I don’t have time to listen to them all! I can’t spend my whole life listening to podcasts. I’m going to have to be a lot more selective, I guess.

BTW, the makers of Castro have a really great podcast which any iOS developer would probably enjoy. It’s called “Supertop Podcast”. I highly recommend it.

Wat. Swift has a Never Type?

I use hole-driven development all the time, so discover that fatalError() returns this new type I’ve never heard of – “Never” – a “bottom type”, is pretty cool. I’ve never heard of Never or bottom types before. But they sure will come in handy from now on.

In a nutshell, it lets you do a fatalError() in temporary functions where returning a complicated-to-construct return value is too much bother. Like so:

func unfinishedFunction() -> ComplicatedType
{
   fatalError("so I don't need to construct a ComplicatedType")
}

Nice, huh?

http://alejandromp.com/blog/2018/1/30/hole-driven-development-swift-fatalerror