Classic Layout

My first steps with Playwright

Author: Nicolas Frankel Original post on Foojay: Read More Table of Contents The contextGetting my feet wetStoring cookiesAdapting to realityConclusion In my previous company, I developed a batch job that tracked metrics across social media, such as Twitter, LinkedIn, Mastodon, Bluesky, Reddit, etc. Then I realized I could duplicate it for my own “persona”. The problem is that some media …

Read More »

A solution to the problem of cluster-wide CRDs

Author: Nicolas Frankel Original post on Foojay: Read More Table of Contents A short intro to CRDsThe issue with cluster-wide CRDsThe separate clusters approachvCluster, a sensible alternativeConclusion I’m an average Reddit user, scrolling much more than reading or interacting. Sometimes, however, a post rings a giant red bell. When I stumbled upon If you could add one feature to K8s, …

Read More »

Project Loom: Structured Concurrency – Java

Author: Mahendra Rao B Original post on Foojay: Read More Table of Contents What is Structured Concurrency? How Structured Concurrency Works? Benefits of Strutured Concurrency ConclusionReferences In today’s era of cloud computing, where high-performance infrastructure is readily available, developers face a complex challenge in achieving efficient concurrency. While modern technological advancements have brought us closer to solving these challenges, we …

Read More »

Token Bucket Rate Limiter (Redis & Java)

Author: Raphael De Lio Original post on Foojay: Read More Table of Contents Index How It Works 1. Define a Token Refill Rate 2. Track Token Consumption 3. Refill Tokens 4. Rate Limit Check How to Implement It with Redis and Java 1. Retrieve current token count and last refill time 2. Refill tokens if necessary and update the bucket …

Read More »

Deel 4: Push Notifications in JavaScript?

Artikel uit Java magazine 3 2021 Yes, you can in 12 steps!   Waar push notificaties tot voor kort nog een privilege waren voor native apps, is dat nu veranderd. Push notificaties kunnen nu direct naar een PWA verstuurd worden: net als bij een native app hoeft de browser hiervoor niet open te zijn, ook niet in de achtergrond.   …

Read More »

Thinking differently about testing

Author: Steve Poole Original post on Foojay: Read More Table of Contents 10x Insights on a different view of quality assurance Bugs cost When’s the best time to find bugs? How should we really test? Changing the status quo Three challenges to overcome We have almost all the pieces Testing is multiI-dimensional Tortoise and the Hare vs the Feather and …

Read More »

Receiving Mails in Java with IMAP or POP3

Author: Jens Knipper Original post on Foojay: Read More Table of Contents Receiving mails Connecting to the Server Processing Mails Sanitizing received MailsUsageTesting I was recently in need to write some small demo project which was receiving and processing mails. There is a lot of documentation for sending mails, but gathering information about the receiving and processing part is less …

Read More »

De algoritmes van het Java Collections Framework

Artikel uit Java magazine 3 – 2021 “Does anyone actually use LinkedList? I wrote it, and I never use it.” Dat tweette Josh Bloch, de schrijver van het Java Collections Framework, ooit [[1]]. Maar waarom niet? En wat is een LinkedList eigenlijk?   Het Java Collections Framework biedt tientallen verschillende datastructuren. Libraries zoals Guava, Eclipse Collections en Vavr voegen daar …

Read More »

Challenge yourself with Application Observability Code Challenges

Author: Cees Bos Original post on Foojay: Read More Table of Contents What are the Application Observability Code Challenges?GoalsWhat do the code challenges look like?Your own stackOnline environment(s)The first challenge How to Get StartedChallenge details Code challenges are a nice way to challenge yourself with programming, resulting in some great challenges like #1brc and the yearly Advent of Code (#AoC). …

Read More »

How JVM handles exceptions

Author: Nataliia Dziubenko Original post on Foojay: Read More Table of Contents Example Exception table Bytecode instructions Try-catch-finally flow Less nice flow Summarized flow It’s interesting to know how the JVM runs bytecode instructions… But do you know what is going on when an exception is thrown? How does the JVM handle the delegation of control? What does it look …

Read More »