Javin Paul's Java-focused blog with interview questions, programming tips, book lists, and design principle articles.
HN links it for Java interview and multithreading articles, though one commenter calls a submission blogspam and the author also appears promoting posts.
> I'm starting to think that every thread about FP is pretty much identical on HN
Spot on.
Where is Haskell actually used? No I meant apart from Facebook and Uber and Klarna.
> Just go and get hyped when the next minor FP feature gets integrated into your favourite language
We already have immutability in Java - why, the designers themselves made Strings immutable [1]
We said goodbye to nulls in Java [2] but in case you really don't like nulls you can also say goodbye to them by switching from Java to Kotlin, which doesn't have them [3] but also does [4].
If you want to cut down on some boilerplate (without moving to Kotlin), you can try type inference in Java [5]:
> For example, consider the following variable declaration:
Map<String, List<String>> myMap = new HashMap<String, List<String>>();
> You can substitute the parameterized type of the constructor with an empty set of type parameters (<>):
Map<String, List<String>> myMap = new HashMap<>();
Go got rid of Generics which made programming so much simpler. I can't wait for its new Generics feature though.
But if you really need that functional stuff - the best thing writing Java code is that it runs on the JVM, so you can code in Scala instead. And if that argument doesn't make you want to code in Java I don't know what will.
[1] https://javarevisited.blogspot.com/2010/10/why-string-is-immutable-or-final-in-java.html
[2]…
IMHO, the most important element of code review is to verify whether developer has thought through or not? whether his code can stand test of time or not, and this is where experience of code reviewer comes into picture. I have shared my 2 cents here http://javarevisited.blogspot.sg/2011/09/code-review-checklist-best-practice.html
This is really a good news buddy though doesn't seem practical such as charging in cents :)
Javin
[url="http://javarevisited.blogspot.com/2011/01/difference-between-fix-42-vs-fix-44-in.html title="Difference between FIX4.2 vs FIX4.4"]Difference between FIX4.2 vs FIX4.4[/url]
blogspam, actual url is http://javarevisited.blogspot.com/2011/07/java-multi-threading-interview.html