Skip to content

Page 10

Tech

BP8 - Visitor - Learn Design Pattern From Simple Things

Have you had a chance to watch The Spy Gone North? The spy infiltrated North Korea's secret locations, and collected its secrets effectively by applying the Visitor Pattern!

#Coding
Tech

BP7 - Template Method - Learn Design Pattern From Simple Things

Porsche and Lamborghini are the children of Volkswagen. Their manufacturing process uses the same structure because they both implement the Volkswagen Template Method.

#Coding
Tech

BP6 - State - Learn Design Pattern From Simple Things

Have you ever thought about the ATM logic? How is ATM logic organized to cover all cases without any misses? Do you feel confused when handling many operations on many states?

#Coding
Tech

BP5 - Observer - Learn Design Pattern From Simple Things

Some students in a class are attentive, but others are easily distracted. The teacher is indifferent to them; for her, they are all observers and she just performs her duty.

#Coding
Life

Bach Ma - From Conquering the Fear to Conquering the Mountain

Craving excitement beyond the tedious routine of eating, sleeping, and sipping coffee on weekends, we decided to embark on an exhilarating journey to Bach Ma - the perfect destination to beat the boredom.

#Travel
Tech

BP4 - Handling Chain - Learn Design Pattern From Simple Things

As a laid-off employee, you prepare for a series of top companies, and then attempt to apply one by one (only apply the next if the current is rejected) until one hires you.

#Coding
Tech

BP3 - Command - Learn Design Pattern From Simple Things

As an army commander, you have to plan all the tasks for the soldiers, so that they can execute them. This process is called command.

#Coding
Tech

SP3 - Tree - Learn Design Pattern From Simple Things

You need to store the leaves hierarchically, sometimes you will count the leaves. Tree will be a suitable structure to facilitate leaf counting.

#Coding
Tech

CP5 - Singleton - Learn Design Pattern From Simple Things

Apply singleton to maintain a single phone line between the two sides indefinitely instead of repeatedly establishing and disconnecting multiple phone lines for efficiency.

#Coding
You found a tiny easter egg. Keep poking around!