IngramChen
積分 3
沒像作者碰過這麼多東西, 不過大致上都跟自己的經驗相同
- 時程不可能準確預估
- desgin pattern 是提鍊出來的
- 少用 Mock
- 我只用 trunk, 從一而終
- 現在已經從 composition over inheritance 進化到 copy paste 了
IngramChen
積分 0
這個 init constructor
public PersonRecord{
if ("Heinz".equals(firstName))
throw new IllegalArgumentException(…);
}
到是沒想過
除了效能考量,要不要用外部的 fonts/js/css 也有個簡單的判斷原則:
你的網站是公開給 internet 用嗎?
如果不是,那就全部都 self host,不要用外部的 CDN
你接到的案子,是給公司行號/圖書館/kiosk... blah blah 的 內部 應用,用外部 CDN 是自找苦吃。
smallufo
積分 0
That is, the toString() method (as well as equals() and hashCode()) is implemented using an invokedynamic-based mechanism. This is similar to how string concatenation has also been migrated to use invokedynamic in recent Java versions.
這是唯一吸引人的地方,也是目前 kotlin 做不到之處。這算 Oracle 的後發者優勢吧。
IngramChen
積分 0
要加的功能好多,2020 做的完?
把工作從 UI thread 拔掉當然是很好,不過我觀察發現卡住的地方通常是真的算很久 (貼個 Java code 轉成 kotlin 之類的),或是修改一個 1000 行的 kotlin 程式檔。parser 不再快一點也是白搭