Go Concurrency Under the Hood - Goroutines
When you first start with Go from the Node.js world, all the cool async I/O with an event loop seems to be missing. You just write this "I/O blocking" code exactly like a synchronous procedure call: q
Write what I learn
When you first start with Go from the Node.js world, all the cool async I/O with an event loop seems to be missing. You just write this "I/O blocking" code exactly like a synchronous procedure call: q
Let’s explore another Go unique design: Embedding. This post is for first type of embedding: struct embedding, where one struct type embeds another struct type. Coming from an object-oriented programming (OOP) language like Java or C++, the way Go ha...
Here are some effective prompts you can use with Claude Code following the Explore → Plan → Code flow described in the Anthropic best practices: Explore → Plan → Code 1️⃣ Explore The goal is to build context before diving into coding. Explore: pleas...
Lex Fridman Interview with the Cursor https://www.youtube.com/watch?v=oFfVt3S51T4 ☁️ AWS Infrastructure Cursor Relies On The team mentions their backend is built on AWS, leveraging its managed services for heavy compute and storage needs. They use:...
First AI Gen-ed post while chatting with GPT to understand these basic concepts of this space. In large language models (LLMs), tokens and parameters are fundamental concepts that define how the model processes and generates text. Here's a brief expl...
When using GORM to deal with mapping between DB table’s fields to their corresponding struct’s properties, most of the time we can rely on its built-in conventions to just define a simple model struct. For these nullable fields with common types, int...
There are numerous discussion and debates around different testing strategies, and it still feels hard to find consensus on what makes unit test. That makes software teams confused and somehow start applying TDD for the sake of it. They usually focus...
The core requirement of this data structure: The cache serves as a key-value store and has some capacity We can put items to the cache until it reaches the capacity When capacity is reached, it will evict the "least used" item based on internal or...
Go JSON decoding is bit different than others again. It does not accept a string and return an object like JS or Python. Actually it does not return anything, we need to pass the pointer of a struct, and decode into it. This allows user to control th...