itang / todo.itang.me

4 stars 2 forks source link

给Clojure留个位置吧 #54

Closed itang closed 9 years ago

itang commented 10 years ago

Tips

  1. 不要依赖编译时的状态,比如宏展开时执行的代码

    痛点

Naming conventions map VS for

Use Threading macros keep functions short Use docstrings Read other clojure code

destructuring with good nouns into {} VS for-map

高级玩意

2014-10-04

2014-09

2014-08-25

2014-10

' 符号

> (def a '(a aaa 1))
#'test-redis-clj.core/a
> (doseq [i a] (println (class i)))
clojure.lang.Symbol
clojure.lang.Symbol
java.lang.Long
itang commented 9 years ago

代码可维护性差, 易写不易读。 最终放弃跟。