I’ve had a go recently at looking at Spring Boot OAuth2 and how easy it is implementing a sign in with Microsoft using OAUTH2. My findings were surprising and justified I think this blog post. More importantly I think it explains why Microsoft has such little “pull” with developers nowadays. (Sure they are trying to […]
Posts Tagged: Java
Polyglot or poly-framework?
Our Universe is expanding every day — and I mean this in the sense of our “programming universe” (though the other, ad literam interpretation is true as well, since our actual physical Universe is expanding indeed). Every meetup and every website I come across advocates a new framework, a new architecture, a new language, a […]
How to read version number and other details from Java manifest
One of the challenges I have seen teams struggle with nowadays is versioning their packages. One of the problems with adopting any versioning system is that typically you have to version (at least) 2 components: the binary you are releasing AND the source code, at the time you have built the software. Doing this allows […]
Adding Apache Commons CLI to your Java Project
I’ve spent enough time dealing with Java programs to see enough ETL’s and other sorts of command-line based apps implemented in Java. And with these sort of programs came with the realization that more often than not developers opt for the “easy” way out and end up implementing command-line parsing by themselves. This seem to […]
Thoughts on the Dubai tech ecosystem
As some of you know, I’ve spent recently a few months in Dubai. While there, thanks to the friends I made there and thanks to the Endeavor network I came in contact with a lot of local tech companies and startups. The techie in me was very curious about the ecosystem so I had quite […]
The eternal issue about Object.hashCode() in Java
Have you heard of hashCode() and equals() in Java and the eternal discussions around this? And you know by now the implications of having a messed up relationship in between hashCode and equals so you make sure every time you implement a class with an equals() you have to make sure hashCode() follows suit right? […]
Parallel RxJava and Spock Oddity
I use RxJava a lot nowadays — back in the day before I joined Netflix I was struggling with it a bit and mostly watched from the sideline but nowadays I find myself pulling in that dependency in a lot of the Java code I’m writing. And I also use the Spock framework a lot […]
Interesting Java Jersey + RxJava finding
It so happens that in a few of the apps I work on here in Netflix we use Jersey libraries inside a Tomcat container. As such I use the JSR annotations a lot safe in the knowledge that Jersey will take care of all the plumbing work and deal with routing and serialization/deserialization so I […]
Anti-pattern for testing RxJava code
This is an obvious one but I find myself so often using it and every single time it means I have to spend extra time debugging my test / code until I realize that I’ve fallen for the same mistake again. I’m using RxJava here and using Groovy and Spock framework for testing — and […]
About composition and delegation in the Groovy language
When dealing with OOP languages, composition over inheritance has been the preferred approach for a while now as it offers a greater flexibility in most cases. Before you start, I’m not going to get into that dispute whether one should opt for inheritance or not, enough to say that there are cases where composition is […]