Using Bright Data's scraping browser to Scrape Web Pages
July 5, 2023 — There comes a time when you need to scrape a website for data. For instance, you might want to scrape a website to get the list of all the products they have or you might want to scrape a website to get the list of all the blog posts they have. Or you just want to automate the process of scraping a website for data to make your life easier.
Global HTTP middleware in Laravel 10.x
July 3, 2023 — Sometimes when working with third-party APIs, there might be a need to add common headers to all the outgoing requests. For instance, you might want to add an Authorization
header to all the outgoing requests to authenticate the requests.
Printing raw SQL queries with bindings in Laravel 10.x
July 2, 2023 — Perhaps the most anticipated feature that all Laravel developers were waiting for is finally going to be available in the framework. Yes, I’m talking about the ability to print raw SQL queries with bindings in Laravel 10.x.
Identify unused npm packages in your project
July 1, 2023 — If you’re working on a large codebase, chances are you might have installed a lot of npm packages in your project. And you might have used some of them just for the sake of trying them out. But, you might have forgotten to remove them from your package.json
file.
Statically analysing your PHP code using PHPStan
June 28, 2023 — The great thing about statically typed languages, like Java, C#, Go, Swift, etc. is that they can be analysed by the compiler itself. This means, if you’re using a statically typed language, you can catch a lot of errors at compile-time itself.
Do not write console logs yourself ever again
June 25, 2023 — Whether you’re a beginner developer or a seasoned one with years of experience, you can not deny the fact that you’ve used console.log
to debug your JavaScript code at some point in your career.
Text Wrap Pretty is coming to CSS
June 23, 2023 — I talked about the CSS text-wrap
property and its balance
value in one of my previous articles where the browser would try to wrap the text in a way that the last line of an element is as long as the first line. So that, the text looks balanced and more readable.
Import maps to natively import JavaScript modules using bare names
June 18, 2023 — Bundlers in JavaScript let you import JavaScript modules with their bare names. For instance, if you have installed Lodash using NPM, you can import it like so.
Publish but without any expectations
June 17, 2023 — If you're into publishing, publish whatever interests you and whatever you think is worth sharing without thinking about the results.