Remove s nullables-training
article thumbnail

How Are Nullables Different From Mocks?

James Shore

One of the most common questions I get about Nullables is, “How is that any different than a mock?” The short answer is that Nullables result in sociable, state-based tests, and mocks (and spies) result in solitary, interaction-based tests. This has two major benefits: Nullables catch bugs that mocks don’t. Let’s dig deeper.

Testing 115
article thumbnail

AI Chronicles #2: Faster Builds

James Shore

Young and I build an AI-powered role-playing game using React, Spring Boot, and Nullables. Testing Without Mocks” Training Jun 6 2023 I’m offering live online training for Nullables in four 3-hour sessions from June 6th to 15th. For private training, contact me directly. Watch us live every Monday! Register here.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

The “suspend + receivers” style in Kotlin

Xebia

Functional programming patterns inspire many concepts, but the specific implementation differs from Haskell’s or Scala’s typical way of doing things (monads, IO , and transformers). Effects Before diving into the technical portion, let’s discuss what we aim to achieve when talking about effects.

article thumbnail

Arrow for Kotlin releases stable 1.2.0 version

Xebia

This release also celebrates Arrow’s 10th birthday, marking the first commit from one half of Arrow’s origin libraries! Let’s review each of them in detail. Gathering input from the community is one of our primary goals with the 1.2.x The changes from the 1.2.0-RC bind() + two().bind()

article thumbnail

7 common mistakes in Kotlin

Xebia

And even now I have some experience, every once in a while, when conducting a Kotlin training or when on a Kotlin assignment, I encounter situations where I simply cannot explain why the code doesn’t work the way I intended. Type Safety The next pitfall I discovered during a basic Kotlin training that I was conducting. I sure did!

article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

The patterns combine sociable , state-based tests with a novel infrastructure technique called “ Nullables.” At first glance, Nullables look like test doubles, but they're actually production code with an “off” switch. For private training, contact me directly. But it’s not without tradeoffs of its own. Register here.

Testing 138
article thumbnail

Liquibase

InnovationM

Liquibase suggests organizing these lines by major interpretation but working in a multi-inventor terrain, I would recommend skipping interpretation from train names to avoid conflicts arising to inventors choosing the same performances.