站在巨人的肩膀上:QA恋 iOS 客户端是怎样炼成的

QA恋的 iOS 客户端是我的 iOS 开发处女作,今天给大家分享一下这款 App 是如何写出来的,这里并不打算讲具体的实现代码细节,只是介绍一下开发过程中用到的开源代码以及如何处理遇到的问题。

有人说,目前国产手机还只是停留在堆砌硬件的阶段,缺乏自己的核心技术;那么请允许我把我自己目前的 iOS 开发水平定义为:“堆砌他人的优秀代码和开源项目”,当然,也可以理解为是“君子善假于物也”或者“站在巨人的肩膀上”。

Continue reading 站在巨人的肩膀上:QA恋 iOS 客户端是怎样炼成的

Write a Word Processor in C

Project: Write a Word Processor in C

Overview:

You have to create a Word processor using C programming. The program can accept a sentence of not more than 20 words.
The program is also able to perform the following functions:
(i) Reverse the whole sentence and print it out.
(ii) To identify how many instances of a specified character.
(iii) To return the position a specified character at the first occurrence.
(iv) To return the position a specified character at the last occurrence.
(v) To return the number of words in the sentence.
(vi) Reverse all the words in the sentence.

Continue reading Write a Word Processor in C

Linux 中为何用字符 ~ 表示 Home 目录

我们知道,在类 Unix 风格的操作系统中(包括 BSD,GNU/Linux 和 Mac OS X 等),通常用波浪号 “~” 来表示当前用户的主目录(Home 目录),例如,如果当前用户的 Home 目录为 /home/username,则在命令行中输入:cd 或者 cd ~ 或者 cd /home/username 或者 cd $HOME 都是等效的。这种习惯源自于 1970 年代流行的 Lear-Siegler ADM-3A 终端机,这种机器上波浪号 “~” 和 Home 键(Home 键用于把光标移到到最左端)正好在同一个键上,如下图所示:

Continue reading Linux 中为何用字符 ~ 表示 Home 目录

Hello, world!

Hello, I am Zubin Kang, welcome to my personal blog.

自从 1972 年 B 语言的编程指南开始,“Hello, world!” 便成了学习一门语言的敲门砖,以至于最后成为了一种符号和哲学。当然,所谓“树大招风”,“Hello, world!” 出名以后,也有很多人跳出来表示这种示例程序毫无用处,即使会写 “Hello, world!” 也不代表会用这种语言。

作为第一篇博文,这里并不打算去讨论孰是孰非,当然也不会长篇大论地去介绍如何编写某一门语言的 “Hello, world!” 程序,毕竟,对于一个程序员(其实我更希望你们叫我“工程师”)来说,一下子在屏幕上打印出一行 “Hello, world!”,也不是什么有意思的事情。

总之不要在意这些细节,欢迎常来我博客看看呀亲!