TechHui

Hawaiʻi's Technology Community

Information

Java Developers

A group for Java developers on the islands.

Members: 84
Latest Activity: Apr 10, 2017

Discussion Forum

JPA? 4 Replies

Started by George. Last reply by George Mar 4, 2012.

Java in Decline? 6 Replies

Started by Daniel Leuck. Last reply by Daniel Leuck Mar 4, 2012.

It's been a long time coming, but Java 7 is finally with us 1 Reply

Started by Paul Graydon. Last reply by Daniel Leuck Jul 28, 2011.

Java Developer News

What Are Spring Projects?

There are several important Spring Projects solving the needs of enterprises today. But first, it is essential to understand what are Spring Projects and how are they different from Spring Modules?

What You Will Learn

  • What are Spring Projects?
  • What are some examples of Spring Projects?
  • How are Spring Projects different from Spring Modules?

What Are Spring Projects?

Within the Spring Framework, there are a variety of different Spring modules — JDBC, AOP, Beans, and Context. All Spring Modules share the same release version as the Spring Framework. They are part of the same project.

OpenJDK on GitHub

Project Skara was created "to ... investigate alternative SCM and code review options for the JDK source code, including options based upon Git rather than Mercurial, and including options hosted by third parties." The OpenJDK skara-dev mailing list included a post from Robin Westberg last week that announced, "We have added some additional read-only mirrors of a few different OpenJDK project repositories to the https://github.com/openjdk group..."

The read-only OpenJDK repositories on GitHub will likely be more convenient for developers wanting to take advantage of the "open source" nature of OpenJDK to take a peek at its internals. More developers are likely to be comfortable with Git than with Mercurial. The GitHub-hosted repositories make it even easier to clone a given repository or to even fork it.

20 Examples of Using Java’s CompletableFuture

This post revisits Java 8’s CompletionStage API and specifically its implementation in the standard Java library CompletableFuture. The API is explained by examples that illustrate the various behaviors, where each example focuses on one or two specific behaviors.

Since the CompletableFuture class implements the CompletionStage interface, we first need to understand the contract of that interface. It represents a stage of a certain computation which can be done either synchronously or asynchronously. You can think of it as just a single unit of a pipeline of computations that ultimately generates a final result of interest. This means that several CompletionStages can be chained together so that one stage’s completion triggers the execution of another stage, which in turn triggers another, and so on.

Should You Write Comments?

To comment or not to comment, that is the question. I had a little argument with some of my family members (who have also done some coding, although one of them is still in secondary school) about this subject. They had a quick look at some code I was writing at home and asked where my comments were. They were shocked at my reply when I told them I don't use them. So I'm going to write about some of the things I told them. When is it the right time to write them into your code, how helpful are they and what should they contain? These are the questions I want to answer.

I don't normally write comments into my code anymore, especially with the code I write at work. One of the first things I was told when I started working was to not write comments and, at first, I was a bit skeptical, but after a while, it made sense.

Hot-Deploying Java Enterprise With WAD and Docker [Video]

I’ve recorded a video on how to minimize the development turnaround times with Watch and Deploy (WAD) by Adam Bien and Docker containers. The WAD tool watches for file changes and will re-build and re-deploy our applications to an auto-deployment directory. We’ll see how that approach can be integrated into containers that are created by the same Docker images that run in production.

Besides the news around the fast turnaround with Quarkus, which is a very interesting project, it’s possible to have a good development experience solely with Java EE and application servers that deploy quickly. The WAD tool watches for any changes that we make in the project and re-deploys our applications. If you run your application in Docker containers, you can and, in fact, should use the same Docker image locally that you will later run in production.

Comment Wall

Comment

You need to be a member of Java Developers to add comments!

Comment by Vern Takebayashi on April 24, 2010 at 8:27pm
Yes, you are correct about Jackson being able to produce that output. The main reason why I put the toString() method in, is that I usually require that my students write that method for any basic storage class that they write. I think Jackson will get a fair amount of usage, especially since it is one of the best performing Java JSON parsers.
Comment by Les Vogel on April 24, 2010 at 3:10pm
Cool. I've been using org.json which while fairly tiny, is really annoying to use. Jackson looks like it produces more of what one would like.

I imagine that your toString method could easily ask Jackson to do that for you with a lot less code, but at the expense of order.
Comment by Vern Takebayashi on April 24, 2010 at 2:57pm
Hi, I did not see much about JSON parsing in Java. Here is a PDF file
json-parsing-with-jackson.pdf that I just wrote for my ICS 111 course, that uses the Jackson Java JSON parser (
) If any of you care about JSON parsing in Java, I would appreciate feedback on this handout. Thanks, Vern
Comment by Stephen McMahon on April 1, 2009 at 3:01pm
Here's a good GWT presentation that I stumbled upon yesterday:
http://www.infoq.com/presentations/gwt-gears-browser-platform
 

Members (84)

 
 
 

Sponsors

web design, web development, localization

© 2019   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service