Sponsored links
Golang

Golang How/When to use sync.Cond

When should sync.Cond be used instead of channel?Golang provides easy ways for asynchronous processing. As you know, cha...
Golang

Golang Set channel direction to prevent usage error

Do you often use a channel? Have you ever considered the channel direction? To use a channel, someone sends data to the ...
JavaScript/TypeScript

How to implement efficient Least Recently Used cache (LRU) in TypeScript

This post is the output of this book.If you want to check all the code, go to my repository.What is cache?Cache is a kin...
Golang

Golang Check variable order in Struct if you must reduce memory usage

A recent computer has enough resources and thus we might not have the opportunity to reduce memory usage. However, it's ...
Golang

Golang Dynamic access to a property in a struct

I needed dynamic access to all properties in a struct in unit tests. In my case, the struct has only boolean properties....
Golang

Golang Is Compiling Regex In Loop Really Expensive?

A regex is a useful feature to check whether a string contains a special format. If we have many formats, we might want ...
Dart and Flutter

Dart: Trie Data Structure: The Key to Fast and Effective Search

StructureTrie (same pronunciation as "try") is a tree-like data structure. It has the following looks. Let's assume that...
Python

Python Check performance by using timeit

We should somehow check the performance if we want to compare some implementations to know a faster one. It can be done ...
Golang

Golang Implement Debounce logic in different ways

There are multiple ways to implement Debounce Logic in Golang. I want to compare the differences and check which one is ...
Golang

Golang How to implement Debounce and how to use time.Timer properly

timer.Timer is simple but it's not as straightforward to use it as it looks.What can we do with time.Timer?There are two...
Sponsored links