Audrey Li

Learning JavaScript, Swift, and more...

Singles Day

Feature Image
As Beijing entering into middle night, the mostly amazing shopping spray day closes. 91.2 Billion RMB! 143 Billion USD of sales in a single day! It's a new chapter of history written with excitment, tears, pride, and happiness. It's a celebration and demonstration of a rising economy. It's a story of ups and downs, and mostly a story of wonders.
Read more »

Relocating My Blog from Wordpress to Jekyll

A wise lady recently told me to write, always. I am not good at writing, but I am going to try anyway.


In this post, I am going to use different markup tags and format to show what styles are built in this new Jekyll blog. My last blog entry was on July 18th, which was about 2 months ago. In the past 2 months, I’ve spent some time trying to learn some front-end development skills and had two client projects. Although I love iOS, web development comes more handy and useful in the day-to-day life. And I feel fortunate that I’ll be attending Makersquare in early November for an intensive 3 months’ training program.

Read more »

A Design Pattern Story in Swift – Chapter 21: Interpretor

Feature Image

An interpreter translate our plain language expression into information and find out what we need. Here we have a Unit Interpretor (Conversion Context) who does very diverse interpretation jobs.

Read more »

A Design Pattern Story in Swift – Chapter 20: Mediator

Feature Image
Artists paint, musicians compose, different jobs for different pros. It’s not easy for a person to find a pro directly to do a job without some sort of agent in the middle, and even harder for a pro to find a client among all the people.
Read more »

A Design Pattern Story in Swift – Chapter 19: Flyweight

Feature Image
It’s hard to get things done without a system to share and prioritize. There are thousands of soldiers in the army, but only few of them are commanders. How can we quickly go through all the soldiers to find the commanders, their ranks, and how much power the army has together?
Read more »

A Design Pattern Story in Swift – Chapter 18: Visitor

Feature Image
It was Confucius who said isn’t it great when friends visit from distant places. 子曰, “有朋自远方来,不亦乐乎”
Read more »

A Design Pattern Story in Swift – Chapter 17: Memento

Feature Image
A good snapshot stops a beautiful moment from running away. At some point, we’ll press the restore button and relive that moment again.
Read more »

A Design Pattern Story in Swift – Chapter 16: Object Pool

Feature Image
There is a MagicHouse where people can borrow magic objects. The house has a pool which manages the magic objects.
Read more »

A Design Pattern Story in Swift – Chapter 15: Bridge

Feature Image
An IOT Bridge can handle different outgoing and incoming messages for the connected devices, regardless of the message format and the device types.
Read more »

A Design Pattern Story in Swift – Chapter 14: Chain Of Responsibility

Feature Image
There is a dancing festival every year. Gods, Fairies and some other VIPs are in the guest list. There are also some unwelecomed walk-ins. Each of the guest type would have different host to receive and host them, except the walk-ins would have no hosts.
Read more »

A Design Pattern Story in Swift – Chapter 13: Builder

Feature Image
The process of making a fragrance is quite complex, that’s why we have a fragrance builder who will help config the default ingredient.
Read more »

A Design Pattern Story in Swift – Chapter 12: Proxy

Feature Image
Life is too short to do everything by ourselves, so we often let others do things for us. When the good people of the village need their own cat pets, they go to different proxies. The proxies would then do some god-knows-what kind of trick and get the villagers some cats.
Read more »