BDD style Unit Testing@RubyKaigi 2011
RubyKaigi 是日本的 Ruby 年度大會。2009 年第一次去日本參加時,非常興奮能在 Ruby 發源地與全場四五百位 Rubyist 一起聽 Ruby 發明人 Matz 演講,現場歡聲雷動。當時就發願有機會也要上台分享。今年第二次投稿終於獲選了啦,我的題目是 BDD style Unit Testing,挑戰生平第一次英文演講。 <- Speaker 專用 Badge,爽!!...
View Article兩個 Ruby 建構 Array 和 Hash 的小技巧
Array 我想你可能寫過以下這樣的程式。其中 params[:a] 可以只有一個元素,也可以是陣列。但是為了接下來能夠處理,我們需要轉成陣列 array 變數: array = (params[:a].is_a? Array)? params[:a] : [params[:a]] 這裡我們手動判斷了 params[:a] 是不是陣列,實在是有點 ugly。其實 Ruby 內建的 API...
View ArticleRubyConf Taiwan 2011 開放報名
RubyConf Taiwan 2011 開放報名啦。兩天的單軌議程,講者群是去年的兩倍,包括 peepcode.com 站長、Ruby 1.9 release manager @yugui、Compass 作者、Thinking in Java 譯者 Qing 大大以及國內頂尖 Rubyists 和 Rails developers,精采可期,報名從速!!...
View ArticleBDD style unit testing video and slides@RubyKaigi 2011
BDD style Unit Testing View more presentations from Wen-Tien Chang * [Video recording] * Ruby会議2011 2日目レポート (日文報導) This is my slides and video recording at RubyKaigi 2011 (with speaker’s note every...
View ArticleRubyKoans: 透過單元測試來學習 Ruby 語法
http://rubykoans.com/ 是 EdgeCase 所推出的 Ruby 學習工具。它的特別之處在於它是用單元測試填空題的方式來認識Ruby語法。要執行很簡單,下載之後,輸入 rake 就會開始跑測試了(如何安裝Ruby請參考這裡),例如以下的測試: def test_arrays_and_ranges assert_equal __, (1..5).class...
View ArticleRubyConf Taiwan 2011 籌辦心得
RubyConf Taiwan 2011 Opening & Closing View more presentations from Wen-Tien Chang T客邦的報導:RubyConf Taiwan 2011:5國講者加持,技術交流會登場 OSSF的報導:台灣最具規模的 Ruby 程式語言大會-RubyConf Taiwan...
View ArticleJRuby 安裝與 OpenJDK
最近把 JRuby 納入開發的武器之一,幾個你可能會想用 JRuby 的考量: 真 MultiThreading JVM 是一個調教超過十年的 VM 可用 jar 佈署到不同平台(Windows, linux, mac…etc)。Ruby 程式如果要佈署到 Windows,JRuby 我認為是最好的選擇。 可用 war 佈署到 Java Application Server Android GAE...
View Article那些 Functional Programming 教我的事 投影片
這是今天在 OSDC.TW 2012 演講的投影片: 那些 Functional Programming 教我的事 View more presentations from Wen-Tien Chang 這個題目是近年來第一次脫離 Ruby 舒適圈的演講(抖),準備的時候就發現 Functional Programming 不但講不完(30分鐘的演講教不會寫FP啦),有些概念又很難,真要講到...
View ArticleRubyConf Taiwan 2012 CFP&CFS
To English readers: Hi, I’m the organizer of RubyConf Taiwan. Please see Call For Presentations and Call For Sponsors for more information. Our invited speaker this year includes Yukihiro Matsumoto...
View Article機會難得之 Matz 在台見面會
因為昨天才敲定這個行程,所以宣傳慢了。目前還有名額,不限有報名 conference 朋友,機會難得。報名請前往 Registrano。 — 來台參加 RubyConf Taiwan 2012 的 Matz (Ruby 程式語言發明人) 和 Koichi Sasada (YARV作者) 將和大家進行粉絲見面會。本活動自由報名,不限參與 RubyConf Taiwan 的聽眾,免費。 時間:...
View ArticleDefensive Programming 防禦性程式設計
TL;DR 避免 Defensive Programming,愛用 Fail Fast 策略。 什麼是防禦性程式設計,在 Erlang’s Programming Rules and Conventions: Do not program “defensively” 裡這樣說明:...
View ArticleFaria 徵才啟事
敝社正在徵 Ruby on Rails Developer,公司環境跟獲利情形非常不錯,待遇優渥。職位說明請參考 Job Description。 Faria Systems 是一家以 IB(International Baccalaureate) 國際學校為客戶的 Software as a Service...
View ArticleA brief introduction to Vagrant – 原來 VirtualBox 可以這樣玩 投影片
A brief introduction to Vagrant – 原來 VirtualBox 可以這樣玩 from Wen-Tien Chang 這是今年在 OSDC.TW 演講的投影片。這次的內容相對簡單,就分享一個好用的工具給大家。會挑這個題目並不是因為自己對 Vagrant/Chef 非常熟很有研究(我們公司的 DevOps 當然比我厲害)。而是從一個 Rubyist 的角度想說 Ruby...
View Article如何使用 pry 作為 Ruby debugger 進行除錯
很奇怪,ruby-debug 或是 ruby-debug19 常常有版本問題,甚至還有 fork 版本 debugger。都不知道哪個沒問題。 最近發現其實 pry gem 就可以作為 debugger 之用,本來還以為只是漂亮的 irb 取代品,沒想到功能這麼強大。作為 debugger 使用的方法很簡單,只要在程式裡加上: binding.pry 這樣就會設下中斷點。例如在 rails...
View ArticleRubyConf Taiwan 2012 籌辦祕辛與心得
RubyConf Taiwan 2012 Opening & Closing from Wen-Tien Chang 這篇拖稿超久,堆在草稿大半年了,真是不好意思。跟往年 2010, 2011 一樣,還是要留個籌辦心得紀錄。聽眾版心得文可以看會後記錄。 該怎麼描述這次的 RubyConf Taiwan 2012 呢,應該是超乎預期的成功吧。大體來說,除了 wifi...
View ArticleRubyConf Taiwan 2011 開放報名
RubyConf Taiwan 2011 開放報名啦。兩天的單軌議程,講者群是去年的兩倍,包括 peepcode.com 站長、Ruby 1.9 release manager @yugui、Compass 作者、Thinking in Java 譯者 Qing 大大以及國內頂尖 Rubyists 和 Rails developers,精采可期,報名從速!!...
View ArticleFaria 徵才啟事
敝社正在徵工程師,公司環境跟獲利情形很不錯、做事精實、待遇優渥。職缺請參考: Rails Developer、Front-End Developer、Front-End Designer、QA Tester。 Faria Systems 是一家以 IB(International Baccalaureate) 國際學校為客戶的 Software as a Service...
View ArticleRubyConf Taiwan 2014 售票開始
今年的 RubyConf Taiwan 日期是 4/25-26,地點在陽明大學,目前已經開放報名啦!! 本屆 RubyConf Taiwan 的邀請講者有:Rails Girls 社群創辦人 Linda Liukas 和 Terence Lee,她們將一同上台分享Rails Girls社群創辦經驗;Ruby 之父松本行弘先生與 Ruby 核心開發者笹田耕一先生是第二次在 RubyConf...
View ArticleBDD style unit testing video and slides@RubyKaigi 2011
BDD style Unit Testing View more presentations from Wen-Tien Chang * [Video recording] * Ruby会議2011 2日目レポート (日文報導) This is my slides and video recording at RubyKaigi 2011 (with speaker’s note every...
View ArticleALPHA Camp 10週網路事業實戰營 10/6 開課
ALPHA Camp 是一間很特別的創業學校,跟創辦人 Bernard 聊過之後,我很喜歡他們的辦學理念,既不是電腦補習班,也不是育成中心,甚至還會面試篩選學員。來這裡不一定是因為要創業,而是學習如何將點子實作出來的完整能力,非常適合渴望換跑道進入網路產業的朋友。 我之前也有開過不少次 Ruby、Rails 或 Git 的教學,但都是非常短期一天或兩天的課程。這次有機會能擔任 Web...
View Article