Posts

Boon, another JSON Parser, Faster and lighter than GSON

Boon and JSON Boon is not a JSON parsing project. It is more than that, but JSON parsing is intrinsic to what Boon is all about.  Boon is the probably the fastest way to serialize and parse JSON in Java so far for your project. . It is faster at object serialization, enabling JSON expressions, JSON parsing and much more. Boon JSON is FAST! In addition it has a very easy to use, convention-based API. (Boon should be the fastest for most use cases that I have seen for REST, but there are some clear areas where Jackson and FASTJson are faster. At the moment, Boon is not the fastest way to encode JSON if you have a large strings with unicode outside of the ASCII range. The plan is to close the gap, but currently this makes Jackson faster for these use cases. Also please note that Boon is a newer project and not as mature as Jackson or GSON.) Serialization Serialization is achieved by: Jackson style ObjectMapper mapper = JsonFactory.create(); mapper.wri...

Why code reviews matter

Agile teams are self-organizing, with skill sets that span across the team. This is accomplished, in part, with code review. Code review helps developers learn the code base, as well as help them learn new technologies and techniques that grow their skill sets. So, what exactly is a code review? When a developer is finished working on an issue, another developer looks over the code and considers questions like: Are there any obvious logic errors in the code? Looking at the requirements, are all cases fully implemented? Are the new automated tests sufficient for the new code? Do existing automated tests need to be rewritten to account for changes in the code? Does the new code conform to existing style guidelines? Code reviews should integrate with a team’s existing process. For example, if a team is using task branching workflows, initiate a code review after all the code has been written and automated tests have been run and passed–but before the code is merged upstre...

New Date &Time API from JDK 8

New Date & Time API from JDK 8 Date and Time handling in Java was tricky and not thread safe. Current system time can be accessed via  he static method  System.currentTimeMillis()   which returns the current time in milliseconds. Even though java.util.Date is there, it does not provide lot of date and time related functions that are convenient to the developer.In other words Date and Calendar API are not much developer friendly as other API for a long time,  most developers tend to Joda Date Time  library due to these reasons. This latest JDK 8 release Java team revolutionize the Date and Time api and introduced full featured thread safe, developer friendly API. It drag my attention to try out new API features. Following will explain the new features with some sample code snippets. New Structure of the Date Time API java.time  : This is the base package of new Java Date Time API. All the major base classes are part of this package, suc...

Make your life easy with web based Charting and Data Representation.

Image
NVD3  Re-usable charts for  d3.js Most of your web projects might have a portal for represent your collected data in a user friendly format. As I know developers facing difficulties in integrating a good report engine. There are some cases which reporting engine itself brings us a lot of burden to the project, or have only limited controls over the data manipulation. When I'm fighting with these issues I found a nice pretty interactive and responsive java script based API for charts. It supports almost all the charts we required for an advance management information system. This JavaScript library is such that, it could be easily integrated with any project. All charts supports JSON data format. which would be really convenient to populate the charts on client side. NVD3 Charting API has a full support of responsive feature, this provides the flexibility of developing single chart which works in most of the available devices as of now [PC/ Mobiles].  ...