Java Streams are good for manipulating a collection of objects. A classic example of a collection that is often used for streams is a list. Rarely, but still sometimes, we want to transform a list to a map. See how.
Learn Liquibase
Get a new skill! Master database versioning with dba-presents.com.
Promotion - 50% off
Never miss new articles
Java Streams are good for manipulating a collection of objects. A classic example of a collection that is often used for streams is a list. Rarely, but still sometimes, we want to transform a list to a map. See how.
Time zones are much more complex than we think they are. This video show how difficult this subject is and why we all should be grateful for libraries that already cover that for us.
Stored procedures can be created with Liquibase by using <SQL>
tag. Check fifty forth question of full-stack dev quiz to check what you know about splitStatements attribute.
Stored procedures and functions can be easily managed through Liquibase Pro edition. Are we doomed when using the Community one? Oh, no. As with any other database change, it can be done using the <SQL>
tag which can work with any SQL code. But Liquibase may complain on an SQL syntax error ...
Not all objects can be easily shared between threads in Java. Do you know which ones are thread-safe? Check fifty third question of full-stack dev quiz to verify that.
As we already know that ++ operator is not thread-safe, a question how to increment an integer in a thread-safe manner? becomes valid. This time I will show you one of the ways. A method that is very simple to apply in almost any case.
When multiple threads may cause a problem in a Java application? Check fifty second question of full-stack dev quiz to verify what you know about thread-safe aspect.
We usually do not think about concurrency when building simple web applications. That is a mistake. Web applications may process multiple requests at the same time, and inconsistencies coming from concurrency may suddenly cause problems. Today's question is is i++ atomic in Java?. Can we assume that one of the simplest operations is thread-safe?
When I have recently gone on vacation, I have taken a book with me. I always do that with better or worse results. This time it has been "Traction: How Any Startup Can Achieve Explosive Customer Growth" written by Gabriel Weinberg that had been recommended to me. I have read it all so I have decided to write a review.