Blog

Programming insights to Storytelling, it's all here.

Ibrahim Diallo

Page - 40

2013

April

JavaScript, how do I check if this variable is an array

JavaScript, how do I check if this variable is an array

It is common to run functions that return results in JavaScript. With JavaScript being loosely typed, the returned value can be of any data type. In case it is returning an array, there isn't an obvious way to detect it, because arrays are also objects.

Alexa rankings

Alexa rankings

What does alexa ranking mean? I never understood how it actually works. At least google scrape websites, and serve them in the search results, they can count which website gets the most clicks, and also find who is linking to who. The same goes for bing and other search engines. But for alexa it is different, and very limited.

Why you shouldn't take user feedback seriously

Why you shouldn't take user feedback seriously

When big websites make redesigns, add new features or remove some, they ask their users for feedback but ignore almost all of them. I always wondered why. It can end in two ways the user gets frustrated and leave or he simply gets used to it and and stops complaining.

Using MySQLi and PDO instead of MySQL_*

Using MySQLi and PDO instead of MySQL_*

It is time to deal with mysql_* functions once and for all. These methods are deprecated and slow. The time to upgrade has long passed yet we still see it everywhere. Since I cannot force every author to update their tutorial and blogs, I decided to write a post to hopefully rank better and provide the essential information to help new comers.

JS Tip of the day

String trimming

In modern browsers, JavaScript has a .trim() function on the String object. What it does is simple, it removes the extra white space before and after the string…

Photography

TV