What Is Software Design?

程式設計不是 “building software”,而是 “designing software”。

Is Design Dead?

軟體系統的設計是演進來的,不能一步到位,而是要藉由憑繁與使用者互動得到的回饋來修改系統設計。

Programming is Gardening, not Engineering

與其把程式設計比喻成蓋房子,實際上更像是園藝。

Orthogonality and the DRY Principle

所有程式設計活動其實都是維護,因為絕大部分的時間都在改code,寫一點改一點。即使是新專案,也很快需要回頭作修改。

2015年1月27日 星期二

Android Parse call cloud code api

第一步 安裝parse 到android

第二步
import com.parse.FunctionCallback;
import com.parse.Parse;
import com.parse.ParseCloud;
import com.parse.ParseFile;
import com.parse.ParseObject;


第三步 在主程式 加入

HashMap<String, Object> params = new HashMap<String, Object>();

params.put("email", "john6812711@gmail.com");

ParseCloud.callFunctionInBackground("seandemail", params , new FunctionCallback<String>() {
      
     @Override
      public void done(String result, com.parse.ParseException arg1) {
       // TODO Auto-generated method stub
       Log.d("INT", "check buy "+result);
       }

});


1.先創一個object

2.把值裝進去

3.接api回來得值 result

4. seandemail 是api name

2015年1月11日 星期日

Laravel 串 js and html5 html file

 首先 將所有的資源檔案放入 Laravel框架下的對應位置
  • /public/css/app.css
  • /public/js/app.js
  • /public/index.html
範例 我放了 public/john/index.html

接著回到app資料夾下 找到 routes.php 這檔案

加入以下的規則

Route::get('john',function())
{
    return File::get(public_path().'john/index.html');
});



這樣導入後
只要在網址列後面接 cpc-cpcteam.rhcloud.com/john 就會出現html file的網頁了!!! 也可以正常的使用js