Refactor #3 – Designing a system Architecturally

When you look at refactoring some code there are a couple of reasons to do so. What are the reasons to do so? Take you pick from this list. 1. The version of Swift has changed, need to be current 2. I read about this amazing technique, I need to implement it 3. This would […]

Refactoring Code – #1

A lot of things have happened since the last time I wrote a post which seems to be around August 2018 here. The post was inspired from a Swift class I was teaching. At the time it was Swift 4.2 and now we have Swift 5.3. During this time, I worked for a few organizations […]

Learning a New Language

This is not a swift related post – This is more like what I did over the weekend in a day. I learned to read and write Korean (Hangul). Since it is self taught and the sounds are slight different than the languages that I have learned / know so far. However I feel that […]

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.

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 […]