Swift’s guard
statement brings the power of the nightclub doorman to the Swift language promising cleaner, more explicit and a more elegant code. In this article I want to find out whether it lives up to these promises.
An Introduction to Functions
When we write C or Objective-C programs we can divide those programs into smaller blocks of code, each of which performs a certain task. In this post, we take a look at the concept of functions.
Primitive Data Types in Objective-C
When we look at the multitude of different apps available for the various iOS platforms it is easy to forget that at their core, the various Apple devices all work in binary. We as humans don’t think this way though and in order for us to program computers systems efficiently, we need a intermediate language […]
Objective-C Variables
When we write our iOS apps we often need a temporary place in which to store the data used within the app. Whether it be a finance app needing to store the current balance in a bank account, a game that needs to store the position of a player’s character on the screen or a music app storing a user’s playlist, all these applications use the same mechanism: variables.
Understanding Fixed Point and Floating Point Number Representations
In today’s post, we take a deep dive into the two main approaches to storing fractional numbers in computers – fixed-point and floating point number representations.
You Put a Hex on Me – A Quick Guide to Hexadecimal Numbers
Hexadecimal is the next most commonly used number base in computer science. In today’s post we take a look at this multi-purpose number base, examining the similarities between hexadecimal and number bases such as binary and decimal before learning some tricks in how to convert numbers to and from hexadecimal notation.