Youngho Andrew Chaa

Youngho Andrew Chaa @andrewchaa

About: A developer with many curiosities. Love coding for fun and to solve problems

Location:
London
Joined:
Jul 11, 2020

Youngho Andrew Chaa
articles - 18 total

Classic TDD: Less Mocking, More Confidence

Introduction Test-Driven Development (TDD) is a powerful practice, but it's easy to get bogged...

Learn More 0 0Apr 16

Set up a new Mac

I bought a new MacBook, as I thought the new US tariff would increase the price of Apple products....

Learn More 0 0Apr 14

Python `try` Blocks: A Breath of Fresh Air for Variable Scope (Unlike Java & C#!)

Python's try...except error handling is fantastic for writing robust code. But beyond just catching...

Learn More 0 0Mar 10

Solving the Jest Native Module Error in a React Native Expo Project

While working on a React Native Expo project, I encountered a perplexing error message during my...

Learn More 3 0Jul 28 '24

Mocking navigator.clipboard.writeText in Jest

If you're working on a web application that interacts with the clipboard API, you may need to write...

Learn More 3 0Jun 10 '24

Mocking ES6 Class Instances with Jest

Jest can be used to mock ES6 classes. ES6 classes are essentially constructor functions with some...

Learn More 4 0May 3 '24

Handling Safety Settings in Vertex AI Gemini's `generateContent`

When working with Vertex AI's generateContent functionality, you may encounter situations where...

Learn More 4 0Mar 26 '24

Handle Variables and Dynamic Values with `jest.fn()`

When it comes to testing React applications with Jest, mocking dependencies is a common practice to...

Learn More 5 0Mar 14 '24

Simplifying API Mocking with Mock Service Worker (msw)

Often we need to test our code's interactions with APIs. However, relying on live APIs can be...

Learn More 2 0Mar 12 '24

Using Regex Search for MongoDB Queries

As a developer, I often find myself in situations where I need to perform case-insensitive searches...

Learn More 0 0Mar 11 '24

Handy `git` aliases I use day to day

These aliases provide shortcuts for Git commands I commonly use, making your workflow faster and...

Learn More 1 0Mar 8 '24

Fixing Google Cloud CLI Error: "ModuleNotFoundError: No module named 'imp'"

I updated the python version recently and it broke Google Cloud CLI (gcloud) on my machine Upon...

Learn More 14 2Mar 7 '24

Embrace Records for Simple Data Transfer Objects in Java

For years, classes have been the go-to choice for defining data structures in Java and C#. But when...

Learn More 2 0Feb 21 '24

📱Solving React Native Challenges: A Recent Android App Issue & Its Resolution 🛠️

I wanted to share a recent challenge I encountered while working on a mobile app for Android devices,...

Learn More 0 0Dec 19 '23

Execution of the order issue with jest Mock

Recently, in my react native app, I was testing an icon button in the heading if it navigate the...

Learn More 0 0Aug 9 '23

Concatenate multiple React components

I was working on a custom CheckBox component that displays a label and an error message. The...

Learn More 0 0Jun 27 '23

How to Fix the "node: command not found" Error When Building a React Native App in Xcode

If you're building a React Native app in Xcode and you get the error "node: command not found", don't...

Learn More 5 0Apr 26 '23

Mocking Cosmos Container method for unit testing

In my unit/component tests, I often assert that all the correct values are passed into Cosmos...

Learn More 12 2Jul 11 '20