Modulating the Modulo

28 11 2015

Flickr: by by Toño Garces

 

A recent article contrasting PHP with Ruby, denigrates making comparisons of one language with others, dismissing such efforts as worthless save for being a clickbait strategy. Yet, sometimes the best way to understand the familiar requires venturing out and exploring something new. If one only knows PHP, a developer may still write quality code. But, learning about C, JavaScript and Python, all of which have influenced PHP, may enhance one’s appreciation for its nuances.And, let’s not forget the other “P” in the pod, Perl, which had a pivotal bearing on PHP’s early development. Speaking of Perl, its creator Larry Wall drew inspiration from UNIX. Of particular interest, that operating system’s (OS) Bourne Shell has an open-sourced cousin bash (the “Bourne Again Shell”), knowledge of which may also enhance one’s appreciation for PHP. Read the rest of this entry »

Advertisements




Numbers, Strings and Other Things

30 10 2010

At one of my latest interviews recently, the interviewers posed the following technical question: 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 »





Prime Time

12 08 2010

Yesterday, I read somewhere online that there are programmers with such poor programming skills that they are unable to write code that would display prime numbers between zero and a hundred. Read the rest of this entry »





Math, Dates and PHP

18 06 2010

Today must be my lucky day. Received a second technical question. This one involves math, dates and PHP Read the rest of this entry »





Math: Factorials and PHP

18 06 2010

What is up with the technical questions based on an understanding of math? When was the last time I actually worked for a client who needed me to find factorials using PHP? Oh, well, instead of procrastinating by dwelling on past glories, let’s consider the following technical question: Read the rest of this entry »





PHP and Numbers Divisible by Three

16 06 2010

The recent technical test also had a fun sort of question in which one needs to write some code Read the rest of this entry »








%d bloggers like this: