I have had numerous conversations about what exactly is Protocol Oriented Programming since my Protocol Oriented Programming with Swift book was released. Everyone I spoke to seemed to have his or her own opinion about what POP is. Out of all of those conversations I think this is the best explanation that I heard “Programming with an orientation toward the use of protocols for abstraction”.
Have you wanted to use the Swift programming language to write applications on your BeagleBone Black? How about programming robotics with Swift? This blog post will show how I setup my BeagleBone Black to use Swift and also shows how we can use the SwiftyGPIO package to interact with the digital GPIO ports on the BeagleBone Black.
Generic programming can be defined as "programming with concepts”. In this post we will look at the idea of Concepts in the Generic Programming paradigm and how this relates to Protocol Oriented Programming in Swift.
Pretend for a while that class, struct, enum, and friends don’t exist in Swift... What type of more fundamental structure is capable of expressing object-oriented programming? Join me as we use closures and functions to create our own object-oriented programming system!
In this post I would like to look at the The Law of Useful Return. The Law of Useful Return says: If you have already done the work to get some useful result, don’t throw it away. Return it to the caller because they may be able to use it.