Exploring String Interpolations new superpowers in Swift

Photo by Patrick Tomasso on Unsplash

We Speak Strings, We Write Strings

Strings are everywhere in our world. We developers start our day with strings, writing code in our favorite IDE and end with strings, writing our status emails.

Photo by Danielle MacInnes on Unsplash

So, it’s almost about one month already since WWDC 2019 happened this year. All the developers are still busy figuring out what new things Apple has added or updated for development. There were some big announcements and small announcements, but we, the developers need to make sure that we won’t miss anything important. So, I created a quick checklist of the items what we should not miss. Let’s make it short, concise and simple.


  1. iOS 13 will let you limit application location access to Just Once. Until now, there were three options — Always, While Using, or Never. One more…

What is optional?

This is pretty much the first thing, every swift developer read at the time they started. Let’s understand optional in a more funnier & shorter way, Let’s say you have gone for some shopping with a wallet in your pocket. The wallet can have some money or not. If you think the wallet as an optional variable, then either it has some value or no value at all.

Photo by Sérgio Rola on Unsplash

💥💥💥A value type is a type whose value is copied when it is assigned to a variable or constant, or when it is passed to a function.💥💥💥

Photo by Dan Gold on Unsplash

“Now CPU can contain multiple cores and therefore we can run multiple threads” 👍

Yes, It was one of the greatest improvements in technology. We use Dispatch Queue in Swift to create a new thread. Dispatch Queue, as the name suggests, it manages the execution of work items that are submitted to it.👏


🤘Hurrah!!! It’s a nice weekend…

Swift is a mother🤰and it has two sons 👬-

  • Value Type 🚴🏻‍♀️
  • Reference Type 🚴‍♂️

But what are their characteristics?🤼‍♂️

Photo by Aleks Dorohovich on Unsplash

Swift is one of the topmost type-safe languages nowadays. 🎯🎯🎯

Ohhh wait!! What does it mean if a language is type-safe? 🧐

A type-safe language always ensures that an operation works with the right kind of data available at that point.✓

As developers, we know Git very well, as it is a very important part of our daily activity. Software developers use it all the time. We can not spend a day without interacting with Git. We can run Git from the terminal or use some third party tools like Sourcetree.

A function takes some input, does something to it and creates an output. A function has a signature and a body. If you give the same input to a function then you always get the same output. That is in short a definition for the function.

Programmers come across functions every day. A function represents a special type of relationship: every input value that the function takes is associated with some output value. So in a more generic way, a function is a rule which maps some input values to one output value.

Boudhayan Biswas

Swift Developer. In love with Python & Machine Learning.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store