Type annotate arguments for subset of a given type in TypeScript
August 31, 2020 — Often, there comes a scenario when you want to type annotate (or type hint) some of the variables or arguments for a subset of a given type.
A blog on PHP, JavaScript, and more
August 31, 2020 — Often, there comes a scenario when you want to type annotate (or type hint) some of the variables or arguments for a subset of a given type.
August 28, 2020 — When it comes to exporting modules, there are two primary ways in TypeScript using which you can do this.
August 27, 2020 — When I first started blogging using Jekyll, I was using a popular Jekyll theme called jekyll-now. The theme is quite minimalistic in nature, bare-bone and lacking some key features. But in those earlier days, I was okay with its simplicity.
August 26, 2020 — You know it’s always a good idea to have something at your disposal using which you can improve the performance of your applications. When it comes to web applications, one of the many things that power them is database queries and that’s why it’s no surprise that you may want to optimize those and make your application a little faster!
August 24, 2020 — You might be aware of the typical way of defining model relationships in Laravel Eloquent. i.e inside of the models itself.
August 22, 2020 — Recently, I needed to change some design elements of a site when the site is in the fullscreen mode. So, I was looking for a way to it using CSS as all I wanted to change was hiding some stuff when in the fullscreen mode.
August 20, 2020 — There comes a time when you want to fetch the number of records for a child relationship along with the main Eloquent query.
August 19, 2020 — There are two ways of many using which you can loop over the iterables in JavaScript.
August 17, 2020 — One of the many ways using which you can insert records (or seed your database) is by using the seeder classes which extend a base class called Illuminate\Database\Seeder
in Laravel.
August 14, 2020 — Before proceeding on describing all the customizations I made, I have a confession to make.
Follow me everywhere