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

Swift: Range Operators

Swift includes two range operators, closed range and half-closed range, which are shortcuts for expressing a range of values. Range operators are most commonly used with the for loop. In Objective-C, we have 2 different for loops, the traditional loop and iteration-based loop. Traditional For Loop The traditional for loop found in C requires 3 … Continue reading Swift: Range Operators

iOS: Data Protection

iOS is based on the same core technologies as OS X, and benefits from years of hardening and security development. According to Apple’s iOS Security Guide, iOS security can be viewed in four layers: System architecture: The secure platform and hardware foundations of iPhone, iPad, and iPod touch. Encryption and Data Protection: The architecture and … Continue reading iOS: Data Protection

iOS: UIPasteboard, UIMenuController & UIMenuItem

There are times that you need to copy and paste items on your device, few words won’t be a problem but several paragraphs will. UIPasteboard is a built-in class that allows you to copy items to the pasteboard in iOS and paste it somewhere else. A user then selects an item (e.g., words, images, etc..) … Continue reading iOS: UIPasteboard, UIMenuController & UIMenuItem

iOS: NSLayoutConstraint

With the release of Xcode 5 and iOS 7 the need to learn, understand, and use auto layout increased. Auto layout were introduced in iOS 6.0; with auto layout, it is easier to design the interface for multiple screen sizes and also for multiple languages (e.g., Arabic, Japanese, Chinese, etc..). It’s not hard to design … Continue reading iOS: NSLayoutConstraint

iOS: NSDate & NSDateFormatter

One of the commonly used classes in building iOS apps are the NSDate (which allows us to deal with dates) and, of course, NSDateFormatter (which allows us to format the date and time to be printed). It is very likely that somewhere in your app, you may need to work with a lot of dates … Continue reading iOS: NSDate & NSDateFormatter

Let’s try Ruby in 30 minutes

A Brief History Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. Ruby syntax is inspired by Perl with Smalltalk-like features and was also influenced by Eiffel and Lisp. It supports multiple programming paradigms, including functional, object oriented, and imperative. It … Continue reading Let’s try Ruby in 30 minutes

%d bloggers like this: