Java Articles by Foojay.io

January, 2025

  • 16 January

    Reflections on 2024: A Remarkable Year for OmniFish, GlassFish, Piranha, and Jakarta EE

    Author: Ondro Mihalyi Original post on Foojay: Read More As 2025 slowly gets started, it’s a perfect moment to reflect on what we at OmniFish have achieved this year. It has been a year of growth, innovation, and dedication to the open-source community and the products we’re deeply passionate about. From expanding our team to pushing the boundaries of what …

    Read More »
  • 15 January

    An Example of HACS: Adaptive Lighting

    Author: Nicolas Frankel Original post on Foojay: Read More Table of Contents The Home Assistant Community Store Adaptive Lighting Conclusion In the previous post of this focus, we replaced Philips Hue automation with the one from Home Assistant. One significant gap we noticed was that Home Assistant doesn’t automatically adjust the brightness according to the time of the day, a …

    Read More »
  • 13 January

    Rate limiting with Redis: An essential guide

    Author: Raphael De Lio Original post on Foojay: Read More Table of Contents Why Redis for Rate Limiting?Popular Rate-Limiting Patterns Leaky Bucket Token Bucket Fixed Window Counter Sliding Window Log Sliding Window Counter Choosing the Right Tool for the Job Understand Your Traffic Patterns Assess the Level of Precision Needed Consider Resource Constraints Account User Experience Stay curious! This article …

    Read More »
  • 9 January

    Make the Life of your Developer Client’s Easier with Smart Object Builders

    Author: Maximillian Arruda Original post on Foojay: Read More Table of Contents The scenario: The complex object The traditional approach: Telescoping constructors Favor Static Factory Methods over Class Constructors Many parameters? Use the Builder pattern Restricts the order of method calls in the Builder pattern Conclusion Key Takeaways Final Thoughts We often hear the phrase: “Make the life of your …

    Read More »
  • 8 January

    Integrating Google Analytics With Vaadin Flow: A Step-By-Step Guide

    Author: Simon Martinelli Original post on Foojay: Read More Table of Contents PrerequisitesCreating the Analytics ComponentUsing the Component Step 1: Add To Main Layout Step 2: Track Custom Events How It WorksBest PracticesCommon Use CasesConclusion Want to track how users interact with your Vaadin Flow application? Learn how to integrate Google Analytics with a clean, reusable component. This guide shows …

    Read More »
  • 7 January

    The Proper Way to Define Configuration Properties in Spring

    Author: Wim De Troyer Original post on Foojay: Read More Table of Contents IntroductionThe initial set-up in Spring Boot 2.Spring boot 3: Some of my properties are suddenly empty!The proper way to define your configuration properties 1. Simplify your code & get rid of lombok: use records instead of classes 2. Acquire ‘start-up’ time security: validate your configuration 3. Bonus: …

    Read More »
  • 6 January

    2024 in Retrospective: Nicolas Frankel

    Author: Nicolas Frankel Original post on Foojay: Read More For the first article of 2025, I’m continuing my retrospective series! As last year, before diving in into the report proper, I’d like to remind you that Ukraine is still fighting for its survival after nearly 3 years and countless Russian war crimes. The civilized world can’t allow rewarding the invasion …

    Read More »
  • 3 January

    Video series “JavaFX In Action”, Part 3

    Author: Frank Delporte Original post on Foojay: Read More This is the next part in the series of “JavaFX in Action” interviews published in the last part of 2024. Are you working on a fantastic JavaFX application? Let me know, and let’s discuss it in the new year! July: Pedro Duque Vieira, Daniel Zimmermann, Christopher Schnick, and Robert Ladstätter November: …

    Read More »
  • 3 January

    AI-powered Chat Application using IBM watsonx.ai and Spring AI

    Author: Tristan Mahinay Original post on Foojay: Read More Generative Artificial Intelligence (Gen AI) disrupted enterprises with the introduction of GPT-4 foundation model by Open AI in the late 2022 to early 2023 triggering big tech to release their own Gen AI platform and foundation models. Among them are Google, Microsoft, AWS and IBM. In this article, we will deal …

    Read More »
  • 2 January

    Pseudorandom Number Generator – The Secret Behind Santa’s Gift Bag

    Author: Rijo Sam Original post on Foojay: Read More On a snowy Christmas Eve, Santa sets off on his journey around the world, gliding through the night sky on his sleigh to deliver presents to children everywhere. It’s one of the busiest nights of the year for Santa, as children eagerly await their special gifts. With his magical gift bag …

    Read More »