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.
A blog on PHP, JavaScript, and more
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.
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.
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.
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.
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.
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.
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?
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.
July 7, 2020 — Sometimes, there comes a scenario where you would need to extract some part of the html
so that you can use it across different areas of your site without repeating the same markup all over places.
July 5, 2020 — The CSS has many experimental features, that if used cautiously, can be proven very handy in simplifying things.