Subscribe: Javalobby - The heart of the Java developer community
http://www.javalobby.org/rss/rssthreads.jsp?forumID=61
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
apache commons  apache  application  args  cli  command line  command  commons cli  commons  features  garbage  git  java  line  new 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Javalobby - The heart of the Java developer community

DZone Java Zone



Recent posts in Java on DZone.com



 



Enterprise Java Newscast #34: Microprofile and Java EE 8 [Podcast]

Tue, 27 Jun 2017 20:01:00 GMT

The Enterprise Java Newscast, hosted by Kito D. Mann, Ian Hlavats, and Daniel Hinojosa, is a monthly podcast that covers headlines, trends, and technologies in the world of enterprise software development.

In this episode, Kito and Danno discuss JSF, Polymer, BootsFaces, Java EE 8, microprofile.io, AWS S3 going down, and more.




Easy Conversion of HTTP Payloads

Tue, 27 Jun 2017 16:01:01 GMT

Almost every application needs to handle data in an interchangeable format. In the world of HTTP JSON-based APIs, the task of serializing and deserializing the payloads is something usually delegated to a third party library. Some examples are Jackson, Gson, and the most recent Java EE spec JsonP. What if there was a way where applications can be decoupled from these providers in a similar fashion to how SLF4J does for logging? That's the goal of Payload.


    com.juliaaano
    payload
    ${check.latest}





Java Command-Line Interfaces (Part 3): jbock

Tue, 27 Jun 2017 10:01:01 GMT

In the first two posts of this series on command-line parsing in Java, I looked at the Apache Commons CLI and args4j libraries. In this third post in the series, I look at jbock, the self-described "curiously simple CLI parser."

My posts on command-line parsing in Java have used examples based on providing a required file name and an optional verbose flag to the Java application. The same approach is used in this post to demonstrate jbock 1.8. The full source code for the example class is available on GitHub, but the code generated by jbock (Main_Parser) is not available, as it can be generated.




Thoughts on Kotlin’s Future Features Survey

Tue, 27 Jun 2017 07:01:00 GMT

So, the survey results for Kotlin’s future features are in. Let’s talk about that.

Survey Says…?

First off, I’d like to say that I’m sad that I wasn’t able to participate in this. It’s not that JetBrains stopped me, I just wasn’t able to watch at the time.




Yes, You Can: Java 9 for the Legacy Developer

Tue, 27 Jun 2017 04:01:00 GMT

This article is featured in the new DZone Guide to Java: Development and Evolution. Get your free copy for more insightful articles, industry statistics, and more!

Whenever a new version of Java is released, there’s a lot of excited discussion about new language
constructs and APIs, features, and benefits. But the excitement quickly wanes for legacy developers when they remember that they must maintain and enhance existing applications, rather than create new ones. Most applications must be backward compatible with earlier versions of Java, which do not support new features presented by shiny new Java releases. So, legacy developers resign themselves to sit on the sidelines and watch.




What Designers and Game Devs Need to Know About Git LFS

Mon, 26 Jun 2017 20:01:00 GMT

Atlassian is dedicated to unleashing the potential in software teams. We want to help you work smarter and faster. This is the reason we keep adding new features to Bitbucket  – branch permissions, merge checks, smart commits, smart mirroring and many more.

Last year, we were working on solving another big problem for our users: tracking large files in a Git repository. Git Large File Storage (LFS) provides the ability to store really big files where they’re needed, not just where they fit. We want to make Git right for everyone and that’s why we decided to collaborate with GitHub on building a standard for large file support.




Deploying Certificates to WildFly with Octopus Deploy

Mon, 26 Jun 2017 16:01:02 GMT

A recent feature added to Octopus Deploy is the ability to manage and deploy certificates within your infrastructure. In this blog, post I’ll show you how to export certificates from Octopus into a Java keystore, and then use that keystore to secure a WildFly standalone or domain instance running on Windows.

Prerequisites

To run the commands and scripts in this blog post, you will need to install some tools.




Keeping Java Simple

Mon, 26 Jun 2017 10:01:00 GMT

Lately, I was hooked on an algorithm challenge from a popular site, and I found it very difficult to provide a decent solution in Java. That solution was not approved, but none of the test cases really did not pass. The solution was not optimized.

But, later, I came up with another solution containing just 3 lines of code! In my first solution, the number of lines in the code was more than 50!




An Overview of Garbage Collection in Java

Mon, 26 Jun 2017 07:01:01 GMT

The Java garbage collector poses a great impact on the overall working and performance of an application. As the size of the garbage grows, the runtime of an application decreases. Hence, it is essential that you clear this garbage off of your application every now and then to enhance its productivity and user performance.

Garbage collection can be quite a daunting task. After all, choosing a wrong garbage collector type or settings can hamper the functionality of your app. There are typically seven types of garbage collectors known to us. These are classically bifurcated between the ‘mostly’ and ‘most concurrent’ category. With the ‘mostly’ types, they sometimes do not operate as expected and a fallback mechanism takes place. On the other hand, the ‘most concurrent’ collectors function concurrently with the application’s execution and rarely stop the world.




Why I Started Learning Kotlin

Mon, 26 Jun 2017 04:01:00 GMT

If you walk into ObjectStyle's dev office in Minsk, you will easily spot Ruslan's desk by the abundance of Kotlin stickers on his machine. Ruslan has been with ObjectStyle since 2016. When he's not busy turning China-grown gourmet tea into exceptional code, he heads the Belarus Kotlin User Group and talks about the language at various conferences.

We sat down with Ruslan to discuss why he took up Kotlin, why he finds the language fascinating, and how he sees Kotlin's future.




Generic Programming in Scala With Shapeless

Sun, 25 Jun 2017 05:01:15 GMT

In my last post about evolutionary computing, I mentioned I started building the project partly just so I could have a play with Shapeless. Shapeless is a generic programming library for Scala, which is growing in popularity — but can be fairly complicated to get started with.

I had used Shapeless from a distance up until this point,  using libraries like Circe or Spray-Json-Shapeless that use Shapeless under the hood to do stuff like JSON de/serialisation without boilerplate overhead of having to define all the different case classes/sealed traits that we want to serialise.




Java Command-Line Interfaces (Part 2): args4j

Sat, 24 Jun 2017 05:01:00 GMT

In my previous post, I looked at parsing command-line arguments in Java applications using Apache Commons CLI. In this post, I look at doing the same using a different library: args4j.

args4j takes a different approach to specifying which command-line arguments the Java application should expect than that used by Commons CLI. While Commons CLI expects objects representing the options to be individually and explicitly instantiated, args4j uses custom annotations to facilitate this "definition" stage of command-line arguments processing. Command-line options are expected to be instance-level fields on the class and are annotated with the @org.kohsuke.args4j.Option annotation. The characteristics of each command-line argument are included as attributes of this @Option annotation.




Object-Oriented Declarative Input/Output in Cactoos

Fri, 23 Jun 2017 14:01:14 GMT

Cactoos is a library of object-oriented Java primitives we started to work on just a few weeks ago. The intent was to propose a clean and more declarative alternative to JDK, Guava, Apache Commons, and others. Instead of calling static we want to use , the way they are supposed to be used. Let's see how input/output works in a pure  fashion.

Let's say you want to read a file. This is how you would do it with the static method readAllBytes() from the  Files in JDK7:




Deploying Certificates to Tomcat With Octopus Deploy

Fri, 23 Jun 2017 09:01:01 GMT

In a previous post, I showed you how to export a certificate managed by Octopus Deploy into a Java keystore, and then configure WildFly to make use of the keystore to provide HTTPS access to web applications and management ports.

In this post, I am going to show you how to do the same for Tomcat in Windows.




Lightbend Podcast: Goodbye Activator, Hello Tech Hub, and Meet Lightbend's New Tooling Team

Fri, 23 Jun 2017 05:01:01 GMT

In a recent blog post, we announced the EOL for Activator and described a new direction for getting started with Lightbend Tech Hub. Including a Rapid Project Starter and a growing list of technical guides, this new, online experience makes it simpler for developers to understand what is possible with our Reactive Platform technologies Akka, Lagom, Play, Scala and Lightbend Enterprise Suite.

In this podcast, we sit down with Eugene Yokota, team lead for Lightbend’s Tooling Team, to discuss the new Tech Hub, the decision to say goodbye to Activator, and the new roadmap for the long-awaited sbt 1.0. 




IntelliJ IDEA 2017.2 Public Preview

Thu, 22 Jun 2017 18:01:00 GMT

The last couple of months have been a lot of fun as we’ve been working on IntelliJ IDEA 2017.2, which is due out this summer. We appreciate the contributions from all EAP participants and the feedback they’ve shared on the new features. We reached a feature-freeze two weeks ago, and today, with roughly a month before the release, we’re happy to give you a detailed glimpse of what’s noteworthy in the upcoming IntelliJ IDEA 2017.2.

If you can’t wait, download the public preview build right away and try it on your own. Otherwise, read on and learn about the major changes.




How to Implement a New Realm in Tomcat

Thu, 22 Jun 2017 14:01:24 GMT

Tomcat by default ships with a couple of Realm implementations likeJDBCRealmDataSourceRealm, and JNDIRealm, etc. But sometimes, it is not sufficient for your organization’s requirements and you are required to apply your own implementations.

How to Implement a Custom Realm in Tomcat

You can create your own realm by extending RealmBase class; here, I am going to show an example of implementing a new Realm in Tomcat.




Using JMS in Spring Boot

Thu, 22 Jun 2017 11:01:00 GMT

JMS (Java Message Service) is a Java Message Oriented Middleware used to send messages between clients and works by sending messages to a message queue which are then taken when possible to execute a transaction. This post will focus on implementing JMS with Spring Boot, which doesn’t take long at all to setup.

JMS and message queues, in general, bring some certain advantages over using RESTful services such as:




Java Command-Line Interfaces (Part 1): Apache Commons CLI

Thu, 22 Jun 2017 09:01:09 GMT

Although I typically use Groovy to write JVM-hosted scripts to be run from the command-line, there are times when I need to parse command-line parameters in Java applications and there are a plethora of libraries available for Java developers to use to parse command-line parameters. In this post, I look at one of the best known of these Java command line parsing libraries: Apache Commons CLI.

I have blogged on Apache Commons CLI before, but that post is over eight years old and describes Apache Commons CLI 1.1. Two classes that I demonstrated in that post, GnuParser and PosixParser, have since been deprecated. The examples in this current post are based on Apache Commons CLI 1.4 and use the newer DefaultParser that was introduced with CLI 1.3 to replace GnuParser and PosixParser.




Learning Git With GitKraken: How to Squash Commits [Video]

Thu, 22 Jun 2017 05:01:13 GMT

We created a series of Git tutorial videos that were really well received by developers wanting to learn Git. However, we got a lot of feedback that you (the viewer) wanted to see how those Git concepts could be applied in GitKraken. So, voila! We created the Learning Git with GitKraken video series.

Our latest video in this series is about squashing commits. In 90 seconds, you’ll learn what it means to squash commits, and you’ll see how easy it is to squash commits in GitKraken.