Skip to main content

Tutorials

Swift 4 is packed with all kinds of great updates to the Swift Standard Library's Dictionary type thanks to the great work put in by Nate Cook to enhance the Dictionary and Set types in proposal 165 of Swift Evolution.

If you have ever wondered how to find a substring inside another string in C++ then hopefully this tutorial will help walk you through how to do that.  As an example, in C++, if you have ever wondered how to determine if the substring "Agnosticdev," is part of the parent string "Hello Agnosticdev, I love Tutorials," then this tutorial will show you how to indicate, with an unsigned integer, the index of the first character in the substring.

With the release of Swift 4 next week and the implementation of proposal 168 now up and running in the Swift 4 toolchain I thought it would be nice to get in and get my hands dirty with multi-line string literals to provide some examples on how standard string manipulation practices now work with multi-line string literals in Swift 4.  This tutorial will focus on some of the general operations developers use in working with and string manipulation for day to day tasks in development.

If you have ever wondered how to find a substring inside another string in Swift then hopefully this tutorial will help walk you through how to do that.  As an example, in Swift 3 or above, if you have ever wondered how to determine if the substring "Agnosticdev," is part of the parent string "Hello Agnosticdev, I love Tutorials," then this tutorial will show you how to indicate, with a boolean value, the existence of the substring.

If you have ever wanted to compile and install multiple versions of Python side by side on the same Linux or Mac machine then this tutorial will walk you through how to set that up.  One reason you might want to run different versions of Python at the same time is to test out a specific implementation or test different environments against a specific feature.  Thankfully, running multiple versions of Python at the same time can be setup with relatively few steps.  Let's get started!