289
I Use This!
High Activity

News

Analyzed 1 day ago. based on code collected 1 day ago.
Posted over 5 years ago by Sanjoy Kumer Deb
Learn more about app development using the YouTube Data API YouTube is a video-sharing website where users can view and upload videos. For both web and app development, sometimes we need to access information from YouTube videos. You may also ... [More] like: Build a Spring Boot API Using Spring Data JPA and Hibernate In this case, we have to use the API's provided by Google developers. The main goal of this article is to introduce how we can use YoutTube APIs with Java. Here, we will use Spring Boot with Hibernate JPA and libraries from Google to implement the example. [Less]
Posted over 5 years ago by Nehme Bilal
When object-oriented programming was introduced, inheritance was the main pattern used to extend object functionality. Today, inheritance is often considered a design smell. In fact, it has been shown that extending objects using inheritance often ... [More] results in an exploding class hierarchy (see Exploding class hierarchy section). In addition, several popular programming languages such as Java and C# do not support multiple inheritance, which limits the benefits of this approach. The decorator pattern provides a flexible alternative to inheritance for extending objects functionality. This pattern is designed in a way that multiple decorators can be stacked on top of each other, each adding new functionality. In contrast to inheritance, a decorator can operate on any implementation of a given interface, which eliminates the need to subclass an entire class hierarchy. Furthermore, the use of the decorator pattern leads to clean and testable code (see Testability and Other Benefits sections). [Less]
Posted over 5 years ago by Brian Hannaway
Learn more about Java concurrency and synchronization In a previous post, we looked at running tasks across multiple threads using the ExecutorService. Accessing and manipulating an object from multiple threads can pose a problem when the object ... [More] in question holds state. If multiple threads attempt to modify shared state, behavior can unpredictable and result in data being left in an inconsistent state. You may also like: Java Concurrency in Depth: Part 1 & 2 Unsynchronized Code Take the simple BankAccount class below. It holds state in the form of a balance, which can be increased and decreased using the credit and debit methods. When used in a single-threaded context, this object will behave as expected, crediting and debiting the amounts specified. [Less]
Posted over 5 years ago by Mahmoud Anouti
Learn more about mapping Java entities for persistence with Hibernate. In the previous post on mapping Java domain model classes using Hibernate and JPA, we visited some basic entity mapping topics, such as mapping identifiers, columns, and ... [More] embedded types. In this part, we’ll review how to map collections in entities as well as basic entity associations. You may also like: Java Persistence Done Right Persisting Collections JDK collections are heavily used in any complex enterprise application because they are naturally required to model the business domain. For example, in our Book entity, we may want to define a set of tags that describe the genre of the book. A Set would be suitable because we don’t care about the order of these tags and there shouldn’t be duplicates: [Less]
Posted over 5 years ago by Otavio Santana
Cloud computing is the on-demand availability of computer system resources, especially data storage and computing power — without direct active management by the user. The cloud concept became a hot idea because it makes it easier for software to be ... [More] available in multiple regions, without adding the maintenance, operational, and data security costs to your software project. Platform.sh is a second-generation Platform-as-a-Service (PaaS) provider that offers hosting for your applications and their services, like MySQL, PostgreSQL, and Kafka, through the infrastructure-by-code concept. Platform.sh manages everything — from hosting and technology to global deployment and support — so developers can focus on creating amazing new apps and features. In September, we’ll have several activities to show the benefits of cloud computing and how easy it can be with Platform.sh. Stay tuned! [Less]
Posted over 5 years ago by Ram N
In the video below, we take a closer look at Spring Boot and how to reload the changes without restarting the server. Let's get started! Further Reading Spring Boot: The Most Notable Features You Should Know
Posted over 5 years ago by Groovy Calamari
Comment A combination of wrist pain, a lot of work, family obligations have kept me out of the newsletter for the past weeks. Apologies for that. I am back with a classic - a m...
Posted over 5 years ago by Hubert Klein Ikkink
Learn more about transforming [natural] elements in a [Java] Stream Using the Stream API and the map method, we can transform elements in a stream to another object. Instead of using the map method, we can also write a custom Collector and ... [More] transform the elements when we use the collect method as a terminal operation of the stream. You may also like: A Guide to Streams: In-Depth Tutorial With Examples First, we have an example where we transform String value using the map method: [Less]
Posted over 5 years ago by Joshua Long
Learn more about the latest happenings this week in Spring Hi, Spring fans! Welcome to another sunny installment of This Week in Spring! Can you believe we're now staring down Q4 2019? How time flies! As I write this, I'm sitting in the ... [More] Radisson Blu hotel in Oslo, Norway, for the epic JavaZone show. I've got tons of wonderful memories at this hotel, often enjoyed with my friends on the Spring team over the course of many, many years. I love this show and am so glad to be back for the first time since 2015! [Less]
Posted over 5 years ago by Daniel Sagenschneider
Learn more about thread binding for stateless Actors Functional programming can be perceived as "hard." Yes, spend time with it and it gets simpler — the benefits outweigh the learning curve. However, when type errors start spanning multiple ... [More] lines, it does suggest that abstract concepts may be "hard" to see clearly. You may also like:  Getting Started With Akka: Actors in a Nutshell We really need to make it easier for junior developers to assist in functional programming of larger systems. [Less]