What Are Return Types in PHP ?

What Are Return Types in PHP ?

I studied Java in my university. It was strictly typed programming language and had to define the return type for a function. But, I started my career as PHP developer with PHP programming. PHP 5.6 did not had a concept of return type or type hinting. In my early days, I used to get confused. I worked in many small to big projects. For all projects I used PHP and this language become primary backend programming language for me....

December 11, 2022 · 8 min · 1575 words · Prakash Bhandari
How to Create Custom Laravel Facades And Use Them In Your Laravel Applications?

How to Create Custom Laravel Facades And Use Them In Your Laravel Applications?

In this post, I will cover what is facades in Laravel, how to create your own custom facades and use them in Laravel applications. Probably, facades are one of the discussed topics in the laravel community. According to Dictionary.com The word ‘facade’ refers to a “superficial appearance or illusion of something.” In architecture, the term refers to the front of a building. Any side of a building facing a public way or space and finished accordingly...

December 7, 2022 · 6 min · 1145 words · Prakash Bhandari
How to Embed GitHub Code Snippets in Hugo Template Blog Posts?

How to Embed GitHub Code Snippets in Hugo Template Blog Posts?

In this post, I am going to show you how to embed GitHub code snippets in the Hugo Template blog post in 5 simple steps. In Hugo Template, we enclose code snippet inside backtick ``` Generally, it doesn’t highlight the syntax based on what programming language the snippet/code is written in. GitHub Gist code snippets helps us to embed pre-formatted code in markdown. It’s best and simplest way to embed pre-formatted code in markdown....

December 5, 2022 · 2 min · 362 words · Prakash Bhandari
Create Laravel Composer Package From Scratch and Publish on Packagist

Create Laravel Composer Package From Scratch and Publish on Packagist

In this post, I’m going to explain how you can create Laravel package locally and publish to Packagist. To demonstrate, I will create a package to convert Hindu Arabic(Nepali) number to English and English number to Hindu Arabic (Nepali). Creating Laravel package is not that hard. In few simple steps you can create your own package. I will go through few steps: Step #1: Install Laravel I choose Laravel 9 because Laravel 9 is the latest version of Laravel....

December 4, 2022 · 8 min · 1693 words · Prakash Bhandari
How to Publish Your Own Public NPM Package

How to Publish Your Own Public NPM Package?

Publishing your own public NPM package is not that hard. All you need is basic understanding of Javascript, NPM, package.json file and Account in https://www.npmjs.com In this post, I will try to explain the steps to create and publish your own public NPM package to https://www.npmjs.com. To demonstrate, I will create real NPM package which will convert English number to Nepali Number and Nepali number to English Number. Finally, this package will be publish to https://www....

December 1, 2022 · 8 min · 1624 words · Prakash Bhandari
Branching Strategy for Big Feature

Branching Strategy for Big Feature

In a single repository, many developers are developing new features or fixing bugs. Some features are small and some of them are big. Small features can be developed, reviewed, and released quickly. But, big features can not be completed quickly and also it’s not a good idea to create a really big pull request (PR). It’s a crazy idea to push the Work In Progress(WIP) feature to the main branch and it may probably get deployed to production....

November 29, 2022 · 3 min · 631 words · Prakash Bhandari
Mock AWS Services in Local Development Environment with LocalStack and NodeJS

Mock AWS Services in Local Development Environment with LocalStack and NodeJS

I was developing and deploying the applications to dedicated servers, on-premises and shared servers. In 2017, I got an opportunity to work with AWS for one of the retail online ecommerce web application. Since then primarily, I have been developing AWS based applications. In my career, I have used many AWS services. Primarily, Route 53, EC2 instances, RDS, SQS, SNS, S3 buckets and so on. Developing and testing applications in the real AWS account is sometimes time-consuming, costly and has dependency on the internet....

November 19, 2022 · 9 min · 1848 words · Prakash Bhandari
Javascript Unit Test With Jest

Javascript Unit Test With Jest

In this tutorial, I will demonstrate how to write a basic unit test to calculate the area of geometric shapes like circle and rectangle by using the JavaScript Testing Framework called Jest. ...

November 12, 2022 · 4 min · 672 words · Prakash Bhandari
Software Engineering

Changes I have seen in the software engineering space

In this article I will share the changes that I have seen and experienced in the software engineering space as a Software Engineer. I started my career as a front-end developer in late 2010. At that time I was converting PSD files to HTML pages. It took time to learn the basics of photoshop, HTML and CSS. But, slowly I became a professional frontend developer. Not actually a frontend developer was called HTML/CSS developer. ...

November 11, 2022 · 6 min · 1112 words · Prakash Bhandari
Execution Order of SELECT SQL Query

Execution Order of SELECT SQL Query

This article is not an unique article. You can find numbers of article related with the SQL query execution order. But, I will try to make easy to read and simple to understand. SELECT query is used by many people like Data Engineer, Backend Developer, Fullstack Developer, DBA, and the list goes on. As we know that the SELECT query is used to select data from a database tables. So, the question is what is the order of execution when we execute the SELECT query? ...

October 11, 2022 · 2 min · 286 words · Prakash Bhandari