foojay

Java, What’s Old? Part II: Utils

Author: Anthony Goubard Original post on Foojay: Read More Table of Contents ObjectsvolatileLocaleCollatorNormalizer After Java, What’s Old? Part I – Collections, let’s now have a look at less known old utility classes that can still be useful. Everything in this series will be in Java 8 and later, so after reading this article, you will be able to use it …

Read More »

Robust AI Applications with LangChain4j Guardrails and Spring Boot

Author: A N M Bazlur Rahman Original post on Foojay: Read More Table of Contents Understanding LangChain4j GuardrailsSetting Up a Spring Boot Project with LangChain4jImplementing Input Guardrails Content Safety Input Guardrail Smart Context-Aware Guardrail Intelligent Input Sanitizer Implementing Output Guardrails Professional Tone Output Guardrail Hallucination Detection Guardrail Testing Your GuardrailsCreating AI Services with Guardrails Rest endpoint DemoConclusion As AI applications …

Read More »

Why Mirroring Production in Dev Helps You Avoid Costly Mistakes

Author: Ricardo Mello Original post on Foojay: Read More Table of Contents The setup: A realistic aggregation scenarioThe application behind the testTesting on M0: The hidden riskTaking it to production: Same query, different outcomeReal-time metrics: Detecting the bottleneckQuery insights: The detective toolDon’t guess, let Performance Advisor show the wayResilience under pressure: Testing primary failover Replication Failover scenario Simulating application load …

Read More »

CodeRabbit Tutorial for Java Developers

Author: Aravind Putrevu Original post on Foojay: Read More Table of Contents Getting Started Prerequisites Setup Process Core Features for Java Development 1. Code Quality Analysis 2. Security Vulnerability Detection 3. Performance Optimization Suggestions 4. Design Pattern Recognition Working with CodeRabbit Reviews Understanding Review Comments Responding to Reviews Java-Specific Configuration Custom Rules Setup Maven/Gradle Integration Advanced Features 1. Custom Prompts …

Read More »

Foojay Podcast #77: DevBcn Report, Part 2 – Spanish Knowledge Sharing

Author: Frank Delporte Original post on Foojay: Read More Table of Contents VideoPodcast (Audio only)Content This is the first Foojay podcast in Spanish. It’s also the shortest one and the final of season 4 Jonathan Vila “highjacked” the microphone from Geertjan Wielenga (See episode 76) during the DevBcn conference in Barcelona and interviewed a few of the participants for this …

Read More »

Introducing a New Java DMX512 Library With Demo JavaFX User Interface

Author: Frank Delporte Original post on Foojay: Read More Table of Contents A Personal StoryAbout DMX512 and OFL What is DMX512 What is Open Fixture Library DMX512 Java Library My Test Setup Minimal Code Example Using Fixtures and Modes Detecting USB-to-DMX and IP-to-DMX interfaces DMX512 JavaFX Demo ProjectNext Steps In this post, I would like to inform you about a …

Read More »

Agent Memory with Spring AI & Redis

Author: Raphael De Lio Original post on Foojay: Read More Table of Contents You’re building an AI agent with memory using Spring AI and Redis. Unlike traditional chatbots that forget previous interactions, memory-enabled agents can recall past conversations and facts. It works by storing two types of memory in Redis: short-term (conversation history) and long-term (facts and experiences as vectors), …

Read More »

Java 22 to 24: Level up your Java Code by embracing new features in a safe way

Author: Jonathan Vila Original post on Foojay: Read More Table of Contents Java introduces several new language features in the 22 to 24 versions which collectively simplify code, enhance documentation, and provide powerful tools for bytecode manipulation and advanced stream processing. This article shows you how to leverage these new features with simple examples. Rule S7466: Unnamed variable declarations should …

Read More »

MongoDB ACID Transactions With Java

Author: Tim Kelly Original post on Foojay: Read More Table of Contents What are MongoDB ACID transactions and when should you use them? But do you really need a transaction? Transaction APIs: Callback vs core When to use the callback API When to use the core API Setting up: A simple banking example Prerequisites Connecting and seeding dataWriting a transaction …

Read More »

AI Newsletter #1

Author: Miro Wengner Original post on Foojay: Read More Table of Contents There is a lot going on in today’s technological world, but the most intense and vibrant area is undoubtedly the field of artificial intelligence. After brainstorming, our Java Champion Education group agreed to create a newsletter with a 14 days cadence. In our newsletters, we will include a …

Read More »