Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
and many more ....
I agree to the Terms and Privacy Policy

Stop Writing Comments

This should go without saying, but it doesn’t. We should treat a comment as though it’s a danger signal. A comment is either an admission of failure, or a warning about the unexpected. In Talking Around Your Docs, I looked at how it used to be fashionable to explain every line of code. I’ve also warned about Herp Derp and ...

Read More »

Spring MVC Binding w/o Setters

spring-interview-questions-answers

You can bind form parameters to a domain model object even if the domain model object does not have setters. Just add a @ControllerAdvice class with an @InitBinder method that configures your application to field binding via the initDirectFieldAccess() method package boottests.controllers; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.*; @ControllerAdvice class BindingControllerAdvice { @InitBinder void initBinder(WebDataBinder binder) { binder.initDirectFieldAccess(); } } Here’s how ...

Read More »

The Structural Bug

A team member was having a bit of trouble with the following code: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 void extractData(String targetUri) {     Path tempFile = createTempFilePath();     extractDataToPathAndUpload(tempFile, targetUri);     cleanUp(tempFile); }   void extractDataToPathAndUpload(Path tempFile, String targetUri) {    try (FileOutputStream stream = createOutput(tempFile)) {       // extract from db to file stream ...

Read More »

Progressive delivery

Coupling is one of the important pattern for building software and it is recommended to build loosely coupled systems.  Lets talk about loose coupling pattern in software deployment context. Industry has seen evolution in Devops space in form of continuous integration,continuous delivery, automated testing etc but world is moving fast and we need CI/CD++.  Next step after CI/CD is  Progressive delivery. ...

Read More »

Performance Testing with JMeter

java-interview-questions-answers

When developing complex, high-availability software projects, performance is of key importance. That is especially true in these modern times where anything other than lightning fast accessibility of real-time data is punished. This is not always an easy feat when talking about the huge amounts of data that are sometimes required. In this post we’ll use an online booking engine as ...

Read More »

Apache Camel 3 is only 2 months away

The Camel team is busy working on the last set of work forApache Camel 3. Today the 2nd release candidate was built and published on a staging repository for early adapters to give it a try. As I am busy myself then I just wanted to write a short blog post to keep the community posted that Apache Camel 3 ...

Read More »

Efficient enterprise testing – test frameworks (5/6)

java-interview-questions-answers

This part of the article series will cover test frameworks and my thoughts and experiences on when and whether to apply them. Thoughts on test frameworks The reason why I’m not too excited about most test framework is that, from my view, they mostly add some syntactical sugar and conveniences, but per se don’t solve the problem of having maintainable ...

Read More »

A Programmer’s Guide to Agile Implementation

Agile methodology is the most sought after software development model today. It promotes continuous iterations in development and testing. Agile is about going fast, releasing often, and working toward the real needs of the users.When it comes to businesses where the requirements are unpredictable, agile should be the go-to methodology. The core values of agile development are:  individuals and interactions ...

Read More »