跳到主要內容

發表文章

不同的思維下的程式語言與環境

昨天在觀看 Scott Wlaschin 的 Functional programming design patterns 影片,簡單的介紹 Functional Programming 的觀念,片中提到 Domain Driven Design, DDD 的是設計,可以參考 F# for fun and profit 網站。 F# 又是 一種程式語言 ,對於英文語系的國家,語法看起來似乎比 C#, Java, Python, Javascript 簡潔,它的適用性,不只是簡單針對「語法簡潔」就能決定的個語言值得花費時間學習,需要再評估它支援的 Library、 效能等因素,況且對於非英文語系的國家,真的適合初學者來學習嗎?就如同 Java, Python 語言最大的缺點在於「效能」,Application 是否真的需要對於「效能」如此斤斤計較?也是在不同思維下,你需要選擇何種語言來學習的考量因素。  今天在 Jetsam 這個網站 讓我連結到 Frog Project 及 Rocket 的這語言 ,在 RocketCon 中的一位 Speaker: Michael Fogus 演講題目「 Extracting a Goose from a Klein Bottle 」,確實讓人不得不去思考這「 不同的思維下的 程式語言與環境」這個問題。 總之,在 21世紀的資訊爆炸時代中,資訊科技千變萬化,程式語言多如牛毛之際,惟有不變的是: Functional Programming, OOP, STL 等這些抽象的哲學思維。 補充: 醫學系學生 Sapan Bhuta 在他的 The Future of Programming 文章中寫道: Ultimately, Object Oriented Programming languages are becoming more powerful, functional, reactive, and Lisp-like overtime in order to help the modern programmer reduce exponential complexity and verbosity in today’s asynchronous performant era....

Installing and Setting R environment variable in Windows

R 是一個 open source 的統計軟體 ,可以安裝在各種不同平台中,在 Windows 系統安裝過程相當簡單,只要下載 for Windows 版本,然後 " 下一步  >> 下一步" 就可以完成,寫這篇文章主要是要說明如何設定環境變數,讓自己可以管理自己所寫的程式碼、文件及引用常用的 library,未來系統更新時,這些重要的資料才不會因為更新版本而遺失,或者需要重新再次安裝 library。 R for Windows 的安裝程式內含 Windows x86 or x64 版本,預設是兩種版本全部安裝,安裝過程中可以使用 custom 來選擇安裝適合自己 Windows 的版本。另外, Message Translate 是翻譯的文件,是中文版的使用者翻譯文件介面,依照個人的喜好,選擇是否安裝;若安裝這個語言的套件後,也可以在 RGui Console 中: Edit >> GUI Preferences >> Language for menus and messages >>  輸入 en 做設定,必須注意:設定完 GUI Preferences 內的設定值需要將 Rconsole 檔案儲存在 HOME 的目錄,預設是 C:\Users\username\Documents 目錄,要更改 HOME 目錄,請繼續讀下面的文章。 安裝完成後開啟 Rgui.exe,在 Rgui 的 console 輸入: >??startup 其中有一段文章: R searches for site and user files to process for setting environment variables. The name of the site file is the one pointed to by the environment variable R_ENVIRON ; if this is unset, ‘ R_HOME /etc/Renviron.site ’ is used (if it exists, which it does not in a ‘factory-fresh’ installation). The name of the us...

QURL- A Web Content Service Co.

 QURL 是一家針對 Wordpress 架站的公司,提供更專業的內容修改服務,在 QURL 網站 Service 連結中寫著: Maybe it’s a bit more. Having a website can give much more possibilities and opportunities.  Have a look at automating, structuring and connecting business processes for example. Now that needs project management! 我比較有興趣的卻是他們開發的 dynamic-widgets,可以在 Wordpress 內使用 dynamic-widgets 來管理視窗式的小元件,在 Drupal 中是否有相同的套件可以使用呢?

Do right thing or Do thing right

如同標題,大家都應該知道要 Do right thing, 但是,在現實的社會中,卻要 Do thing right,理由很簡單:老闆喜歡聽話的人,還是不聽話的人,答案絕對是:聽話的人;當老闆不是明君時, Do thing right 才是升官發財之道,不是嗎? 今天看到「 Appier延攬臺大AI專家 啟動人才培育計畫 」這則消息,前天才與教授級長官談及產學合作的公文,經過六、日的思量,原本想:就直接簽辦,了結此按即可。唉!又是 Do right thing 在作怪,才又違反上意,教授阿,教授,耳根輕及小人當道時,這也不足為奇了吧。 另外一則:「 如何在瀏覽器上執行Windows 95?關鍵是這套工具Emscripten 」新聞,標題到沒有讓我訝異,畢竟 Browser 與 Javascript 是跨平台的東西,而 Emscripten 是媒介,可是為何最大的功臣 LLVM 卻隻字未提呢? 讓我訝異的是:「一名在蘇格蘭的 19 歲開發者Andrea Faulds」這段文字,這個年紀我在做什麼?又你/妳在做什麼?教育的從業人員阿,該值得我們省思與深思。

LLVM 的工具程式 Sanitizer and libFuzzer

Chandler Carruth 在 Channel 9 中的 The Care and Feeding of C++’s Dragons 演解提到 LLVM 的 Sanitizer 工具,它已經含在 Clang 裏頭,文件 在 Clang 文件內 ,GCC 也 有人嘗試這要加入這個工具到 GCC 裏頭,在 2015 LLVM Developers’ Meeting 中 Google 的 K. Serebryany & P. Collingbourne 提出 " Beyond Sanitizers... ",影片內容也提到 LibFuzzer,文件在 LLVM 文件。 目前 Google 在 GitHub 中有一個維護 Sanitizer 的專案, 可以在這裡找到 。

Alex 退休了

isocpp.org Post 一則: 上星期 Alex Stepanov 退休 的消息,這位 STL 之父是 C++ 重要人物之一,他退休對於 C++ 是相當大的影響。他的書籍及演講在 http://www.stepanovpapers.com 網站可以查詢得到,另外,A9 的 Joyce Croft 和 Alexander Zeyliger 為他設計一款郵票, 網站文章 的最後寫道: I wish you an excellent and well-deserved rest with your family and friends.   auto who = successor ( alex );   Thanks!

不同瀏覽器不一致的樣式表預設值

有許多 Browsers,不同 Browser 內定的樣式表都有其預設值,在設計網頁時,對於不同 Browsers 之間,可能就需要為不同 Browsers 設計不同的 CSS ,這樣讓網頁設計者相當困擾,一般的做法是將不同 Browsers 內定的樣式表預設值 Reset,Reset 之後才設計元件的 CSS,這樣設計出來的 CSS,使用不同 Browsers 觀看,就會有相同的效果。 目前網路上常被使用 Reset 樣式表預設值的套件有: Normalize.css makes browsers render all elements more consistently and in line with modern standards. CSS Reset HTML5 Reset Stylesheet 樣式表有優先順序,其寫法上的優先順序為:[1] Client user defined style Embedded or inline style sheet  Internal style sheet External style sheet Browser default style(Client User browser) 按照 CSS Selector 來區別優先順序,在 CSS 2.1 Section 6.4.3 :[2]中寫道: A selector's specificity is calculated as follows: count 1 if the declaration is from is a 'style' attribute rather than a rule with a selector, 0 otherwise (= a) (In HTML, values of an element's "style" attribute are style sheet rules. These rules have no selectors, so a=1, b=0, c=0, and d=0.) count the number of ID attributes in the selector (= b) coun...