September 6, 2019 — Magento is known for its developer-friendly approach for buliding things around its platform. Everything is well-defined and readily available in the framework. This also includes implementing RESTful APIs right within the framework. In this article, I’m going to explain how you can create an API endpoint in Magento 2 and how you can consume or distribute the same.
September 5, 2019 — If you’re a tech blogger(or any blogger in general) you must have faced this issue where you find yourself in a situation when you don’t have anything to write about. You feel like a blank slate and got demotivated. This situation is called as a Writer’s block.
September 4, 2019 — Laravel team has recently released
v6.0 of the framework and with this they have added a bunch of exciting new features. Among which, I’m going to talk about Lazy Collections in this article. In Laravel,
Illuminate\Support\Collection class provides a fluent, convenient wrapper for working with arrays of data. In face, all the Eloquent queries are always returned as
LazyCollection essentially extends the features of the
Collection class. Let’s talk about them in detail.
September 2, 2019 — Passwords are an integral part of today’s authentication based web applications. In fact, Passwords have been used since ancient times. Sentries would challenge those wishing to enter an area to supply a password or watchword, and would only allow a person or group to pass if they knew the password. In modern web application passwords are used in combination with usernames to authenticate users. So, basically, we’d need to fields in order to store username and password for each user both of which are supplied by user at the time of signing up to the web application.
August 30, 2019 — You must have come across websites which have gone overboard in terms of number of advertisement on them. Let’s face it. Ads make user’s experience not so pleasurable and if they are over the top you might want to leave it as soon as possible. Possible solution to mitigate this is to install Adblocker extensions and get rid of ads but what if I tell you there’s an ad blocker built right into Chrome deep inside? Well, it’s not straight forward one but if you want a quick “Ad-blocker”, it can get you covered.
August 27, 2019 — In this tweet, Freek Van der Herten explains how to process chunk of records from a model instead of loading all of them at a time which can help using less memory. Learn more about it in the article.
August 26, 2019 — As backend developers, to make our web application full proof we need to make sure our application is running as efficiently as possible all the time. Otherwise, everyone using your database will suffer from slow performance. API limiting, which is also known as rate limiting, is an essential component of Internet security, as DoS attacks can tank a server with unlimited API requests.
August 22, 2019 — In object-oriented programming, there are two ways using which classes can achieve polymorphic behavior: “Inheritance” & “Composition”.
August 13, 2019 — Some of the PHP’s core functions are designed in such a way that they do not handle exceptions in a better way. Instead, they just return
false if there’s any error. This makes developers to handle those error themselves. Take the example below.
Follow me elsewhere