/dev/Vitor Mussatto

/dev/Vitor Mussatto

Desenvolvedor Java, Groovy e Golang
 

Blog

Últimos posts

This post has the intention of exploring new Java 8 features like Lambda. Lambda Expressions Is a feature already present in other languages, and this enables us to write more readable code (...)
Em: VM Blog, Publicado em 06/06/2017, Cliques: 31
Hereby a few examples about how to use stream + filter to get all elements matching some kind of conditions. Example 1 - Integer array List listTest = DataFactory.createListInteger(10); List (...)
Em: VM Blog, Publicado em 05/06/2017, Cliques: 34
The exception This exception happens when there is one physical table mapping two or more logical table names. This happened to me because there where multiple @JoinColumns using the same co (...)
Em: VM Blog, Publicado em 14/11/2016, Cliques: 119
Appending is a really common operation when programming, but how do we append two arrays / slices in Golang? Well, first lets try the regular way: myStringSlice := []string{"first", "second" (...)
Em: VM Blog, Publicado em 09/11/2016, Cliques: 85
Lately I have been studying JPA / Hibernate on Spring boot, and I got a strange exception on startup (on gradle bootRun): org.hibernate.MappingException. Problem ocurred because I had mixed (...)
Em: VM Blog, Publicado em 05/11/2016, Cliques: 105
One of the worst pains in Java is having to stop / start a server at each simple change in the code (reload it). Pretty much all IDEs provide support for hot code swapping with A LOT of limi (...)
Em: VM Blog, Publicado em 02/11/2016, Cliques: 92
This post will cover a small sample about how to capture or recover from panic in Golang. Lets check this scenario: var secondVar interface{} secondVar = 10 //.... //some code secondString = (...)
Em: VM Blog, Publicado em 23/10/2016, Cliques: 102
Lets say you have an interface in Golang, and for some reason you want to cast it. How do we do that? var myVar interface{} ... myVar = secondVar.(string) But what happens when myVar is not (...)
Em: VM Blog, Publicado em 22/10/2016, Cliques: 109
This post contains samples and considerations about the basics of Java Threads, excluding the executors framework (executors framework will be in a future post). The code will cover the two (...)
Em: VM Blog, Publicado em 14/10/2016, Cliques: 122
Appengine and datastore is a great cloud provider to try out new projects. It supports Java, Python and Go and has a great free layer. This is a tutorial about how to setup the objectify fra (...)
Em: VM Blog, Publicado em 13/10/2016, Cliques: 118