Whenever I find myself working with an unfamiliar PHP codebase, Xdebug becomes one of my most important tools. Xdebug is a PHP extension that allows you to debug code by stepping through it in an editor or IDE. In my experience, stepping through the code is a great...
JavaScript can be pretty annoying at times. You would think that with classes implemented in ES6, this would be solved. For me, the most annoying part of programming is typing. So every time I need to call a class member in React, I have to bind the function to...
So we’ve discussed what a language is from a computer science theory viewpoint in part 1 of this series, and we have 2 ways of representing languages: Set notation: {λ, a, aa, aaa, …} or {a^n | 0 <= n} for short, and grammar production rules: {S ->...
Today I would like to discuss a concept aimed at preparing an area of content that is yet to be loaded. Or, more precisely, pre-determine the height of some content that has not yet been displayed on the screen. A great example of this would be a slideshow system such...
If you have read any of my previous articles, you may have noticed by now that I tend to write about things that I am finally getting around to learning or that I have put off doing so in the past for one reason or another. Whether it is something I didn’t think I...
Most programmers have used, or are at least aware of, regular expressions and how they work. But, fundamentally, what is a regular expression? Well, to understand that, we’ll have to understand a few core concepts. First, we need to know what an alphabet is....