All posts by Angelo

Angelo Villegas is a software developer building native iOS apps using Objective-C and Swift. I enjoy thinking that the apps I built make the users' life easier.

4 reasons why you should write that tutorial

1. Your way is different Your technique may not be the same with another programmer’s technique. Programs that you wrote may be written in some way that another program haven’t thought possible. My experience with it when checking out a tutorial by another programmer, there’s always a part of code that I think “I could … Continue reading 4 reasons why you should write that tutorial

Swift: Functional Paradigm

When Swift was introduced, it introduced not just a new programming language, but a number of new techniques. One of the most powerful Swift language feature is the ability to write code in more functional style. I took some time to learn functional programming at the end of 2015 so I can write better Swift … Continue reading Swift: Functional Paradigm

Functional Programming

Late part of the year 2015, TU Delft released a MOOC about Functional Programming on using Haskell. If you already know Swift, then you know that it is a multi-paradigm language that includes functional programming as one of its paradigms; and because of this, it piqued my interest to enroll in this course. What … Continue reading Functional Programming

Objective-C: Generics

Re-watching the WWDC 2015, you probably noticed that it was all about Swift. That’s a given, with the release of Swift 2.0 back then, Apple announced a lot of additions to the Swift programming language such as protocol extensions, new error handling API and some additional syntax to name a few. That’s not the end … Continue reading Objective-C: Generics

Swift: Phantom Types

Playing around Swift for some time and you might have encountered a bug or errors on your code by summing up or multiplying variables with different types. Well, not really just Swift but a lot of programming languages have the possibility to calculate variables of different types resulting to possible bugs and/or errors. Phantom Types … Continue reading Swift: Phantom Types

Swift is Open Source

First of all, let’s thank the people who contributed their meaningful time to the make the Swift programming language open source, so Thank you Apple and Thank you to the people who made this possible. 👏🏻 Swift is Open Source! 🎊🎉 “Today is the result of an amazing amount of work by dedicated and phenomenal … Continue reading Swift is Open Source

Swift 2.0

With the WWDC 2015 came many improvements with Swift — not just making writing code much more beautiful, but also better error handling, and new optimisations that will make your app run even faster. Back to Basics So Swift 2.0 is here with a lot of new features. If you already completed the Swift programming … Continue reading Swift 2.0

Swift: JSON Parsing

JavaScript Object Notation. JSON, pronounced (/ˈdʒeɪsən/ jay-sən), is an easy standard to parse in client-server application data. It is easy to implement and simple to understand. With the release of iOS 5 back in 2011, the NSJSONSerialization class was added in the SDK, which gives an easy to use delegate method to parse JSON data. … Continue reading Swift: JSON Parsing

Swift: Protocols

In Objective-C, you are allowed to define protocols which declare the methods expected to be used for a particular situation. In Swift, protocols are basically a named contract that your types should conform to. If your type says it conforms to Equatable, then it better fulfil all of the required methods to make it equatable. … Continue reading Swift: Protocols

Swift: Operator Declaration

The Swift standard library defines a number of operators, many of which are available to most programming languages. The most familiar operators that will come to mind are the MDAS operators’ *, /, +, – respectively. Operators such as these are very simple to use and remember that it was thought ever since we were … Continue reading Swift: Operator Declaration