Sometimes when creating a type, we want to make sure that all properties are specified, or none of them are. The AllOrNone type below is useful for defining more precise types. type AllOrNone<T extend
- 2026/8/15AllOrNone type in TypeScript
- 2026/8/12The more I get for less, the happier I am
I bought rice crackers called "Kyusuke Senbei"; the big bag was packed with them, and it cost only 400 yen. Thinking about how I make decisions in shopping, I realized that value for money is the most
- 2026/8/11Walking around Kozukue Castle Ruins
A few days ago, I walked around Kozukue Castle Ruins in Kanagawa Prefecture. There were a lot of bamboo and sounds of cicadas. And I think I gave too much blood to mosquitoes. Photos
- 2026/8/9Union-like types in Go
Go does not provide union types at the language level, so we need some other way to represent a union of types. This is the best approach I've found so far. package main import ( "fmt" ) // Use dis
- 2026/8/8How to make Negishio Yakisoba
I don't mind forgetting to cook rice if I have a pack of yakisoba in the fridge. I try to keep some stocked just in case. Ingredients A pack of Maruchan YakisobaA green bell pepper1/3 carrot1/3 onionS
- 2026/8/7How to make Masala Chai
I often choose a cup of masala chai as a drink when eating at an Indian curry restaurant (lassi is also a good choice for me). Let's make it! Ingredients Two spoons of CTC Assam teaA spoon of chai mas
- 2026/8/5Value Objects in Go
A value object is a language-agnostic pattern. So when we apply some sort of pattern to our codebase, we have to consider the characteristic of the language, and what problems the pattern should solve
- 2026/8/4Do it as quickly as possible
For me. Do it as quickly as possible when you find an issue or think of something to do.Consider if you really cannot do it immediately before writing a memo or creating a ticket.Remember that doing t
- 2026/8/2I don't know when to use a pointer or value receiver
Although A Tour of Go mentions when to use a pointer receiver over a value receiver and many people share their opinions, I've been confused about it since I started learning Go. It may includes some