Tag Archives: Nursery Rhymes

Nursery Rhyme Code Poem [CSS]

Code Poems are fun! The trick is to take a nursery rhyme (but really, it could be any commonplace work of writing – Famous Speeches, Bible Verses, Famous Quotes, etc.), and then turn it into pseudocode. The code must follow both the programming or markup language you’re using and the rhyme as closely as possible. [...]
Posted in Artistic, CSS | Also tagged |

Nursery Rhyme Code Poem [JavaScript]

(function() { function BlindMouse() {} BlindMouse.prototype.tail = true; BlindMouse.prototype.run = function(after) {};   function Mice(mouse1, mouse2, mouse3) { this.mice = []; this.mice.push(mouse1, mouse2, mouse3); this.declare = function() { return this.mice.length + ' Blind Mice'; }; this.run = function(after) { for(var j=0,k=this.mice.length;j<k ;j++) { this.mice[j].run(after); } }; this.cutOff = function(prop, weapon) { for(var j=0,k=this.mice.length;j<k;j++) { this.mice[j][prop] [...]
Posted in Artistic, JavaScript | Also tagged |

Nursery Rhyme Code Poem [PHP]

< ?php class I { public __construct() { $star = new Star(); $star->size = 'little'; $star->twinkle(); $star->twinkle();   self::wonder($star, 'What are you?');   $world = new World(); $world->elevation = 'So High'; $star->setAbove($world);   $d = new Diamond(); $d->position = 'In the sky'; $star->setLike($d);   $star->twinkle(); $star->twinkle(); $star->size; // returns 'little'   self::wonder($star, 'What are you?'); [...]
Posted in Artistic, PHP | Also tagged |