A Beautiful Dream
July 5, 2020 — Today, I had the most amazing dreams of my life. So, the dream starts like this. For some reason, I got a chance to go back in time.
A blog on PHP, JavaScript, and more
July 5, 2020 — Today, I had the most amazing dreams of my life. So, the dream starts like this. For some reason, I got a chance to go back in time.
July 3, 2020 — The switch statement in PHP is great when you want check condition on the same expression without incorporating many if
statements altogether.
June 29, 2020 — The Chrome browser is one of the widely used web browsers by developers. The DevTools it bundles within is mature and ahead of its competition. But there are certain features that Chrome Developers don’t expose explicitly. Rather, you’d have to look out for those features by digging deep inside the settings.
June 28, 2020 — I take a lot of screenshots and they are part of my daily workflow. As I mentioned at my uses page, I use Ubuntu 18.04 LTS as my primary OS and there are native shortcuts to take screen shot in this particular OS.
June 26, 2020 — It’s never been easier to get started with a blog in 2020 as there are many options for you to choose from. For instance, Jekyll, Gatsby, Hugo, eleventy and many others. These are all static site generators. Meaning, there’s no backend. So, you don’t need to create or manage your own backend server. And because, there’s no backend, there’s no database as well.
June 23, 2020 — While working on Your First Commit Ever, there arised a requirement in which I had to update/change the URL’s query paramter based on the user input.
June 18, 2020 — Sometimes, it’s useful to know if somethig has been changed in the model since it’s been loaded. For instance, you would want to check if the is_published
attribute of the Post
model is set or not before publishing the post further.
June 16, 2020 — Refactoring is important in programming things. It is a process of restructuring existing computer code—changing the factoring—without changing its external behavior. It makes code more readable, structured and easy to process.
June 13, 2020 — Who would’ve thought that PHP would have to wait till its version 8 or rather 25 years after its inception, to get a truly native and understandable function to check if a string is contained in another string?!