Recent Posts

AI Test Generation: A Dev’s Guide Without Shooting Yourself in the Foot

Author: Jonathan Vila Original post on Foojay: Read More Table of Contents So, AI Can Write Tests Now? Cool, But…How AI Learns to Code (And Why That’s a Problem for Tests)Problem #1: AI Tests Might Just Be WrongProblem #2: Testing the Code You Have, Not the Code You Need (Verification vs. Validation Trap)So? What to Do? Don’t Use AI for …

Read More »

Understanding BSON: A Beginner’s Guide to MongoDB’s Data Format

Author: Tim Kelly Original post on Foojay: Read More Table of Contents What is BSON? Why not just JSON? BSON vs. JSONCommon BSON data types (and their Java equivalents)BSON and MongoDB internalsSetup and project structureBSON data types and document creation Nested fields and arrays Why use nested structures? Raw BSON manipulationQuerying with BSONAggregation with BSONPOJO mapping: Bridging Java and BSON …

Read More »

How to send prompts in bulk with Spring AI and Java Virtual Threads

Author: Raphael De Lio Original post on Foojay: Read More Table of Contents Here’s the flow:Virtual Threads for Massive ParallelismSpring AI Prompt CallProcessing in BatchesHandling Errors GracefullyProcess Results in BulkFull ImplementationStay curious! TL;DR: You’re building an AI-powered app that needs to send lots of prompts to OpenAI. Instead of sending them one by one, you want to do it in …

Read More »