Open in app

Sign In

Write

Sign In

Oliver Nguyen
Oliver Nguyen

79 Followers

Home

About

Published in Better Programming

·Feb 22

Working With Stacked PRs using git-branchless, git-autofixup, and git-pr

Work with stacked PRs easily within the git world — I usually work with stacked PRs. It is a great way to organize my work. I was using sapling, and it works really well. I can view stacked commits with sl smart logs, edit many files, make changes to many commits at the same time with sl absorb, have the…

Programming

7 min read

Working With Stacked PRs using git-branchless, git-autofixup, and git-pr
Working With Stacked PRs using git-branchless, git-autofixup, and git-pr
Programming

7 min read


Published in Better Programming

·Jan 4

Making “goconvey” Work With “gomega” Assertion

Simplify writing tests — At work, we used gomega for testing. It worked well until one day, it became too verbose and goconvey became a better fit. To prevent the repository from using two different sets of assertion functions, I decided to write an adapter to make goconvey work with gomega assertion functions. gomega gomega…

Programming

7 min read

Making “goconvey” Work With “gomega” Assertion
Making “goconvey” Work With “gomega” Assertion
Programming

7 min read


Dec 21, 2022

Make direnv work with sapling

In the last post, I shared my experience with Sapling, Meta’s new Git client. It requires some workaround with direnv. This post explains the change in detail. At work, we are using direnv for quickly managing environment variables on our repository. When we cd into a directory, or a subtree…

Git

3 min read

Git

3 min read


Published in Better Programming

·Dec 16, 2022

My First Impressions of Sapling — Meta’s New Git Client

Experimenting with stacked pull requests — Sapling is a new source control system developed by Meta. Recently, it has gained the ability to work with GitHub. I’m curious about how it works, so I decided to try it and ended up using it daily on my company’s repositories. …

Programming

6 min read

My First Impressions of Sapling — Meta’s New Git Client
My First Impressions of Sapling — Meta’s New Git Client
Programming

6 min read


Published in Better Programming

·Sep 21, 2022

Create an Emoji Ball-drop Game With Matter.js

Connect the dots — Sometimes, stepping outside of your comfort zone and taking on some side projects is a great way to improve as a developer. The more skills you acquire, the more you can do. And you may need them someday in the future. In this article, I’ll show you how to create…

JavaScript

4 min read

Create an Emoji Ball-drop Game With Matter.js
Create an Emoji Ball-drop Game With Matter.js
JavaScript

4 min read


Published in Better Programming

·Sep 16, 2022

7 New ES2022 JavaScript Features You Might Have Missed

Old vs. new JavaScript — These features have been released for a while. Let’s check them out! 1. Private fields

JavaScript

4 min read

7 New ES2022 JavaScript Features You Might Have Missed
7 New ES2022 JavaScript Features You Might Have Missed
JavaScript

4 min read


Published in Better Programming

·Mar 2, 2022

Validate Zero Enum Value in Protocol Buffer

How to validate that a Protobuf message does not contain enum fields with zero value? Turns out that this isn’t supported directly by Protobuf! We need to look into how the package protojson is implemented. — More and more companies are adopting gRPC with Protobuf for communication between internal services. It has the benefits of high performance, supporting multiple programming languages, and being backed by Google with a great ecosystem around.

Golang

4 min read

Validate Zero Enum Value in Protocol Buffer
Validate Zero Enum Value in Protocol Buffer
Golang

4 min read


Feb 22, 2022

Eventual consistency and cache

What is it? Eventual consistency is a fancy name of doing something and only expecting the changed state after a while. And there is a guarantee that you will eventually get the expected state. Hence, consistency. But that won’t work well with caching. …

Eventual Consistency

2 min read

Eventual Consistency

2 min read


Published in Geek Culture

·Feb 3, 2021

Front-End Development Without node_modules

Once upon a time, we could simply put an HTML and a script file into an FTP server, quickly have a working website and call it a day. Today, we have to jump through many hoops just to get the right things in the right places. Suppose Alice wants to…

JavaScript

4 min read

Front-End Development Without node_modules
Front-End Development Without node_modules
JavaScript

4 min read


Published in The Startup

·Jan 8, 2021

µjson — A Minimal JSON Parser and Transformer in Go

µjson is a minimal JSON parser and transformer that works on unstructured (and trusted) JSON. It works by parsing input and calling the given callback function when encountering each item. Motivation Sometimes we just want to make some minimal changes to a JSON document or do some generic transformations without fully…

Golang

5 min read

Golang

5 min read

Oliver Nguyen

Oliver Nguyen

79 Followers

A software developer sharing about JavaScript and Go. Check my extension OneSidebar.com for navigating GitHub ⎯ olivernguyen.io

Following
  • Darrin Atkins

    Darrin Atkins

  • Francesco D'Alessio

    Francesco D'Alessio

  • Roy Derks (@gethackteam)

    Roy Derks (@gethackteam)

  • Trey Huffine

    Trey Huffine

  • Goodnews wonder

    Goodnews wonder

See all (48)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech