Engineering notes

Ideas worth building on.

Practical lessons, technical explorations and the decisions behind better software.

49 articles

SEO1 min read

How to fix CLS issue in Google Search Console

What Factors Affect CLS and Cause a Slow ScoreThe most common factors of a poor Cumulative Layout Shift grade on WordPress are:Images and videos without dimensionsAds, embeds, and...

Kartic · Oct 9, 2022
ReactJs1 min read

What is the difference between state and props?

Props (short for “properties”) and state are both plain JavaScript objects. While both hold information that influences the output of render, they are different in one important wa...

Kartic · Jun 30, 2020
PHP1 min read

What is the difference between PHP's get & post method

​​​​​​​Get MethodGET requests can be cachedGET requests remain in the browser historyGET requests can be bookmarkedGET requests should never be used when dealing with sensitive dat...

Kartic · Oct 27, 2019
VueJs1 min read

What is Vue Router?

Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js easy to implement. Its features include:Ne...

Kartic · Oct 24, 2019
Laravel1 min read

Explain Closures in laravel?

In Laravel, a closure is an anonymous function that often used as callback methods. Developers can also use it as a parameter in a function. Example: In Laravel, a closure is an an...

Kartic · Oct 24, 2019
Laravel1 min read

Session and Cookies in laravel

Session1. Retrieving Data from sessionsession()->get('key');2. Retrieving All session datasession()->all();3. Remove data from sessionsession()->forget('key'); or session()->flush(...

Kartic · Oct 24, 2019
ReactJs2 min read

What are all the life cycle hooks in Vue instance?

Each Vue instance goes through series of steps when they are created, mounted and destroyed. Along the way, it will also runs functions called life cycle hooks, giving us the oppor...

Kartic · Oct 24, 2019
Laravel1 min read

What is service providers in Laravel?

In Laravel, service providers are the center of overall Laravel application bootstrapping. User applications, as well as core services of Laravel, are bootstrapped with service pro...

Kartic · Oct 24, 2019
Laravel1 min read

Is Laravel support caching? Explain

Yes, It supports caching like Memcached and Redis. By default, laravel is configured with file cache which is stores the serialized, cached objects in the files. Normally we can us...

Kartic · Oct 24, 2019
Laravel1 min read

Use updateOrInsert() in Laravel Query?

updateOrInsert() method is used to update an existing record in the database if matching the condition or create if no matching record exists.Its return type is Boolean.SyntaxDB::t...

Kartic · Oct 24, 2019
Laravel1 min read

What is Queue ? Advantages of Queue?

Queues in Laravel are used by developers to create smooth application cycle by stacking complex tasks as jobs and dispatching these heavy jobs only with user permission or when it...

Kartic · Oct 24, 2019
Laravel1 min read

What is Dependency injection in Laravel?

In Laravel, dependency injection is a term used for the activity of injecting components into the user application. It’s a key element of agile architecture. The Laravel service co...

Kartic · Oct 24, 2019