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...

Swift as how to receive the inlet parameters like C language?

 

We all know that in the Swift language which is no longer the main function,You may understand C language or Java language students arrived at this point of deep discomfort。In short,Instead main.swift。

Swift language in which,The compiler does not go looking for main function as a program entry,But this "main.swift" file,According to the official explanation view,This one[……]

Click link to continue reading...

OSX 10.11 EI Capitan running Java SE 8

A few days ago,Latest session of WWDC Conference for us EL Capitan 10.11 latest OSX system,The first time I installed a developer preview。Without him,Netizens have said very little bug is the forums。Looking back to the year,When upgrading from 10.9 and 10.10,Even in beta stage,Is still flying bug!

But this does very little bug,Some do not even find innocuous,Really astonishing!

but,I am afraid that these bug inside[……]

Click link to continue reading...

GoAgentX PAC failure solutions

If you have previously installed a GoagentX ,Then uninstall the,Then reinstall,Maybe you will find that even opened the PAC model,Also ran "global" status。

This,On ip138 can validate。

I try to use my own generated a variety of PAC,Results simply can't even get on the net😅

Then just see a message,They are resolved:

"On the GoagentX configuration page restoring factory configuration"

Turns out,Really good![……]

Click link to continue reading...