Tag Archives: command

(JavaScript) JavaScript Command Pattern

The Command pattern aims to encapsulate method invocation, requests or operations into a single object and gives you the ability to both parameterize and pass method calls around that can be executed at your discretion. In addition, it enables you to decouple objects invoking the action from the objects which implement them, giving you a [...]

Posted in JavaScript | Also tagged , , , , | Leave a comment

Console input and output in Perl

These snippets demonstrate console input and output in Perl. The first snippet simply asks for input and outputs it back to you and the second snippet interprets commands and displays the results.

Posted in Perl | Also tagged , , , , , , | Leave a comment