Sponsored links
JavaScript/TypeScript

Make an Event Listener test simpler by Promise

A unit test should test only one thing but there might be some cases that a test checks multiple things because those va...
JavaScript/TypeScript

OR Operator causes a misunderstanding

OR operator "||" is useful to set a default value if the target variable is not set but it is easy to make a mistake eve...
Dart and Flutter

Flutter Riverpod and ListView

I didn't know how to use a Riverpod provider for ListView, so I looked into it and implemented it. If you are looking fo...
Tips

View screen of broken Samsung Android on Windows 10 PC

I use an android smartphone. The display was suddenly broken. Firstly, right 1/3 of the screen doesn't recognize the tou...
Dart and Flutter

Waiting for another flutter command to release the startup lock…

I opened VSCode and tried to start a mobile emulator but the device list didn't appear on the command palette. I ran Run...
JavaScript/TypeScript

How to write annoying unit tests

A unit test should be clear enough. To make it concise, the tests are refactored. It looks good at first but some of them trouble us as the software grows. Let's understand those ways to cause problems.
JavaScript/TypeScript

TypeScript How to refactor a function to use named parameters

TypeScript and JavasScript don't offer named parameters. How can we do a similar thing? Is there are any to refactor the code to apply the technique?
Dart and Flutter

Flutter Scrolling while dragging an item

Drag and drop are often used when we want to move an item. If the list is long it's necessary to be scrollable while dra...
Dart and Flutter

Flutter How to write unit test for thrown exception

I didn't know how to write unit test for a function that throws an exception. Therefore. I looked into the solution and ...
Dart and Flutter

Dart Compare two objects – how to deep equal

This article explains how to compare two objects in Dart. How can we implement if we want to do deep equal? What is the good way to override hashCode and == operator?
Sponsored links