Author Archive for Andrei Puni

Swift and Objective-C: Best Friends Forever?

This week, Jonathan Blocksom gave a talk at the Swift Language User Group (#SLUG) meetup. A seasoned industry veteran, Jonathan has the real world experience of adding Swift to a large consumer-facing app with millions of users. Swift was not designed in a vacuum; working with the rich history of Objective-C frameworks was a critical part of the design. His talk…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3.50 out of 5)
Loading...

Drawing with Text

I started programming when I was 10 years old by reading and modifying simple programs that my older friends from high school wrote as homework. They were written in Pascal, a simple programming language designed in the end of the `60s, intended to teach students structured programming. After a couple of days of tinkering, I talked to my friend Sergiu…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Swift resources for Objective-C developers

Swift is a relatively simple language, switching from Objective-C to Swift will not take long. After you take a look at the syntax you will be able to write code in a flash. You might get confused in the beginning, with optionals and type inference but soon you will start feeling the power they give you. We are really excited…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Object Oriented Programming in Swift

Most of Apple’s frameworks have a object-oriented architecture. Before you start digging into iOS/MacOS development you should first understand object oriented programming and design patterns. In this article we will go through the basic notions and design patterns in order to get you started with app development. Overview Object-oriented programming (OOP) is a programming paradigm that represents the concept of…

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

Random Pi

tl;dr I’m going to show you a little trick that uses random numbers to approximate the value of Pi. Monte Carlo methods (or Monte Carlo experiments) are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results; typically one runs simulations many times over in order to obtain the distribution of an unknown probabilistic…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...

Swift + Objc = Magic

Swift is fun and cool, but Objc is a tank. Here is my favorite hack in objc adapted to swift. After about two years of iOS development I really got tired of integrating web services into my application. If a login request succedes it would return something similar to this response: { “status” : “success”, “user” : { “first_name” :…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...

Swift Learning Resources

Articles and Tutorials Wayne Bishop has written a awesome guide to the most common data structures and algorithms used – full code. Big O notation Sorting Linked Lists Generics Binary Search Trees Stacks & Queues Graph Algorithms Shortest Paths and traversals Heaps Make an Awesome Video Background View Using UIWebView (Objective-C & Swift) Jameson Quave Taking control of the iPhone…

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Playing with Strings

Combining strings let aString = “Hello” // Let’s play with strings today // we can combine strings using the + operator let newString = aString + ” swift lovers” // “Hello swift lovers” // string interpolaton can also be used to combine strings let a = “BAT” let b = “MAN” println(“\(a) + \(b) = \(a + b)”) // BAT…

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Swift Thinking – Operator Overloading & JSON Parsing

This past Thursday, Keith Smiley gave the second talk of the Swift Language User Group (#SLUG) in Thoughtbot’s San Francisco office. He began his talk with an introduction and a very brief recap of the previous SLUG talk before focusing on a couple of key features in Swift. This talk is currently discussed on Hacker News.   You can find an overview of…

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Spread the love!

We ❤ Swift is a blog dedicated to the Swift programming language since it was announced by Apple at WWDC 2014. Help spread the love! Check out our t-shirt campaign on Teespring.     If you are more interested in programming than t-shirts you can read one of our articles: One month of Swift How to make a custom keyboard in…

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
Subscribe
We send about one email per week with our latest tutorials and updates
Never display this again :)