October 30, 2023 — Recently, in one of my Next.js projects LinkSnatch, I needed to use API keys from jsonlink.io. Now, I didn’t want to hardcode the API key in the codebase since it’s an open-source project. So, the best way to handle this is to use environment variables.
October 27, 2023 — Wouldn’t it be nice if you could run PHP in the browser and that too without installing anything on your machine? Well, a technology called WebAssembly lets you do just that.
October 23, 2023 — I have always been on the lookout for a good GUI client for databases on Linux. I have tried several of them including the current one I’m using called DBGate which is an Electron-based database client.
October 22, 2023 — Scoped CSS lands in Chrome 118. This is a new feature that allows you to scope the CSS to a particular element or part of the page. This is a great feature for component-based web development where you can scope the CSS to a particular component and it won’t affect the rest of the page.
October 20, 2023 — If you’re using Git, you might have noticed that the primary/default branch of a Git repository is called
master. But, since the word
master has a negative connotation, many organizations have started to use different names for the default branch.
prefers-color-scheme media query in CSS to switch between themes based on the user’s system preference.
October 12, 2023 — When you’re building a website, you might be tempted to use a transparent background for some elements. For instance, you may want to use a transparent background for the navigation bar or the header of the website.
October 10, 2023 — Using secure connections or HTTPS is not necessary in local development but it’s certainly a nice to have feature since you can more accurately test how your application will behave in a production environment and a few other things.
October 9, 2023 — As your application grows in popularity, it becomes a target for various attacks. And even if not so popular, there are bots that are constantly looking for vulnerabilities in your application.
October 5, 2023 — The terminal in VS Code is something I use the most in VS Code apart from the editor area. It’s great because you don’t have to switch the context to the terminal app to run commands. You can do it right from the editor itself.
Download my eBook
Follow me everywhere