Blog

Programming insights to Storytelling, it's all here.

Ibrahim Diallo

April 2020

Count the number of words with MySQL

Count the number of words with MySQL

I was looking for a way to count the number of words in a blog post using MySQL. Most solutions I found online required I create a function. I wanted something simpler instead, something as close to a native function as possible. And the answer that occurred to me was to use the Length() and Replace() function with a catch.

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