Profile

Cover photo
Yi-Lung Tsai (Bruce)
Attended National Taiwan University
Lives in Taipei, Taiwan
109 followers|83,945 views
AboutPostsPhotosYouTube

Stream

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
捷運時刻表終於出現
最近搭捷運發現車站出現時刻表,終於看得到每個站的時刻表。 台北捷運早該公布各站的時刻表,我以為軌道運輸最大的優勢在於準點而非速度。在這之前,通勤族都是憑經驗在搭車;公布時刻表後,大家更容易掌握要搭的班次,應該會減少捷運站內飛奔的情形。對需要轉乘的人來說也是一大福音,因為將更容易銜接轉乘的班次。 不過官網目前對於各站時刻表只有提供PDF( 路網圖、各站資訊及時刻表 ),查詢實在不太方便。
 ·  Translate
最近搭捷運發現車站出現時刻表,終於看得到每個站的時刻表。 台北捷運早該公布各站的時刻表,我以為軌道運輸最大的優勢在於準點而非速度。在這之前,通勤族都是憑經驗在搭車;公布時刻表後,大家更容易掌握要搭的班次,應該會減少捷運站內飛奔的情形。對需要轉乘的人來說也是一大福音,因為將更容易銜接轉乘的班次。 不過官網目前對於各站時刻表只有提供PDF(路網圖、各站資訊及時刻表),查詢實在不太方便。
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
[Clean Code] 閱讀筆記 - Ch. 6
第六章的標題是物件及資料結構(Objects and Data Structures)。這個章節可以歸納為兩個重點:物件(object)與資料(data)的差異;德摩特爾法則(The Law of Demeter)。 使用單純的資料結構時,只定義成員(member)而不提供方法(method),就像是C語言的struct [ link ],資料內的成員可以直接被使用,所有的邏輯運算都在資料結構的外部操作。以Python實作的話如下: 使用物件時,同時定義成員與方法,但是成員變數被封裝在物件內,所有的操作只能透...
 ·  Translate
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
[Clean Code] 閱讀筆記 - 2
第二章討論的主題是“有意義的命名”(Meaningful Names)。命名真的是很大的學問,看看 The 9 hardest things programmers have to do ,第一名就是“命名”,就連母語是英語的人,也會覺得寫程式的時候命名很困難。 命名可以分成兩個面相,一個是意義(meaning);另一個則是樣式(style)。意義是很主觀的,會因為變數或函式的功能不同而改變命名的用字。Clean Code這本書將命名的重點集中在如何使命名有意義,但是變數或函式的命名會隨著使用的時機及其存在的...
 ·  Translate
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
[Clean Code] 閱讀筆記 - 1
最近參加一個讀書會,討論Clean Code -- 無瑕的程式碼( 博客來連結 ),雖然念中文書比較輕鬆,但是有些翻譯的部分讓人很想看看原文,所以又買了原文版的來讀,除了分享讀書的筆記外,順便分享中英文的內容。 書本第2頁, 程式碼將一直存在 的小節中第四段, 某些傢伙認為程式碼總有一天會消失,就像期望數學不必太正式的數學家。 數學家那一句話實在無法理解,找出原文如下: The folks who think that code will one day disappear are like mathemat...
 ·  Translate
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
Poor Peter
  Poor Peter, work for Medium only one month. lol
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
Lightning Talk - Raspberry Pi
Lightning Talk - Raspberry Pi from Yi-Lung Tsai
1
Add a comment...
In his circles
141 people
Have him in circles
109 people
鄭凱元's profile photo
德億小編's profile photo
mur lee's profile photo
Ju-Fang Liu's profile photo
General MacArthur Eastern Samar's profile photo
Tammy Yang's profile photo
Liu Kunyu's profile photo
Chia-Wei Lee's profile photo
Jenny Wu's profile photo

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
機會成本
Opportunity Cost (OC)。 維基百科 是這麼寫的, In microeconomic theory, the opportunity cost of a choice is the value of the best alternative forgone, in a situation in which a choice needs to be made between several mutually exclusive alternatives given limited resour...
 ·  Translate
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
git merge or rebase?
昨天在 Hacking Thursday (H4) 參與 Git Workflow 的讀書會,突然想到一個問題: feature branch 完成後,在發送 pull request 前,如果 master branch (或 develop branch )又有新的 commit ,如圖 這時候應該要先 git rebase 或 git merge 讓 feature branch 追上 master branch 才好呢? 一直以來我都是用 git merge 把 feature branch 的程式碼...
 ·  Translate
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
@classmethod and @staticmethod in Python
In C++ or Java, the static identifier used in a Class method is to declare the function to be bound to that Class . This are also known as class methods and you could use them in class level without initiating an instance first. In Python, however, the idea...
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
Embedding Python with multi-thread in C++ application
Initial work flow 1. Application starts from C++ layer 2. C++ layer invokes function in Python layer in main thread 3. The Python layer function in main thread creates an event thread 4. Starts the event thread in Python layer and go back to C++ layer 5. Ma...
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
Home Jukebox with Raspberry Pi
Although iTunes, Spotify or YouTube lets me listen music everywhere and has bunches of music, I missed my Jazz collections ripped from CDs before. If you have a collection of digital music files, such as MP3, and a Raspberry Pi, you actually have a home juk...
Although iTunes, Spotify or YouTube lets me listen music everywhere and has bunches of music, I missed my Jazz collections ripped from CDs before. If you have a collection of digital music files, such as MP3, and a Raspberry ...
1
Add a comment...

Yi-Lung Tsai (Bruce)

Shared publicly  - 
 
R.app warning on Mac
If install R.app on a Mac without default locale setting to UTF-8, warning message comes up while starting up R.app. The warning message is as follows: To solve this issue, close R.app and type following command in terminal. $> defaults write org.R-project....
If install R.app on a Mac without default locale setting to UTF-8, warning message comes up while starting up R.app. The warning message is as follows: To solve this issue, close R.app and type following command in termi...
1
Add a comment...
People
In his circles
141 people
Have him in circles
109 people
鄭凱元's profile photo
德億小編's profile photo
mur lee's profile photo
Ju-Fang Liu's profile photo
General MacArthur Eastern Samar's profile photo
Tammy Yang's profile photo
Liu Kunyu's profile photo
Chia-Wei Lee's profile photo
Jenny Wu's profile photo
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Taipei, Taiwan
Previously
Kaohsiung, Taiwan
Education
  • National Taiwan University
    ME, 1999 - 2010
  • Kaohsiung Senior High School
    1996 - 1999
Basic Information
Gender
Male