All Posts Page 3

2025

Frontend

Let's Write Colors with CSS HSL! (And an Even Better Alternative)

In web development, while traditional HEX and RGB color notations are widely used, they suffer from poor readability and a lack of intuition, and their expressiveness is limited in wide-gamut color spaces like P3. HSL (Hue, Saturation, Lightness) offers a more intuitive way to define colors, making it much easier for developers to understand and tweak them. By describing colors across three dimensions—hue, saturation, and lightness—HSL makes color adjustments far more human-friendly. This is especially true in design systems, where HSL does a much better job representing brightness variations across a color palette.

2024

Career Retrospect

8. Increasing Your Luck Surface Area

Still, seeing that others have it harder or worse than ourselves doesn't seem to make us feel any better. Many people's mindset stops right here: whenever they see someone doing better or being more successful, they start blaming their humble origins or bad luck, lying flat early on, and attributing all their misfortunes to the government and external circumstances. My experience over the past few years has taught me that while luck is outside our control, there are things we can do to increase the likelihood of good luck occurring.