Get "PHP 8 in a Nuthshell" (Now with PHP 8.4)
Amit Merchant

Amit Merchant Verified ($30/year for the domain)

A blog on PHP, JavaScript, and more

  • Articles
  • Snippets
  • Projects
  • Uses
  • Stats
  • About
  • Search
Laravel PHP JavaScript Git React

Freeze scroll on arrow key up or down using JavaScript

July 27, 2020 — I was working on implementing the Konami code easter egg on this blog and there was this need where I need to stop the scrolling only when the previous two presses by the user are ArrowUp.

Read More JavaScript

How I implemented a Konami easter egg on my blog

July 24, 2020 — So, the other day, I was going through my Twitter feed and I saw this tweet. This user had explored an easter egg on the newly designed Stripe.com’s website.

Read More JavaScript

Using JavaScript-style Promises in PHP

July 23, 2020 — If you’re familiar with JavaScript, you might have worked with or at least heard about Promises at some point of time.

Read More PHP

Check if the specific service provider is loaded or not in Laravel

July 20, 2020 — Sometimes, you want to load some stuff based on the fact that the certain service provider is loaded in the providers array of config/app.php or not.

Read More Laravel

Push to newly created branch without creating an upstream branch in Git

July 19, 2020 — Git is a lot easier when you make the best out of it. For instance, setting a simple Git config can make your life a lot simpler and smoother.

Read More Git

Using Chrome DevTools as a secret code editor

July 14, 2020 — That’s right! You can even use Chrome DevTools as your “Adhoc” code editor. Now, why would you do that, you ask? Well, there are a few reasons.

Read More ChromeDevTools

Make function parameters required in vanilla JavaScript

July 14, 2020 — You might be aware of how to set default values for function parameters in JavaScript. For instance, if you want to set the default value for a parameter, you can do it like so.

Read More JavaScript

Proposed named arguments in PHP 8

July 10, 2020 — Update: Named parameters have been accepted to be included in PHP 8. A 2/3 majority in voting from members was required and it got the required votes! Here’s the RFC that got accepted.

Read More PHP

Lesser known Composer tricks and tips you should know

July 9, 2020 — The Composer dependency manager is currently the de-facto way of managing dependencies in your PHP projects. All the modern PHP development can’t be imagined without Composer. But do you know there are a lot of things that you can do with Composer other than just installing and updating dependencies?

Read More Composer

The secret way to type-check JavaScript in VS Code

July 7, 2020 — We all know that VS Code comes with a great support for TypeScriptm language out-of-the-box. Meaning, if you’re working with .ts files in VS Code, VS Code will prompt type related errors if there are any.

Read More VS Code
Previous 1 ... 58 59 60 ... 76 Next

Download my eBook

NOW AVAILABLE PHP 8.4

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • The new if() function in CSS has landed in the latest Chrome NEW

  • The pipe operator is coming to PHP 8.5

  • The absolute fastest way to install PHP on your system in 2025

  • Two new array methods are coming in PHP 8.5 — array_first() and array_last()

  • Memoizing the cache in Laravel

Top Categories

Laravel PHP JavaScript Miscellaneous CSS VS Code Git React Tools ➔
Home About Contact Categories Links Guestbook
Previous page Next page
Amit Merchant
About Contact Archive Tips Guestbook
One of my favorite flowers from Himalayas—Rhododendron
Copyright © 2025 — Amit Merchant