Still remember the Interpreter example? No matter what you type
is a number or an expression; it can calculate the result just
by the clause” new
GeneralExpression(inputText.text).interpret()” Archive for the
‘Design Patterns’ Category In web programming, we often use
regular expression for validating the e-mail address or phone
number. Regular expression is a powerful tool in validating the
specific format field. However, the interpretation of regular
expression is not an easy job. In the GoF’s design patterns,
there is a corresponding pattern named Interpreter. Have you
ever use HTTP-proxy or some other proxy? When you’re in a
relatively isolated environment, such as the LAN in your
company, maybe you’ll need it. Actually, when I was an intern in
an IT company, I always used the HTTP-proxy to login the MSN and
surf on the internet. When I used MSN or surf on the net, I
can’t feel the existence of the proxy. And this is the role of a
proxy. And this can be express as follows. Yesterday, when I was
on my way