Sign in

What you do not do can often be more important than that you do.

“Why do you always leave the towel here?” I heard myself complaining to one of my wife messes. “Please always hang it here in the bathroom.” I doubled down as I picked up the moist towel from the bed and walk over to hang it on the hanger inside the bathroom.

This situation might sound all too familiar to many of you, especially perfectionists. You easily feel exhausted faster than people around you because you spend a lot of time thinking, perfecting everything, more often than not, on your own and by yourself.

However, when you insist on doing everything…


Taming the internal evil of perfectionism and being present

I was born with a cursed trait of perfectionism. I tend to cling onto permanence and fixate on idealism. Everything I touch or see must be orderly, expected, and rid of entropy. I would easily get rattled by uncertainty and chaos, no matter how small they are. I was the poster child of rigor.

My experience during late childhood to teenage years hadn’t been helpful. At the ages where most teens discover themselves and have the fun of their lives, caught between a struggling working middle class family of Chinese descendants, I was put under pressure to fit into the…


Get your writing out of the Draft Limbo

No, I’m not going to write about correct grammars or techniques like picking splash images or breaking up your long trains of text into headlined sections. I’m talking about choosing to write about something and Actually Nailing It™ as fast as you can.

Most of the more successful articles I wrote on Medium were written in one sitting. This isn’t because they were more fun to read, correct, or precise. It is simply because they got published and survived the Draft Limbo.

When you stop your writing half-way, save it to draft, and go do something else, it is much…


They aren’t what you think they are.

Photo by Jonathan Cosens Photography on Unsplash

Today, after some hesitation, I’ve decided to pull my post off a popular tech publication.

The post was about learning to write a parser in Rust, and I started working on it alongside my interview, which required a presentation on a technical topic. It was one of the longest, most time-consuming post I’ve ever worked on since my heyday writing on Medium (like this post).

On the first day I posted, I got to 25 claps. That wasn’t bad at all considering the topics was Rust and parser, which are not wildly popular. Normally, when I publish a post, I…


If Javascript, an old language with so many flaws, could evolve like it did, Python could learn from it and step out of its ivory tower.

This isn’t a targeted attack on Python. It is a constructive opinion from a programmer who had started his career and spent years working with it. So brace yourself — Python is evolving slowly and could use the level of improvement Javascript has had.

Javascript has come a long way since being the most hated but widely-used scripting language of the web that was created in less than a month. With ES6 and the sister language Typescript (that arguably helped propelled JS ecosystem to a new height), Javascript is no longer an ugly language to be looked down to. …


Learning Rust from first-principle, in a meme-ful play pen.

“Rust is too hard to learn,” You whined.
“Maybe because you’re a toddler?”

🧸 Ownership

💡 Ownership IS the only big concept in Rust. It is not unique, and C++ has it too. Understand this well.

Repeat after me, “Thou shall be the only one owning a toy.”

That’s it. Alice has a toy, then Bob snatches it from Alice. Alice no longer has the toy. Bob runs away and gets bullied by Tim, looting the toy. Then Bob has no toy. Tim has the toy.

If you later asked Alice for the toy, she would just cry and slap you on…


On a Friday morning, slacking, you are thinking about the new Netflix shows to catch. Your boss comes over, asks you to write a parser for a Systemd unit file. She needs it by Monday.


What make integer types like they are and why do we have so many of them?

For most developers, wielding integers can seem like magic. It takes a 100,000-ft or above perspective to be a productive coder today. But have you ever wondered about the different types of integers? Why can’t you just write code with the maximum range integers like 64-bit integer type? Every now and then you also stumble on a cryptic type error when trying to cast a number type to another. This article aims to explain to you what’s lying beneath these unsuspecting number types.

Instruction Set Architecture

It is helpful to at least understand the computer at the Instruction Set Architecture layer. An Instruction…


Busting the myth of Rust’s learning curve.

I know the title is going against what most of you heard about Rust. Rust, despite being known as the most loved programming language, is also known for its steep learning curve for new developers (Many, including myself, had been curious as to why a cryptic language like Rust can at the same time be most loved by its users). Talking about boosting productivity with Rust, let alone a strongly-typed language, seems like a stretch. But hear me out…

High-level programming languages, since the dawn of C and COBOL, all were created with a similar goal — programmer’s productivity above…


Nerd out to the cool crowd without looking like one.

A one-arm T-Rex could have counted in binary.

We all know computers dream in binary numbers, or basically 0’s and 1’s. How many can actually remember how to read and write them out anyway? Here is a nifty trick to do that quickly, and shall I say, impress the cool crowd in the next party without boring them.

We count things in tens because we only had ten fingers (still do). We start off with 0 for nothing, then 1, 2, 3, … , up to 9, putting up one finger for each count. Then, because we ran out of fingers, we start anew by resetting the digit…

pancy

Technologist, educator, and privacy advocate. Crypto enthusiast and Rust and Ocaml advocate.

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