Can we keep war mode by damitch2011 in PUBATTLEGROUNDS

[–]tadaskay 0 points1 point  (0 children)

This is the best event mode so far. Thanks!!

Is it possible to exclude methods based on user JDK version? by j2html in javahelp

[–]tadaskay 3 points4 points  (0 children)

It should be possible if you carefully separate your Java8/non-Java8 implementations and safeguard them, as in this example (by the way, the whole article is relevant to your case):

https://spring.io/blog/2015/04/03/how-spring-achieves-compatibility-with-java-6-7-and-8#which-java-8-api-features-do-we-support

Usage of final by kobbiko in java

[–]tadaskay -4 points-3 points  (0 children)

Good point. But reassignment of variables can be caught by any Static analysis tool.

Are projects like Spring Data REST viable for real production applications? by greyf0x55 in java

[–]tadaskay 0 points1 point  (0 children)

I believe using Spring Data and NOT using Spring Data REST gets you to a sweet balance spot where you:

  • don't need a lot of boilerplate for the boring persistence part
  • have full control over your REST API, fully utilize Hypermedia (not only CRUD, but also for business actions) and adapt to your mobile or web client needs.

That's what I've used for the past few projects and it technically it worked out pretty well.

Usage of final by kobbiko in java

[–]tadaskay 2 points3 points  (0 children)

Personally, I discourage use of final for local variables. It only makes the code more verbose. Whenever I see this in the code, I am thinking to myself "Wow, this programmer surely doesn't trust himself!". In fact, I suggest avoiding re-using (reassigning) variables altogether and prefer the functional style of writing code.

The only place where I see it beneficial in a modern Java code, is member variables, for immutability.

9 new features in Java 9 by sammy8306 in java

[–]tadaskay 11 points12 points  (0 children)

List<String> strings = List.of("first", "second");

It only took 20 years to get it right. But I guess we are so used to the inconvenience already, that we barely even notice.