Welcome to my space on the interwebs.
Here I will present, share and add my ideas, thoughts and photos. Over time I hope to bring forth a community of photo enthusiasts and Go developers.
Micro-services is the possibility to write a service in any language, any framework as long as it exposes an API.
I did recently a silly test and compared Java to Golang.
To get started I wanted a Java/Maven project with the ability to read a CSV file, searching online gave me OpenCSV
which is a neat little project with the possibility to read from a file and convert to POJO using Bean and annotations.
Getting a “executable JAR” gave me some grief, as I had to remove pluginManagement
from the POM.
In the end I got it working and the result from the git commit is interesting
git ls-files | xargs wc -l
90 pom.xml
34 src/main/java/org/tretton63/App.java
93 src/main/java/org/tretton63/domain/File.java
20 src/test/java/org/tretton63/AppTest.java
237 total
Where as the Golang project was a breeze, open the file, read the file through CSV package and add a type with the columns and go build
and use.
git ls-files | xargs wc -l
21 file.go
3 go.mod
30 main.go
54 total