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 This famous little robot as the breakthrough point,Karel solve the problem by teaching the process to become familiar with the programming development of thinking,Lets you quickly[……]

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,It is named after a Czech writer Karel Capek, His sci-fi drama, in its 1921 R.U.R.(Ross[……]

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!?

 

Write the software I spent a total of 11 hours,Intermediate pit live countless times。And now I do not know why so real[……]

Click link to continue reading...

Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

When you learn Java,Some details of the small problems tend to be very confusing,When in receive parameters, for example。

If your program needs to receive arguments in order to run,And you did not give the default parameters,That can cause this error:

For example, your code is:

When you need to run the program at this point passed in the parameter。It's not difficult,The hard part is in ecl[……]

Click link to continue reading...

SARFT ban vulgar reality show:Boycott and show off their wealth over the star

Yesterday,Light Ding Bureau officially issued the "Notice on Strengthening Management of the reality show"。The circular points out,Hot nowadays reality show mostly interesting and "meaningless"。It is not a good guide social values ​​of the public ......

Alas,Light Ding finally do a piece of Personnel,Speaking of reality show,I thought of that sucker 20 beauty review see monkey ..................[……]

Click link to continue reading...

Rich text annotations in the Playground

In Xcode 7 among,Playground allows us to use Markdown syntax similar to rich text format code has comments,Now,We will briefly explain how the text rich text notes。

How to edit rich text annotations

Open your Xcode 7,In the Playground,Editor select the menu bar > Show Raw Markup to allow rich text annotations displayed as plain text mode,So that they can become the editor。This step again[……]

Click link to continue reading...

IT (Information Technology) and technical data (Data Technology)

As early as last year,DT concept was brought up,And I do not know has been。until today,Only occasionally learned。Quickly following google,Not only the amount of help sigh:I already can not keep up the trend。

We know that IT is short for Information Technology;So the name suggests DT,Data Technology is the abbreviation of the。

The thought of writing on a domestic computer science textbooks in the future is no longer "information Technology"But"Data Technology”,I felt a creepy。

IT synonymous today[……]

Click link to continue reading...

Interpret:How do I declare the Swift closure?

Today, a friend recommended an interesting page,A domain name is like:

http://fuckingclosuresyntax.com

In the Swift,All functions are closures,Standard functions are just the most complete closures name with parameters。

All right,The following is the text

 

 

asvariable:


 

asOptional variable[……]

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 conversion between both of them。

Make it clear type NS,We have to start from NeXTSTEP operating system to start the year:

NeXT order to write this[……]

Click link to continue reading...

How do I learn English

My English level is not high,Performance is not good。My interest in learning English is not great,Syntax may now be over, but junior high school students。

But I still got the third prize of National College English Contest、Able to read some of the books is not fluent in English、Sweating can translate English articles、Manual can fluent in English reading various software、Bored able to stroll around the forums and websites in English、You can still read an English or American TV movie without subtitles situation。

I know that this level is not worth showing off what,I still have not had the English four,I write English[……]

Click link to continue reading...

I did not use a third party commenting system

WordPressMost probably the largest of the blog systems,Today's regressed to the extent that it can even CMS cameo,I do not know how many business websites do with castrated WP facade ......

WP commenting system that does have some Han,so,There exists the brightest third-party social comment system。I have also used them once,But eventually gave up,To this end I wrote an article to Tucao:《WordPress plugin common social comment Comment

The friend said to me, "You are so few people blog comment,Comments may be too WP comes so bad,you[……]

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:Procedural、Object-Oriented、Functional、Generic programming。

Some programming language is designed for a particular design paradigm,E.g,Cyes[……]

Click link to continue reading...

Swift 2.0 Introduction

WWDC conference in June this year on, Apple released Swift 2.0 Programming language。This new version has improved performance,The new API error control and detection support class availability。And improved Apple SDK platform API to make it more native to Swift。

Source

For new features for,Also worth noting is that Apple will open later this year Swift 。Over time,Apple will release more news about open source,At present the following information:

Today Scripts modify the code in the EI Capitan

We all know that with the use iStats Today Scripts can easily view the system in OS X's Notification Center in the state of,But after upgrade OSX 10.11,Today Scripts may be less so that the,Author probably have eight months without updates,I waited natural white wood have a way to modify the source code ...... so

Now,SomeoneFixed Today Scripts ,It is now in 10.11 A perfect run it!

In short,I found a[……]

Click link to continue reading...

My millet bracelet:Belated Experience Report

A blink of an eye six months later,Squandered for so long,I finally decided to hand the bracelet to write something millet。😒

Buy millet bracelet,Friends said he was blue millet bracelet with my phone with a very blue。That was my first real contact with millet bracelet。Later, after playing a few times,考虑到它¥79的价格,I own into a,I think after thinking,Or buy a black bracelet。

Speaking wearable device,At first I was rejected,You can not make me wear I wear,I gotta look into,Gotta give it a try - after all,,Google glasses too expensive - this[……]

Click link to continue reading...

htaccess redirect to https redirection also cause subdomain solutions

Recently,So I wrote an article:WordPress Open full stop HTTPS ,This side describes in detail how I turned the whole grid down to the station https of,Now I need to open an experimental subdomain,The result was writing htaccess ,To redirect to443Port the code causes the entire domain name is redirected to the primary domain,It makes very egg pain,Or sub-domain must also have a certificate,Or can only turn off the primary domain redirect。

Final,I found the wording for a domain name,Allow access rules to identify the domain,If it is not the main[……]

Click link to continue reading...

Why UNIX systems, such as the hidden directory to point at the beginning?

we all know,exist Windows Hidden folders are invisible,They some system files,While others arevirus。If you have to display words,After warning system,You can be in the form of semi-transparent folder to see this folder,Systems in order to identify a folder is hidden,It has a "-s"Properties,Protected by the system。

So a lot of people are new to Linux、OSX,I will not get used,Because these operating systems are hidden filesBeginning with pointTo mark the,The names of these directories can not be used even under Windows[……]

Click link to continue reading...