owned this note changed 5 years ago
Linked with GitHub

The productivity brought by Clojure - Laurence Chen

tags: COSCUP2020 中階 TR313

歡迎來到 https://hackmd.io/@coscup/2020 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  • 哪些理由:lisp & REPL

  • java

  • web assembly

    • legacy

s-expression

(fn x y)

M-xpression

fn(a,b)
  • immediate feedback
  • incrementally
  • smallest unit

REPL-driven development
簡報
因為都是括號,所以他可以找到頭跟尾

基本上是 test driven
最小單元測試

快速找出時間長度
js 的範例
呼叫 time 函式庫

  • 非常多的括號問題

    • ranbow color
  • semantic editing and editor integration

    • 用 VIM 的函數
    • 相關 vim 的用法
  • prductivity 增加 30%

  • QA time

以一個 function 做編譯,是其他REPL-driven做不到的

_.cloneDeep() 相關的用法
沒有他的話在 multi-thread 是會有使用上的問題

Clojure immutable data structure: copy on write
改到的部分生成新的 node,就的則使用 reference
比較減省 memory

有些function 定義在 array or map

sequences operation -> 操作各種 map filter, reduct, first,rest
而他是一個 linked list

其他語言有不一致的相關 function name,人腦需要記憶時會覺得很痛苦無法記錄下來

講者認為資料庫是一個系統的核心
平常的系統要若不喜歡可以直切街換,但是資料庫卻還是需要 migrate

temporal database queries 的問題

PostgreSQL has temporal_tables

  • TDD
  • 忘記 _.cloneDeep()
  • 更好的 function composability
  • 可以使用 immutable database
Select a repo