The last article was written around September 2015 and a lot has happened in the world of Swift since then including my world (both of which are for another time/article). However in the last couple of months I have been interviewing developers to work with us and the interesting fact that emerges from the technical […]
Convert Binary String to Integer
How do you convert Binary String to it’s Integer Value? There are many approaches to convert Binary strings to Integers. One approach could be to iterate through all of the characters in the string and add the value of 2 raised to the power of the index.
Heads or Tails – Using and understanding Swift
It would be nearly a year since Swift was announced by Apple. It soon became the language of choice for many developers. It is one of the fastest adopted programming language till date. Not only that, it also has one of the largest repository of source code using Swift. Here’s a look at both sides […]
You’re My Favorite Waste of Time
This song from Paul Owens released somewhere around 1986 summarizes very well what Swift means to a lot of developers today. This is a subtle way of suggesting that Swift in it’s evolutionary phase is a bit difficult to work with. It would still be fine if the updates and changes were a year down […]
One way to use enums – just another day with Swift
Swift is quite interesting and is changing the way you would develop in the future. For this article, let’s look at using enums in an interesting manner.
Swift 2.0 – 2.B Open Source
WWDC 2015 had some interesting announcements and the biggest and most applicable / important announcement is that Swift is now 2.0 and going to be Open Source and be available for Linux. Since swift can be used for REPL, it could be used as an alternative for writing and executing scripts (on Linux type distros). […]
Create a Menu driven app with Swift and read Xcode preferences – Part I
In this article we are going to make a swift app for the Mac OSX. This will have no window but instead have a menu item that would be used for interacting with the application. This application shall also read a settings and alter the icon and menu according to the status of that setting
My Wishlist for Playgrounds
Apple Playgrounds are amazing and for those that are using it know how it works best for them. Some use it for algorithms, some for testing code, etc. One of the reasons that I think playgrounds is important is the integration. The integration of commentary and code that make it seem more like an interactive […]
Chaining cout in swift like C++
In an earlier article, we discussed the possibility of adding a cout like functionality in Swift as seen in C++ (https://swift.oz-apps.com/2015/04/using-a-cout/). There were a couple of impediments that prevented the full functionality of our cout function. Let us revisit that and add chaining
The ever changing nature of Swift and how to keep up with it
If you learned a language, that was it, you did not have to re-learn the same. There could have been additions or extensions to the language but it would not have changed. Welcome to the future, nothing is constant and nothing is static. Though Swift is a production release, ie. you can use it in […]