The following code shows the Pimp language output for some specific input, showing some of the benefits from using such a nice language.
an Account:owner, amount
is positive?
| //FightCode can only understand your robot | |
| //if its class is called Robot | |
| var Robot = function(robot) { | |
| }; | |
| Robot.prototype.onIdle = function(ev) { | |
| var robot = ev.robot; | |
| robot.clone(); |
| class RegisterMail < ActionMailer::Base | |
| def send_mail(client_email, username) | |
| subject "Someone have signed up." | |
| recipients "#{client_email}" | |
| from '[email protected]' | |
| charset "utf-8" | |
| content_type 'text/html' | |
| body "#{username}" + "have been signed up." | |
| end | |
| end |