C
CodeFX
blog.codefx.org · Personal blog · on HN since 2014
Nicolai Parlog writes about Java features and changes, including modules, switch expressions, default methods, and var in recent releases.
What HN saysHN links it for Java explainers; commenters use it to show Java's switch is limited and that modules may worsen version problems.
22HN people shared it
4linked it in comments
35stories submitted
122story points
7 years agolast shared
2014people per year2026
Most-shared posts
- 1Unlocking Intersection Types with ‘var’ in Java 103 people · 23 points · first shared 2018 · discussion on HN
- 2Unified Logging (GC, Class Loading, ) in Java 9 with the -Xlog Option3 people · 4 points · first shared 2017 · discussion on HN
- 3Java 9 Additions to Stream2 people · 3 points · first shared 2016 · discussion on HN
- 4How Java 9 and Project Jigsaw May Break Your Code2 people · 2 points · first shared 2015 · discussion on HN
- 5Everything you need to know about default methods2 people · 1 points · first shared 2015 · discussion on HN
- 6Java 13 Switch Expressions2 people · 1 points · first shared 2019 · discussion on HN
- 7What Future Java Might Look Like1 people · 45 points · first shared 2016 · 102 comments on HN
- 8Java tricks with 'var' and anonymous classes (that you should never use at work)1 people · 4 points · first shared 2018 · discussion on HN
- 9Java 8 Stream Performance, compared to for loops with backing arrays and lists1 people · 3 points · first shared 2015 · 1 comments on HN
- 10Comment Your Fucking Code – BlogCodeFX1 people · 3 points · first shared 2015 · 1 comments on HN
- 11Eleven Hidden Gems in Java 111 people · 3 points · first shared 2018 · discussion on HN
- 12Seven reasons against blogging1 people · 3 points · first shared 2016 · discussion on HN
- 13Java 9 Additions to Optional1 people · 3 points · first shared 2016 · discussion on HN
- 14Five Command Line Options to Hack the Java 9 Module System1 people · 3 points · first shared 2017 · discussion on HN
- 15A JDeps Primer – Analyzing Your Project’s Dependencies1 people · 2 points · first shared 2017 · discussion on HN
What HN people wrote when they linked it
dmitriid · 2019-02-15
It's not. C#'s switch can pattern match on value and type: https://blogs.msdn.microsoft.com/dotnet/2019/01/24/do-more-with-patter…
Java's switch still operates only on String, int, short, byte, char, and their wrapper types: https://blog.codefx.org/java/switch-expressions/
aiCeivi9 · 2018-04-04
No, it is supposed to reduce surface area between modules/jars. Before Java9 library creators could only add "internal" to their packages name and hope end users won't touch it.
The introduction of modules might actually make version hell even worse: https://blog.codefx.org/java/dev/will-there-be-module-hell/
milliams · 2015-01-16
Does this page look like crap on anyone else's browser? I'm on Firefox 34.
Edit: The non-cached version at http://blog.codefx.org/jdk/everything-about-default-methods/ is much better.
scubaguy · 2015-07-14
I read this article yesterday and I really dislike how it is worded. The "this engineer" has a name, Donald Smith, this is what he said:
"If you're using
Unsafe, this is the year to explain where the API is broken and get it
straight.... Please help us kill Unsafe, kill Unsafe dead, kill Unsafe right, and do
so as quickly as possible to the ultimate benefit of everyone."
It reads like a request to have a discussion on Unsafe, to talk about it and find solutions. Unfortunately, I don't see anyone pointing out why Unsafe should be kept around on that thread (http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-April/017028.h…
And this quote from Oracle shows an effort to do things right:
http://mail.openjdk.java.net/pipermail/discuss/2013-October/003162.htm…
"This is definitely something we plan to propose for SE 9. I expect
to see a JEP from the current maintainers of sun.misc.Unsafe..."
This (http://blog.codefx.org/java/dev/how-java-9-and-project-jigsaw-may-brea… seems like a more balanced article on the situation.
"So far we focused on the problematic aspects of Project Jigsaw. But that should not divert from the exciting and – I think – very positive nature of the planned changes. After reading the documents, I am impressed with the scope and potential of this upcoming Java release. While it is likely not as groundbreaking for individual developers as Java 8, it is even more so for everyone involved in building and deploying – especially of…