Tags

Here is all articles with programming tag

PHP final classes
programming
July 13, 2026 8 minutes reading time

PHP final classes

Object-oriented programming in PHP gives developers powerful inheritance features. However, not every class is designed to be extended. That’s where the final keyword comes in. A final class explicitly tells PHP that this class cannot be inherited. It protects the class from being extended and helps preserve its intended behavior. When you declare a class […]

Laravel #[CurrentUser] Attribute
programming
July 7, 2026 8 minutes reading time

Laravel #[CurrentUser] Attribute

Starting with Laravel 12, Laravel introduced the #[CurrentUser] attribute, making it easier to access the authenticated user inside controller methods. Instead of retrieving the user manually using Request object or auth() helper, you can now ask Laravel to inject the authenticated user directly into your method. This results in cleaner, more readable controller code while […]

GitHub Template Repositories: Reuse Your Starter Kit for Every New Project
programming
July 2, 2026 8 minutes reading time

GitHub Template Repositories: Reuse Your Starter Kit for Every New Project

If you frequently start new projects, you’ve probably found yourself copying an existing project over and over again.Maybe you have a Laravel starter kit, a Node.js boilerplate, a PHP project structure, or simply a repository containing your preferred folders, configurations, and development tools. Instead of cloning a project and cleaning it up every time, GitHub […]

Laravel $this->columnName vs $this->attributes[‘columnName’]
programming
June 21, 2026 8 minutes reading time

Laravel $this->columnName vs $this->attributes[‘columnName’]

When working with Eloquent models in Laravel, you may have seen both of these approaches used to access model attributes: Although they may seem identical, they behave differently under the hood. Understanding the difference is especially important when creating custom accessors, mutators, casts, and model attributes. # Quick Answer The main difference is $this->columnName passes […]

Laravel Bulk Update vs Save: Why Observer Events Are Not Triggered
programming
June 6, 2026 8 minutes reading time

Laravel Bulk Update vs Save: Why Observer Events Are Not Triggered

When working with Laravel, performance is often a major concern. One common optimization is using bulk updates instead of loading and updating models one by one. However, there is an important behavior that many developers overlook: Laravel Observer events are not triggered when using bulk update queries. If your application relies on observers for logging, […]

Will AI Replace Programmers? A Realistic Look at AI in Software Development
programming
May 23, 2026 8 minutes reading time

Will AI Replace Programmers? A Realistic Look at AI in Software Development

Artificial Intelligence is one of the hottest topics in tech right now. Everywhere we look, we hear bold statements from AI company CEOs and tech influencers claiming that programmers will soon be replaced by AI. But how true is that? Some developers believe AI will eventually replace most programming jobs. Others completely disagree. The truth […]

Controller Naming in MVC
programming
May 2, 2026 8 minutes reading time

Controller Naming in MVC

Confused about naming your controllers? You’re not alone !! Sometimes you may hesitate when naming controllers in Laravel:should it be singular or plural? According to Laravel best practices, controllers should be named in singular form. Recommended examples: Not recommended examples: Laravel follows a clear and predictable pattern: #Why Singular? A controller represents a resource, not […]

How to Edit a Git Commit Message After Push
programming
April 27, 2026 8 minutes reading time

How to Edit a Git Commit Message After Push

If you’ve been working with Git for a while, you’ve probably experienced this: You commit your changes, push them to the remote repository… and then notice a typo in your commit message 😑 It might seem like a small issue, but in professional projects, clean and meaningful commit messages are part of best practices just […]

Extract Data from Multidimensional Array
programming
April 23, 2026 8 minutes reading time

Extract Data from Multidimensional Array

#Introduction array_column is one of my favorite functions in PHP. When you are dealing with a multidimensional array and want to extract a specific piece of data from that structure, array_column is extremely helpful. By passing the array and specifying the key name, you can extract the values of that key separately from the original […]

A Safer condition in programming, Yoda !
programming
April 18, 2026 8 minutes reading time

A Safer condition in programming, Yoda !

When writing conditional statements in programming languages, small habits can make a big difference in preventing bugs. One of those habits is known as the Yoda Condition. #What is Yoda? The Yoda Condition is a coding style where you place the constant or literal value on the left side of a comparison, and the variable […]