Homepage
Open in app
Sign in
Get started
NickWarm Garage
人生,現在就開始釀酒
Ruby
Rails
Random
Follow
在 bash shell 讓 git 自動補齊 branch name
在 bash shell 讓 git 自動補齊 branch name
過去,我會先用 git branch 查看有哪些 branch 再滑鼠反白複製貼上 branch name,來切換 branch 但這樣實在有點慢,比較簡單的做法是,在 terminal 裡下這段指令
NickWarm
May 17, 2019
Ruby 如何避免 method chain 噴掉:Safe Navigation Operator (&.)
Ruby 如何避免 method chain 噴掉:Safe Navigation Operator (&.)
在 Ruby 裡,我們常會寫method chain,i.e:
NickWarm
Aug 9, 2018
Ruby method 的參數設計
Ruby method 的參數設計
設計 method 時,你可以決定給他帶一個參數,還是數個參數,i.e:
NickWarm
Aug 2, 2018
用 Addressable::URI 給網址帶參數
用 Addressable::URI 給網址帶參數
在現在的網站,我們通常會給網址帶像是 utm 參數,來做資料分析,i,e:…
NickWarm
Jul 31, 2018
Ruby articles
Ruby articles
中文文章
NickWarm
Jul 31, 2018
Rails 的 HashWithIndifferentAccess
Rails 的 HashWithIndifferentAccess
我們先從 rails 的 parameter 開始談 我們常會用 params[:id] 來撈資料,但是為何 params 會有像是Ruby hash 的操作呢?
NickWarm
Jun 27, 2018
Ruby 的 string 較恰當的寫法
Ruby 的 string 較恰當的寫法
初學者會學到,Ruby 的 string可以用 + 串接的寫法,i.e:
NickWarm
Jun 27, 2018
About Nickwarm Journey
Latest Stories
Archive
About Medium
Terms
Privacy
Teams