Swift

Apple's new place of OC for a high-level programming language!

How Swift 2.0 Declare an abstract class?

We all know that in Java declare an abstract class or method you want to use the abstract keyword,But unfortunately familiar things always gone,In Swift has no label。

Then,How should we declare an abstract class it?

Private constructor (initializer) Act

It touches people very familiar, right? Bar private constructor of that class certainly can not be initialized[……]

Click link to continue reading...

Programming Methodology Course Outline

Haha! And we met again,The ten milk to give us a newProgramming Course

This is the syllabus before programming methodology,I was very glad to do so a decision to throw in outline here:) Although the end of the course,But a separate reading this outline is a good choice,I will go back based on this update it,To accommodate the new live version of the programming methodology -

Foreword

The courses weAlreadyWith Karel[……]

Click link to continue reading...

Karel introduce this robot

Early in the 1970s,Stanford University graduate Rich Pattis think if we make the novice programmer in a relatively complex programming language,,Comparatively simple learning environment,Will contribute to the programming language teaching。This simple environment characterized by a variety of programming languages ​​from abstraction。So he designed such a program environment,Allow students to teach a robot to solve simple problems。This robot is Karel[……]

Click link to continue reading...

For my own use Swift 2 Wrote a rudimentary Karel Robot

Update it!

This update adds a branch,Goal is to create the "Next" function,In addition to repair the ugly side of the white block interface!

Currently no more modifications,run.swift file more refreshing,No more double thread it!

With an array of state of static storage Karel,Thanks for the banana king!

Adjust the speed of the great dream is within reach!?[……]

Click link to continue reading...

String NSString and what difference?

Swift programming language learning time may not experience this thing,But with the depth of learning,As you read other people's code when,You will probably encounter this type NS,This time you will certainly be curious,similar String and NSString In the end where the difference? They seem to be exactly the same way! and,As by keyword,We can also easily make data transfer between both of them[……]

Click link to continue reading...

Reprint:Multi-paradigm programming language-an example of Swift

The original from InfoQ,Author Guo Lin

Based on the Swift case study of language,Introduction what is a multi-paradigm programming language;Also introduces several of today's more popular programming paradigm,Worth a read。Collection,Original linkIn this

Swift programming paradigm

Programming paradigm is the idea behind the program language。Representing programming language designers believe that how the program should be built and implemented。Common programming paradigm:[……]

Click link to continue reading...