Taking Stock of the Stack in PHP

29 03 2014

flickr: by cvfyne

Introduction

You may have heard about ‘the stack’ or call stack, part of a computer’s random access memory (RAM), wherein a function, including its parameters and return value, reside temporarily. One retrieves them on the basis of FILO (First In, Last Out), synonymous with LIFO (Last In, First Out). Users of high-level languages like C and PHP are much less likely to directly handle this stack. Read the rest of this entry »

Advertisements




Partial Application Technique in PHP

26 08 2011

Now that we have lambdas and closures in PHP5.3, we can use a functional programming technique known as partial application. Read the rest of this entry »





Reinventing The Wheel II

16 04 2011

flickr: by kevinspencer

If you’re curious about how to merge two unsorted and mixed value arrays into one that is in ascending order, Read the rest of this entry »





Reinventing the Wheel

15 04 2011

by Talsi1

Recently,  I experienced yet another “anti-PHP” interview which seems to be the latest trend in interview techniques. It was an interesting experience Read the rest of this entry »





Algorithmic Reversals

20 03 2011

Consider the problem of taking a string and using PHP to display it in reverse Read the rest of this entry »





Testing 1,2,3 …

18 03 2011

by Danny van Lieshout

Had an in-person interview yesterday.  Yay! The technical questions were loads of fun, and I’d like to share one of them with you. Read the rest of this entry »





Shuffling and Random Thoughts

28 10 2010

A riffle shuffle being performed during a game...

A riffle shuffle being performed during a game of poker at a bar near Madison, Wisconsin (Photo credit: Wikipedia)

Sometimes you need to shuffle things when you work with PHP, that is to order a set of values where each appears in a randomized order. Read the rest of this entry »








%d bloggers like this: