DEV Community

Discussion on: From 'A' to 'Web App': Build an API in Java

 
robole profile image
Rob OLeary

The article is aimed at less experienced developers. The issue with most tutorials is there is a lot of assumed knowledge, which may pose a challenge for less experienced devs. Being popular means that a developer has a higher chance of working with it, so that is the relevance for me writing about it. I was teaching Java recently and I had this conversation with other devs, we decided to introduce Spring as a framework to them for this reason. I may post about different frameworks in the future and that may be of more interest to you

Thread Thread
 
siy profile image
Sergiy Yevtushenko

Looked more carefully into article and found it really disappointing. The code which most likely beginners will be following in their applications contains a number of significant issues:

  • Using mutable POJO for storing users is a poor habit
  • Using non-synchronized collection for storing data which can be accessed concurrently will result to unpredictable behavior
  • Modifying collection while iterating over it is a poor habit
  • No input validation for REST methods