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 […]
I’ve discovered this recently while looking into some issues caused by the Jackson libraries in one of my Java applications. If you use Jackson I’m sure you are by now familiar with some of the annotation they supply — such as @JsonProperty and @JsonCreator — and it was dealing with these that got me to […]
I see this issue popping up ever so often with startups I either work with/for or advise (nowadays) and it’s a valid one and I’ve encountered it often enough that I feel it deserves at least a blog post from me. (Realistically, I can see this growing into a series as there are a lot […]
Sailing in Santa Cruz — woohoo!!!
Here’s classic problem when dealing with a web app: you get a HTTP request to your app with a set of parameters. You need to hit a datastore to retrieve some record based on those parameters. You also need to create a (log?) entry somewhere about receiving this call — whether it’s for monitoring purposes […]
So proud to be part of this — and so grateful for such an amazing amazing party! The passport to this exclusive party: The freebies: And the amazing party: The VIP welcome: The amazing city views: and a “Black Mirror” special shoot 🙂 Special thanks to Russel Peters and Maz Jobrani who were hi-la-rious!!!
I see the need for null in Java still, but since the Optional class was introduced I think some of the usages of null can be eliminated by employing some of the capabilities of the Optional class. I will explain in this post a nice way you can implement checking for null in Java by […]
I’ve encountered this one a few times and came across again recently and thought it relevant to deserve its own post, so here it is. If you have done any I/O in Java you likely came across the Reader class, unlike the InputStream class(es) which deal with bytes, the Reader makes the transition into reading […]
I finally decided was about time to go to Disneyland, with Los Angeles being so close and all that. Super excited about the whole thing, I downloaded the app, I did a bit of research (and decided to go to Disneyland and save California Adventures for another time) and set off to buy tickets. And I […]
This is something that started bugging me back in the maven area — when I switched from the likes of Ant as a build tool, which was relying on the user being explicit about a lot of things and doing a lot of the grunt work for it, to the maven world. Now maven was […]
I am not entirely sold on the performance of the Java streams but I will accept they are getting much better compared to the first cut, we now have parallel streams and all sorts, and also it provides a (nicer) functional approach to coding. I’m not going to go into the whole dispute of whether […]
If you read some of my posts dealing with dependency injection in Java you have probably figured it out (and I even stated it in clear) that I use Netflix Governator’s a lot. Especially as I revealed in one of my previous posts because Google Guice doesn’t support out of the box the likes of […]
I’ve stepped into the Guice territory rather recently — coming from the Spring framework side of things — and I guess I had so far a similar love/hate experience as with Spring. I rely mostly on the javax.annotation standards anyway so to a certain degree whether it’s Spring or Guice I guess doesn’t make that much […]
I came across an issue with AngularJS in one of the projects I worked on which I thought was worth signalling. It all stems back from the usage of $index inside a ng-repeat group — in the context of using a filter in ng-repeat, and as such it took us a bit to identify the […]
I saw this advert today on LinkedIn — I do check the site (and the app) a few times a day, so it doesn’t come as a surprise I guess — and made me think about employing a bit of psychology into advertising (something we tried to do back in time in Cognitive Match)… or […]