Solving a simple code puzzle in Swift
Georgina loves making up weird sequences. Here is her latest: “1 2 4 8 10 20 22 44 46 92 94 188 190 380…” Write a program that finds the sum of the first 150 numbers in Georgina’s series. There… Continue Reading
Georgina loves making up weird sequences. Here is her latest: “1 2 4 8 10 20 22 44 46 92 94 188 190 380…” Write a program that finds the sum of the first 150 numbers in Georgina’s series. There… Continue Reading
Knowing the type and meta-type in Swift is not as common as in Smalltalk or Objective-C. Where in objective-c, you can instantiate an object out of a class name or modify classes at runtime this is not possible in Swift.… Continue Reading
As a teenager I was used to implement simple mathematical algorithms on my Sharp pocket computer in BASIC. My first real Application was an AI board game written in the Pascal language on a Mac Classic II. It was a… Continue Reading
When Apple announced Swift 2 at the WWDC in 2015, they also declared that Swift was the world’s fist protocol oriented programming language. However protocols have been present in Java and Objective-C since many years. So why is Swift different? And what does protocol-oriented… Continue Reading
Today I tried to explain my 6 years old daughter what programming means and what an algorithm does. I encountered scratchjr and was impressed how fast she “wrote” her first program on the ipad. Even if you’re not part of the Kindergarten… Continue Reading