Things I write about
August 7, 2023 — I have been writing on my blog for well over 8 years now but more than 70% of articles have been published only in the last 3-4 years. So, what’s changed?
A blog on PHP, JavaScript, and more
August 7, 2023 — I have been writing on my blog for well over 8 years now but more than 70% of articles have been published only in the last 3-4 years. So, what’s changed?
August 6, 2023 — How many times have you been in a situation where you’re typing a string in VS Code and you want to tab out of the string to continue typing the rest of the code? Or, you’re typing a function and you want to tab out of the brackets to continue typing the rest of the code?
August 5, 2023 — Artisan commands in Laravel are truly a blessing. I mean you could create just about any files be it controllers, models, middleware, or provider by knocking a simple command from the CLI.
August 3, 2023 — Sometimes, you may want to ensure that a collection in Laravel contains only a specific type of item. For instance, you may want to ensure that a collection contains only a string
type of item. Or, you may want to ensure that a collection contains items of a specific class.
August 1, 2023 — If you go to paint shops and show them a color that you want to buy and they don’t have the exact color, they will mix different colors to create the same color you want. This is how they create variants of colors.
July 29, 2023 — I have been working with CSS for like 10+ years now and I have worked with CSS animations for a fair amount of time. But I didn’t know that you can pause and resume animations in CSS until recently.
July 27, 2023 — If you’ve ever worked with Next.js, you might have come across its page routing system. It’s pretty straightforward. You just create a file with the name of the route you want to create and that’s it.
July 25, 2023 — Large-scale projects would often require to import data from large CSV files at some point. And if not handled properly, this can very well lead to memory issues.
July 22, 2023 — There are keyboard shortcuts that are application-specific and there are system-wide keyboard shortcuts.
July 21, 2023 — Setting up hover on elements in devices where hover is not supported (like mobiles, tablets…) can be overkill. For instance, if you have a navigation menu that has a hover effect on a desktop browser, you might want to disable that hover effect on mobile devices because there’s no hover support on mobile devices.