Rust Testing: A Short Guide to Mocking

So you need to mock something in Rust? There are a few different approaches you can take, and the best one depends on your needs. You can either roll your own mocking implementation or use an existing crate.

Onboarding Home Assistant: Solving Smart Switch Issues

I recently had problems with smart dimmer switches that led me down a path to Home Assistant. What started as a simple switch replacement ended up being a full automation setup.

Serverless in action. Part 4: CI/CD

Part 0: Intro, Part 1: Auth and Part 2: CRUD and Part 3: Notification

Introduction

In this part, we will create a CI/CD process using AWS tools. There are a few AWS services for that:

Is Java enum underused?

Introduction

An enum type is a special data type that holds a list of constants. An enum type variable must be equal to one of those constants. Java Enum is a type of class that is defined with the enum keyword and was introduced in Java 5. As mentioned, it’s used to define a list of constants, but is not limited to that and can also contain methods and fields.

More specific information could be found in Java enum’s documentation.

Serverless in action. Part 3: Notification

Part 0: Intro, Part 1: Auth and Part 2: CRUD

Introduction

Here we will implement the last, but not least part of our application - notifying customers that they should come to the place they are waiting for: It has two lambda functions:

  • Producer - sends waitees that should be notified into SQS.
  • Consumer - processes SQS and sends notifications to the waitees.