Consider the need to use a dictionary. You will have to insert , look-up , remove words to and from it. What data structure would you use ? Would you use a hash table ? Would that be efficient in terms of memory? Perhaps not. A Trie is a tree like data structure used for storing words in a way…
Tag Archive for swift

iOS Spellbook Part I: Fundamentals
Yes, you have the Fundamentals ready for download starting Today! Months of research and re-write/compile are condensed in a little more over 250 pages. It’s up to you how fast you’ll become an Expert iOS Developer after reading the iOS Spellbook, but our book will deliver the most relevant content so you will do the 20% work to achieve the…

Firebase 101
Why firebase? Making a stand alone application is fun, we developers have access to a rich API provided from Apple to make beautiful design and intricate, elegant logic. However, for a modern app a way to persist data outside the actual device is needed. Devices get lost or broken, apps can be uninstalled and so on. No developer wants…

A Swift Introduction to Algorithms – Part 1
Welcome to your journey throughout the vast world of algorithms! Whether you are still wondering what an algorithm is or hoping to deepen your knowledge about them, in this article will help you dive swiftly into the subject, carve out some valuable thinking patterns through various exercises and hammer a few hard problems using the power of algorithms. What…
Getting Started With iOS Programming
DISCLAIMER This tutorial is intended for people who are just starting out with iOS programming. It doesn’t assume any familiarity with Xcode and only assumes basic knowledge of Swift programming and OOP. In this tutorial you’re going to make a tip calculator iOS application. First Steps To follow along with this tutorial you’ll need to have Xcode installed. Xcode is…

Random Names using Markov Chains
Introduction In this tutorial we’ll look at generating plausible random names from a list of pre-existing names. We’ll also build a fun little app that lets you generate your Elf / Ninja name. Just generating random characters won’t give us reasonable results. We’ll use a list of preexisting names in order to generate new ones. We’ll take advantage of the…

Binary Search and Applications
In this tutorial we’ll look at one of the fundamental algorithms of computer science, binary search. We’ll also look at a practical application of binary search: implementing fast autocompletion. Introduction Consider the problem of finding an item in an array. The obvious solution is to go through all the items in the array and check if any of them is…

Bezier Paths and Gesture Recognizers
In this tutorial we’ll be creating an app that lets you play around with shapes, moving, scaling and rotating them. We’ll be UIGestureRecognizers and UIBezierPaths. The end result will look like this: Detecting Taps To get started, create a new Single View Application. Make sure to select Swift as the programming language andUniversal in the Devices tab. The app…

How to Make an iOS Fractal App
Introduction In this tutorial we’ll be making an iOS app that renders the Mandelbrot Set and allows us to pan and zoom around it exposing beautiful and complex imagery. The end result will look like this: This tutorial we’ll be based on Fractals in Xcode 6 we’ll be using the shader code from there as a starting point. Expand below…

Happy Birthday, Swift!
It’s been an awesome year since Apple announced Swift! Thousands of developers have rushed to write code in swift – we can see over 41.000 public repositories on github and 36.000 questions on stackoverflow. The number of Swift repositories is growing day by day: Number of github repositories: Number of new github repositories that appear each week. Redmonk predicted that…