因此,在做一些項目時,我發現一些Java庫使用Interfaces for Constants。對於例如http://docs.oracle.com/javase/7/docs/api/javax/swing/SwingConstants.html 這讓我不知道爲什麼會有人這樣做呢?爲什麼不只是一堂課?它的優點是什麼。對我來說,它看起來像一個反模式。
我最近安裝了Angular 4(RC2)並複製了簡單的Quickstart example中的文件。但是,當我嘗試建立與的WebPack的項目,我得到的錯誤,指出Rxjs無法解析: WARNING in ~/@angular/core/@angular/core.es5.js
6857:19-40 Critical dependency: the request of a dependency