Solving Spotify puzzles using Swift

You must have at some stage attempted to learn about algorithms and searched for puzzles to write algorithms for to solve. There are three interesting puzzles laid out by Spotify at https://labs.spotify.com/puzzles/. We shall have a look at solving those using Swift

How much Abstraction is good abstraction?

Abstraction, is a word that in simple terms means ‘to remove from’ or ‘draw away’ and in terms of software development that is like a function say floodFill(xPos, yPos) so all you need to do is call the function, you do not know how this is implemented as you have no access to the underlining […]

Using cerr and cout in Swift 3.0

Last year, there was a post called using cout like functionality in Swift which you can find https://swift.oz-apps.com/2015/05/chaining-cout-in-swift-like-c/. There were a lot of changes in Swift and that made that code redundant, so here is a fresh look at the same again

Everything is a nail…when

The thing about swift is that it makes you think in a particular way, so whenever you see code it makes you think about how it would be done in Swift.

Strings and Emojis

I came across a tweet today joking about how composite emoji’s can be manipulated using Javascript. I tried to replicate the same in Swift and with interesting results.

Move Zeroes – Algorithms

Come across a task in an Interview or a website that challenges you to this. The thing that intrigues me is a good challenge (and many a times I do struggle with it, I am no Genius) However it is still worth a try.

Using Swift techniques for Drawing

The long discussion on is Code an Art or a Science will continue for years to come because there will always be two sides to it and I am not attempting to join or fuel that discussion. However, I feel that in my lifetime I have been lucky to get exposure to a whole lot […]

Add Binary Numbers

I love Swift for a couple of reasons of which one is clean and readable code. As an advocate of simple to read code and using functions available with the system I prefer to work with simpler code and one that would be provided by the system.

The  Watch – Deploying an app

It’s more than a year since the  watch was released, however I bit the bullet and got my hands onto (or rather a watch on my hand). While I can write about how useful the  watch is or how can we use it effectively, this article is all about developing for the  […]

Validating Strings for Numbers

Swift is gaining popularity with Developers and as companies are considering Swift for their projects. Over a period since the publication of my Swift book (at Swift v1.2) there are many that keep up to date with the new features in Swift and there are those that are now considering the move to Swift or […]