Swift: Computed Property

Computed properties. A computed property is not directly stored in memory. Instead it uses the “get” and “set” keywords to compute a result. Get:This is run when the…

Swift: How to Use CocoaPods with Swift

Swift: Unwrapping Optional Types

Training: iOS App Development With Swift

Spring: Java Config vs Annotation, When to use what?

Java Configuration Pros: Is centralized in one (or a few) places. Write any java code you need. Strong type checking enforce by compiler (or IDE). Can be used…

Spring: Best Practice, Component Scan

Spring: Accessing a Bean

There are multiple ways to access a bean in Spring: //Classic way: cast is needed TransferService ts1 = (TransferService)context.getBean(“transferService”); //Since Spring 3.0: no more cast, type is method…

Swift: Function

Use func to declare a function. Call a function by following its name with list of arguments in parantheses. Use -> to separate names and type from the…

Happy New Year 2016

Happy new year 2016! Today is the first blank page of a 365 page book.