Posted on

Multithreading in java

dzone

Multi-threading represents a very intriguing topic, even after years of research and development for high quality, robust, and efficient software. With equal emphasis on hardware improvements and the software that runs on it – we have newer paradigms for parallelism. The most important yet basic concepts are the ones which I present here. I then explain the intricacies of multi-threading in the Java programming language. Some of these are newer features and supported only from the Java Platform Standard Edition 5.0. Let us start with a quick overview and understanding of the core concepts.

Continue reading Multithreading in java

Posted on

POJO, equals, hashcode

How to simplify developing of pojo classes?

Problems:

  • pojo class is simple class with members, getters, setters. To keep test coverage more  80% we should develop tests for pojo classes. But it is a ridiculous.
  • do not forget to add new members to equals and hashcode methods.

Decisions:

  • Lombok. We have to type just members of class and use annotations. But there are problems:
    • final members without initialization
    • there are conflicts in annotationProcessor
  • AutoValue. by Google.
    • complicated to use
    • generate child class
  • Kotlin data classes.
    • by Google
    • no problems in annotationProcessor
    • we use Kotlin!!!