Discover

Posts & Articles

Problem Solving: LeetCode #1 Two Sum

LeetCode's Problem #1, "Two Sum," is one of the most popular coding challenges. It's a great way to start your journey with coding interviews and algorithm practice. Today, I'll show you how to solve this problem using the PHP programming language, in a series of posts talking about leetcode solutions, let's dive directly into it.

Read more

Making Sure Your Assets Stay Fresh: A Guide to Versioning Assets in Laravel

In the world of website optimization, keeping things running smoothly is key. One important part of this is managing how your site's assets—like images, stylesheets, and scripts—are delivered to users. Content Delivery Networks (CDNs) and Service Workers help with this, but they can sometimes cause a problem: users might get old versions of files instead of the latest ones. To tackle this issue, it's crucial to make sure that each version of an asset is unique. That's where the hashed asset path technique comes in.

Read more

Exploring the Power of PHP Soundex Function in String Matching

In the world of web development, PHP is a useful tool for making websites. But did you know it has a neat trick called "Soundex"? Soundex helps us find words that sound alike, even if they're spelled differently. Let's dive into what it is and how we can use it easily in PHP.

Read more

Mastering CSS: 4 Effective Methods to Center a Division

Yeah, I know, it's the most searched question for a decade, from junior devs scratching their heads to seasoned seniors pondering the mysteries of CSS. But fear not! Centering a div in CSS doesn't have to be a head-scratcher. In this article, we'll dive into five tried-and-true methods to achieve that elusive centering effect. So, grab your favorite beverage and let's embark on this journey to CSS centering mastery!

Read more