We all have read in Java books about encapsulation of fields in Java class and also when ever you code you are asked to take special care in encapsulating the fields and providing explicit Getters and Setters. And these are very strict instructions. Lets step back a bit and find out the reason behind encapsulating […]
Lot of times we would have to fetch the data from a database or another webservice or load it from file system. In cases where it involves a network call there would be inherent network latencies, network bandwidth limitations. One of the approaches to overcome this is to have a cache local to the application.
ConEmu (http://www.fosshub.com/ConEmu.html) is a very useful and much much better Console window for Windows. It acts as a facade over the cmd.exe. There are loads of good things in it and highly recommended for programmers who are windows users.
If you have installed Cygwin, you can integrate bash with your ComEmu terminal so that you […]
Murach’s Java Servlets and JSP is the ONLY book you need to learn Web App Development in Java using JSP and Servlets. The book covers all the concepts required you to build a complete Web application in Java. You will find topics covering:
– Building Servlets for […]
The author covers most of the features of dropwizard which includes creating RESTful End points, Database access, Authentication, Creating views by means of developing a sample Phonebook application.
The book is not […]
I have been working on integrating with RabbitMQ to implement the messaging architecture. All the time I made use of the basic tutorials available on RabbitMQ site to wade through understanding different concepts around AMQP and RabbitMQ.
Yesterday I got to read the RabbitMQ Essentials by David Dossot. Its a pretty […]
We all have written unit tests where in a single test tests for different possible input-output combinations. Lets look how its done by taking a simple fibonacci series example.
The below code computes the fibonacci series for number of elements mentioned
Lets see the conventional way of testing the above code with multiple input […]
We write service APIs which cater to certain business logic. There are few cross-cutting concerns that cover all service APIs like Security, Logging, Auditing, Measuring Latencies and so on. This is a repetitive non-business code which can be reused among other methods. One way to reuse is to move these repetitive code into its own […]
If you want to:
– learn about commands used for OS monitoring
– understand about different components of JVM
– monitor and tune JVM to improve its performance.
then, Java Performance is the book you should be picking. This book covers :
– command line tools for OS monitoring.
We all write unit tests but the challenge we face at times is that the unit under test might be dependent on other components. And configuring other components for unit testing is definitely an overkill. Instead we can make use of Mocks in place of the other components and continue with the unit testing.
Connect to us …
- Getting rid of Getters and Setters in your POJO January 17, 2015
- Using Google Guava Cache for local caching January 12, 2015
- Very useful Console Window for windows December 17, 2014
- Book Review: Murach’s Java Servlets And JSP 3rd Edition September 23, 2014
- Book Review: RESTful Web Services with Dropwizard by Alexandros Dallas September 8, 2014
Some of the links contained within this site have my referral id, which provides me with a small commission for each sale. Thank you for your support.