Paul YeoRust + VimWhen setting up my Vim environment for a new language, two necessary configurations I need are auto formatting and jump to definition…1 min read·Oct 30, 2022----
Paul YeoWhy the golang underscore struct field existsChances are if you’ve written some go or delved into a well-maintained go project, you’ve seen structs with an underscore field:1 min read·Jun 6, 2021--2--2
Paul YeoSQL slow query patternsgiven a composite index, make sure the order of your index is in line with your access pattern. you do not want the following2 min read·May 11, 2021----
Paul YeoWhat the hell is PostgreSQL’s Bitmap Heap ScanIf you’ve ever seen something like this and wondered what the hell this means you’re in luck.2 min read·May 10, 2021----
Paul YeoPython3: Given two sequences/iterators create a dictionaryzip() returns an iterator of tupes where the i-th tuple contains the i-th element from each of the argument sequences or iterators.1 min read·Dec 6, 2020----
Paul YeoVim: Jump to definition using GolangUsing tags is a powerful tool to be able to jump to the definition of a function, variable, or class in Vim. Install universal-ctags and…1 min read·Dec 3, 2020----
Paul Yeogo.mod, go.sum 101Most times when writing software, you use other software or as we call them “dependencies.” In golang, we may call that a collection of go…2 min read·Nov 20, 2020----
Paul YeoGolang Channels, Chinese Finger TrapsLet’s take a look at an example from Google I/O talk given by Rob Pike. We see that a channel is used to hold values from various media…2 min read·Nov 19, 2020----
Paul YeoConcurrency in Go: Using a channel to append to slicesAsynchronously wg.Wait(), so that the channel values are processed and appended to appropriate slices without waiting for all workers to…1 min read·Nov 18, 2020--1--1