ymmr.dev
Articles About
  • 2026/8/15
    AllOrNone type in TypeScript's thumbnail
    AllOrNone type in TypeScript
    • TypeScript

    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/12
    The more I get for less, the happier I am's thumbnail
    The more I get for less, the happier I am
    • Diary

    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/11
    Walking around Kozukue Castle Ruins's thumbnail
    Walking around Kozukue Castle Ruins
    • Diary

    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/9
    Union-like types in Go's thumbnail
    Union-like types in Go
    • 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/8
    How to make Negishio Yakisoba's thumbnail
    How to make Negishio Yakisoba
    • Cooking

    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/7
    How to make Masala Chai's thumbnail
    How to make Masala Chai
    • Cooking

    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/5
    Value Objects in Go's thumbnail
    Value Objects in Go
    • 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/4
    Do it as quickly as possible's thumbnail
    Do it as quickly as possible
    • Diary

    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/2
    I don't know when to use a pointer or value receiver's thumbnail
    I don't know when to use a pointer or value receiver
    • Go

    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

  • 1
  • 2
  • 3