We need to do a lot more to modernise; to get you to that world of cloud and microservices and serverless. Because the reality is EE is the bedrock of mission critical systems; it does power enterprise. And if we look at why it isn’t getting us there it is pretty self evident. Is it open? No, it’s a vendor consortium, last time I checked those aren’t that open. Is it nimble? Well is shipped four years ago, that’s not very fast. We’re going to change everything about this.
將來可以透過 Java EE 來開發免伺服器的雲端服務,不用依靠某廠商 (指的是 AWS?)
// Java 9 URL url = new URL("http://openjdk.java.net"); URLConnection conn = url.openConnection(); Scanner scanner = new Scanner(conn.getInputStream(), "UTF-8"); // Java 18.3 var url = new URL("http://openjdk.java.net"); var conn = url.openConnection(); var scanner = new Scanner(conn.getInputStream(), "UTF-8");
感覺這樣的寫法不是很好,沒有強型別的檢查:(學 javascript 的 ?)
URL url = new Scanner(conn.getInputStream(), "UTF-8"); //complier error
var url = new Scanner(conn.getInputStream(), "UTF-8"); //pass !?
caterpillar
積分 1
文中就寫了… local-variable type inference…像是 Scala、Kotlin 那樣吧!