Category Archives: Tips

Force Return in Java

Lets say you’re in the debugging session and you would like to return some specific result from the method in your IDE. Usually I was using Variable window in order to achieve this. However there’s a way simpler approach available … Continue reading

Posted in Development, Tips, Uncategorized | Tagged , , | Leave a comment

Interesting stuff. Week 50-53

Had a chance to do some load testing of our app in Fitbit. Originally considered three options: JMeter and ab. The first one seems to be cool however it does not really support non-blocking IO. The second one does but … Continue reading

Posted in Development, Education, Tips | Tagged | Leave a comment

OAuth in Gatling

Recently got a chance to do some load testing of our endpoints. At first I’ve started with ab. However I came to the problems very soon. We have OAuth and it became a sort of stopper. All of the oauth … Continue reading

Posted in Development, Tips | Tagged , , | 1 Comment

Interesting Java-related links. Week 44-49

Jigsaw and Java 9 – good introduction into Jigsaw Java multi-threading: volatile variables, happens-before relationship, and memory consistency – perfectly simple and good explanation on how volatile work. Usually candidates do not have full understanding on why volatile keyword is … Continue reading

Posted in Development, Education, Personal, Tips | Tagged , , , , | Leave a comment

Interesting Java-related links. Week 42-44

How do PreparedStatements work in MySQL – nice introduction into things I’ve never thought of. WrapAround pattern – good description of the useful pattern. It’s fun to see something similar in the codebase of your project and then to find … Continue reading

Posted in Development, Tips | Tagged , , | Leave a comment

Hibernate optimization: Mapping two properties to the same field

Recently spent some time optimizing code in our application. One of the things I was trying to optimize is creating a pretty big graph of objects which has lots of fields. So lets say we have: class User { …… … Continue reading

Posted in Development, Tips | Tagged , , , | Leave a comment

Interesting Java-related links. Week 35-37

It’s been a while since my last post. Lots of things have changed since then. I had a nice trip to Italy with my lovely wife. I also did a professional step forward and started working in the Fitbit division … Continue reading

Posted in Development, Rants, Tips | Tagged , , , , , , , | Leave a comment