Hi, I am Mofei!
...

Upgrading My Blog: From PHP to Node.js, Growing Step by Step

Rebuilding the blog with Node.js has been challenging yet rewarding, with many bugs but unwavering enthusiasm and a drive to keep improving.

July 9, 2013 at 01:02 PM

I moved the blog from PHP to Node.js. It was the biggest change I had made to it since the beginning.

The reason was simple enough: I was never really comfortable with PHP, but JavaScript was what I used every day. Node felt like the same language, just in a different place. I had been putting the switch off for about half a year, then decided to use the two weeks before the D2 Developer Conference to actually finish it. Good or bad, I needed it to be usable.

Working through Node and MongoDB taught me things I had not expected. I started to understand how routing actually works, and HTTP itself — 200, 301, 304, 403, 404 — started to feel like a real working vocabulary instead of just status codes I had memorized. That part felt good. At the very least, I added a few more things I actually understood.

There are still bugs. Some pages are rough. But that is where it stands right now, and I would rather put something real here than keep it in half-finished state indefinitely.

I had so many questions while writing this—what’s your take?

Hi, I am Mofei

Coding, and living with intention.

Subscribe
© 2012–2026 Mofei·Privacy·Terms
Life compiled in code