Blog Archives

Swift 1.2

Abstract For a couple of months after completion of the Swift course textbook released by Apple Inc. an app was in development with the focus on contacts. Testing has begun however Apple released Swift 1.2 with xCode 6.3 beta, and

Posted in Swift

The C Book: Chapter 1 Exercises

Introduction This section portrays the answers to the exercises found in the C Book, a textbook found online to refresh my abilities with the C programming language. This page links to the answers of exercises found in chapter one. Description

Posted in The C Book

WordPress 2012 Theme Blank Template

Abstract Create a child theme for the WordPress 2012 theme removing any padding, margins, borders leaving a blank canvas to start a new website using the WordPress 2012 theme. Introduction Many solutions removing CSS styles such as padding, margins and

Posted in Websites

Github

Introduction In previous posts on the website code has been shared directly using the website either as the source files or in the case of a complete project typically a zip file. Today marks the beginning of transferring these to

Posted in Websites

Section 24: Advanced Operators

Description This section describes advanced operators available in Swift, including bitwise operators. Overflow handling is outlined with the use of additional operators as well as the precedence of operators when they are combined. Existing operator implementations can be overridden in

Posted in Chapter 2: Language Guide

Section 23: Access Control

Description Access control in Swift defines the scope of individual modules. Modules are divided into three categories, public, internal or private. This is used for example to hide the implementation of types but provide a public application programming interface (

Posted in Chapter 2: Language Guide

Section 22: Generics

Description Generics is a powerful functionality available in Swift to write functions and types for classes structures and enumerations. For example, if there is a function that requires the same body but works on different types, a generic function can

Posted in Chapter 2: Language Guide

Section 21: Protocols

Description This section describes protocols, a powerful mechanism in objective-C and now Swift allowing a foundation of properties, method and requirements for structures and classes to be defined. Protocols have no functionality themselves, and only describe attributes that either a

Posted in Chapter 2: Language Guide

Section 20: Extensions

Description Extensions add functionality to class, enumeration and structure types. These can be used to extend types where the original source code is unknown. Extensions can add properties, initialisers, methods, subscripts, nested types and make a type conform to a

Posted in Chapter 2: Language Guide

Section 19: Nested Types

Description A nested type is one that is embedded within another type, for example an enumeration within a structure. These usually support the functionality of the outer type. This is a relatively short section with a single example. Nested types

Posted in Chapter 2: Language Guide