The Adapter Pattern in Python

Interface mismatches are one of the banes of code reuse. You want to integrate component A and component B into your program, but component A expects a method called half_empty() while component B only has a method called half_full(). The Gang of Four (GoF) Adapter pattern is used to convert the interface of an object […]

Differences in Japanese and Western website aesthetics

One of my New Year's resolutions is to create a Japanese-language website. Researching designs for the site, one thing that strikes me is the different design tastes of Japanese and Westerners. The current fashion for design on Western websites is a clean and clutter-free look, while Japanese sites tend to prefer the "energetic" look. As […]