教科書中沒(méi)有的干貨,編程語(yǔ)言的隱藏特性
StackOverflow有很多有趣的問(wèn)答, 其中有一些問(wèn)答匯集了很多人的智慧。 其中Hidden features of系列揭示了一些語(yǔ)言的隱藏特性,非常的有趣, 比如Java中:
- Set<String> fruits = new HashSet<String>() { {
- add("蘋果");
- add("香蕉");
- add("梨");
- add("芒果");
- } };
盡管這些問(wèn)答很早(自08年開始)就開始收集整理了,但是很多的答案都出人意料,并且你在教科書中是不會(huì)看到這些技巧的。
以下列出了投票***的一些語(yǔ)言和工具的隱藏特性。
Hidden Features of C#?
Hidden features of Python
Hidden Features of Java
Hidden Features of JavaScript?
Hidden features of Ruby
Hidden features of Scala
Hidden Features of ASP.NET
Hidden features of Perl?
Hidden features of C
Hidden features of HTML
Hidden Features of SQL Server
Hidden Features of C++?
Hidden features of Bash
Hidden features of Android development?
Hidden Features of Xcode
Hidden features of HTTP
Hidden features of Groovy?
Hidden Features of Xcode 4
Hidden Features of PHP?
Hidden Features IntelliJ IDEA
Hidden features of CSS
Hidden Features of Erlang
Hidden features of Windows batch files
Hidden features of Clojure
Hidden Features of MySQL