Sign in

Full stack problem solver with a passion for simplicity. Personal site: http://zurassic.com

This post is part of “JavaScript Tips” series, mostly based on my learnings and observations of code review. They all come with real world examples (calling real API instead of faking functions) and working CodeSandbox demo.

I have seen a lot of cases in code review that multiple promises is not well written in JavaScript or TypeScript. Depend on your use case, it’s relatively simple as below.

Run Promises in Sequence — use await/async with for loop

If you need to run promises in sequence, one after another, you can use for loop, but you’ll have to use await, so that each iteration will actually wait till promise is resolved…


没想到在一次下山的过程中我体会到了心流...

这里是任 我行系列第1篇.

最近去了趟Kenneth Hahn Trail, 感觉还不错, 里面有山有水有乌龟, 还有可以鸟瞰全LA的view point.

它其实是在一个很大的公园里面, 那个公园就叫 Kenneth Hahn State Recreation Area. 来LA这么久, 没想到在City中间还有这么一大块公园, 里面有山有水的.


Based my experience with Nginx and PCI compliance scan, there are few things you need to setup to make sure it passes the PCI compliance:

  1. Disable TLSv1 (this is not…

Recently my company offered some stipend to enhance the work from home experience and I decided to buy a 49" monitor to increase the productivity. When it arrived, I realized I could not turn on native 5120x1440 resolution by default. I tried almost every link on Google results: Reddit, Github, MacRumors, Apple Support, Amazon Reviews (even for different monitors) etc and I finally found a working solution that works for both AMD GPU 15" MacBook Pro and Intel HD Graphics 615 GPU 12" MacBook.

I tried almost every link on Google results

My Hardware/OS

  • 15" MacBook Pro 2017 with Radeon Pro 560 Video Card + macOS Catalina version 10.15.7
  • 12"…


This post is part of “JavaScript Tips” series, mostly based on my learnings and observations of code review. They all come with real world examples (calling real API instead of faking functions) and working CodeSandbox demo.

Sometimes, you want to display a list of numbers, like a list of items with price in the shopping receipt.

The requirement is this:

  • If the number is integer, display it without decimals
  • If the number is not an integer, display it with only 1 decimal

So with a list of numbers like [1, 1.2, 7.1, 4, 8.24] , it should display like this:


Becoming a Lead Engineer requires a wide range of skills and responsibilities. Here’s some things to help you with the transition.

I’ve worked as a full-stack engineer for over ten years. In that time, I’ve worked on a variety of different things, from building custom USB drivers for AEM to leading a frontend team in ADP.

But this experience, while extremely useful, could nonetheless not prepare me for my current role: Leading a cross-functional team in the build of a venture from zero to launch. This role involved a year of development time at the BCG Digital Ventures office in Manhattan Beach in California before a three-week knowledge transition period in Singapore.

At BCGDV, we partner with industry-defining, global companies to…

Andrew Zheng

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store