Codelish – A Programmer’s Life Language

By  on  

Programming can be a dull, boring job when you're doing the same thing every day. I decided to express my feelings toward work and customers today by using programming instead of the usual shaking of the head and questioning how the person even gets up in the morning. The following are a few of my thoughts today.

while($customer->talks($gibberish))
{
    $i->read($digg);
    $about = 'Not working here any more';
    $i->think($about);
}

$sanity = mysql_query('SELECT reason_to_live FROM head WHERE today = 'Monday' LIMIT 1000',$conn) or die('A slow, agonizing death.');

As your can see from the previous example, Codelish can cross over into different languages as well. It doesn't stop here though! Just like English has verbs, pronouns, and adjectives, Codelish has structure too.

class programmer
{

    var $location;
    var $status;
    var $salary;
    var $reason_to_live;

    function programmer($location,$status)
    {
         $this->location = $location;
         $this->status = $status;
         $this->salary = 'very little';
    }

    function get($var_to_return);
    {
         return $this->{$var_to_return};
    }

    function wants()
    {
         return 'Too bad! ';
    }

    function set($reason)
    {
         $this->reason_to_live = $reason;
    }

}

$overworked_programmer = new programmer('Work','Frustrated');
$response += $overworked_programmer->wants($higher_pay);
$response += $overworked_programmer->wants($appreciation);
$response += $overworked_programmer->wants($less_hours);
$response += $overworked_programmer->wants($challenge);
$response += $overworked_programmer->wants($promotion);

$threshold = 2;
if(substr_count($response,'bad') > $threshold) { $programmer->__destruct(); }

As you can see, Codelish is a great language and very true to life! I believe every programming student should be taught this language!

Recent Features

  • By
    9 Mind-Blowing WebGL Demos

    As much as developers now loathe Flash, we're still playing a bit of catch up to natively duplicate the animation capabilities that Adobe's old technology provided us.  Of course we have canvas, an awesome technology, one which I highlighted 9 mind-blowing demos.  Another technology available...

  • By
    Responsive Images: The Ultimate Guide

    Chances are that any Web designers using our Ghostlab browser testing app, which allows seamless testing across all devices simultaneously, will have worked with responsive design in some shape or form. And as today's websites and devices become ever more varied, a plethora of responsive images...

Incredible Demos

  • By
    Create a Sexy Persistent Header with Opacity Using MooTools or jQuery

    I've been working with the Magento eCommerce solution a lot lately and I've taken a liking to a technique they use with the top bar within their administrative control panel. When the user scrolls below a specified threshold, the top bar becomes attached to the...

  • By
    Image Reflection with jQuery and MooTools

    One subtle detail that can make a big difference on any web design is the use of image reflections. Using them too often can become obnoxious but using reflections on large, "masthead" images is a classy enhancement. Unfortunately creating image reflections within your...

Discussion

  1. Very awesome read thanks for sharing!

  2. Edwin
    Console.WriteLine("lol, good one! Do it allot in coding, if there is no code reviews ;p ");
  3. Hehehe sanity would break immediately actually, look at the quotes…

  4. $me = new programmer(‘Work’, ‘Amused’);

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!