Articles

My first draft of hierarchy traversing component got some serious feedback, and it’s time to make some changes before moving on to the next challenges. Hierarchy traverser is not optimal yet as it uses tail-call recursion and it’s easy to run to Stack Overflow with it. This blog post solves this problem and prepares for the next challenges like node cache and continue-from-given-node.

Problem: Running to Stack Overflow

As reader Ants pointed out then, .NET runtime doesn’t always optimize tail-call recursion and using this simple piece of code, it’s possible to run to Stack Overflow fast.

Source de l’article sur DZONE

In this tutorial, we’ll learn more about Fragments — what are they, how to use them, and how to create them.

What Are Fragments?

A Fragment represents a portion of the user interface. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities.

Source de l’article sur DZONE

Today, we’ll talk about design patterns and some of the best online courses to learn design patterns in Java. If you are wondering what a design pattern is and why Java developers should learn them, then let me give you a brief overview.

In simple terms, design patterns are nothing but a tried-and-tested solution to common programming problems, for example, the creational design patterns deal with the problems of object creation.

Source de l’article sur DZONE

On a recent project, we started to employ CheckStyle to help enforce good code quality and standards. I added the CheckStyle plugin to my IntelliJ IDEA client and introduce the checkstyle.xml from another client’s project and ran the analysis.

I wasn’t completely sure what to expect, since the API had been created before I started the project. As it turns out, the results were not all that bad. Making sure spacing was standardized, setting private class constructors for utility classes, and removing the public prefix on interface classes were common items that needed to be fixed.

Source de l’article sur DZONE

This article is dedicated to the non-commercial Java conference that I visited on September 24, 2019, in Hannover, Germany, known as Java Forum Nord. The spoken language is German but the presentations consist of diagrams and code examples so they can be understood by the non-German-speaking readers. I want to list here the lecture which I have visited with links to the presentations and also lists with headwords.

Networking Instead of Waste: Let’s Talk — Stefanie Reinicke, Dr. Jan-Christian Dammann

This presentation was about making development teams stronger through three topics:

Source de l’article sur DZONE

Thinking of upgrading your Spring Boot application? In this post, I’d like to walk you through the process of upgrading a Spring Boot 1.x app to Spring Boot 2.

Dependencies

Java

Spring Boot 2.x will no longer support Java 7 and below, with Java 8 as the minimum requirement.

Source de l’article sur DZONE

Hi, Spring fans! Happy New Year to you! Here’s hoping that your new year is healthier and happier than the last. 

Also, this is the eighth anniversary of This Week in Spring, I started this series in the first week of January 2011. We’ve come a long way since then! This is as good a time as any to remind you that I love this community and I love reading what you’re up to. It’s a pleasure to learn right along with you. As always, I’m grateful for any contributions in this humble roundup; just hit me up on Twitter. My Direct Messages are wide-open. Thank you for everything you’ve done to drive this and for everything I know you will do, dear reader.

Source de l’article sur DZONE

Apache Commons CLI, initially released in 2002, is perhaps the most widely-used Java command line parser, but its API shows its age. Applications looking for a modern approach with a minimum of boilerplate code may be interested in Picocli. Why is it worth the trouble to migrate, and how do you migrate your Commons CLI-based application to Picocli? Picocli offers a fluent API with strong typing, usage help with ANSI colors, autocompletion, and a host of other features. Let’s take a look using Checkstyle as an example. (Note: as the author of Picocli, it is fair to say I am biased.)

Why Migrate?

Is migrating from Commons CLI to Picocli worth the trouble? What is the benefit of moving from one command line parser to another? Is this more than just redecorating the living room of our application?

Source de l’article sur DZONE

This time, we will use the package Spring Cloud Config to have remote configurations for our applications.

The idea is that our program or programs can move your settings to an external place so that our application is easily configurable and can even change their settings.

Source de l’article sur DZONE


Hi, Spring fans, and welcome to another installment of This Week in Spring! This week, I’ve been in Seattle, WA, and now, I’m off to Toronto, Canada, for the epic SpringOne Tour Toronto edition, the last SpringOne Tour for the year, too! (Can you believe we’re now less than 22 days from 2019? Time sure flies when you’re having fun!)

Source de l’article sur DZONE