Are you also tired of all those monotonous and boring source code you read or write every day? No new challenges, always the same constructs and expression, must that really be so?
Fortunately do you use a programming language that comes with a wide range of opportunities to solve identical tasks in various ways. And here is a simple tip how you can bring variety in your source code with a single expression. Just use the whole range of valid new-expressions and donate your colleagues, customers and other persons with that varied and exciting christmas source code. A simple new MyClass () recognizes and understands finally everyone on the first glance
<?php
new self;
new static;
new clazz;
new self::$class;
new static::$class;
new self::${'class'};
new static::${'class'};
new self::$$class;
new static::$$class
new self::$${'class'};
new static::$${'class'};
new $class;
new $$class;
new ${'class'};
new $${'class'};
new $obj->class;
new $obj->${'name'};
new $obj->$${'name'};
new $obj->{'class'};
new $obj->$$class;
new php_ast_Parser;
new php\ast\Clazz;
new \php\ast\Clazz;
?>
You should also vary the embedded expression which increases the number of possible solutions
In this sense, a lot of fun and a nice weekend...