Modernizing JavaScript Code in WordPress

Modernizing JavaScript Code in WordPress

I’ve just had a nice experience improving and modernizing a large JavaScript codebase in a WordPress plugin. The original code was written in an old-fashioned way with jQuery in a single large file. Using modern EcmaScript and tools like Webpack, I was able to split it into modules and improve the code structure. The new code is much more readable and maintainable, and of course, fewer bugs. In this tutorial, I’ll show you how I did that.

Continue reading “Modernizing JavaScript Code in WordPress”

How to easily add custom Taxonomy using codes and plugins in Wordpress

How to Easily Add Custom Taxonomy Using Codes and Plugins in WordPress

WordPress users must be familiar with the concept of content type classification using Categories or Tags. These things also are called Taxonomy. So what is Taxonomy? Simply, it gives you various options for classifying new content types. This article will introduce you to the process of creating a custom taxonomy that stores additional custom content types without mixing them with Categories or Tags.

Continue reading “How to Easily Add Custom Taxonomy Using Codes and Plugins in WordPress”

Introduction to Design Patterns

What is Design Patterns?

In software development, wherever you work, whatever language you are programming in or whatever you’re building, CHANGE is the friend that will be with you always.

With inexperienced developers, they tried to write code that helps their software adapts to these changes temporarily without bothering about the reusable, extendable and maintainable ability of it should the next probable changes occur. This manner of approach leads to their having to spend a lot more time on the maintenance phase. If worst comes to worst, they will have to rebuild the software project they are handling on completely from the beginning. That’s the reason why Design Patterns was born to save the world.

Continue reading “What is Design Patterns?”