"Don't reinvent the wheel."

Who decided that this was such good advice?

I've heard it countless times from developers and IT specialists, often presented as a fundamental rule of software development. While I understand the reasoning behind it, I've never liked the idea that an existing solution is automatically a better choice than building your own.

I dislike relying on frameworks, libraries and ready-made software when they impose unnecessary limitations, perform poorly or make it difficult to understand what's happening underneath.

Sometimes reinventing the wheel is exactly what a developer should do.

The problem with WordPress and ready-made solutions

Let's take WordPress as an example.

You need a particular feature, so you look for a plugin. Eventually, you find something that does approximately what you need, includes several features you don't care about and comes with a price tag.

Why should I pay for code that doesn't fully meet my requirements when I can write it myself?

WordPress is an open-source project, yet building a relatively complex website with it can easily turn into managing an ecosystem of paid plugins, dependencies and compatibility issues.

What bothers me even more is the underlying architecture.

During my years as a web developer, I worked on WordPress projects that relied on WooCommerce and Advanced Custom Fields (ACF). One of the problems I encountered was the extensive use of the generic posts and metadata tables for storing different types of information.

Products, custom content, order records and associated metadata accumulated within a database structure that wasn't necessarily designed around the specific requirements of a growing online store.

Imagine what happens after several years in production. The amount of data increases, queries become more complicated, and poorly optimized operations start consuming more server resources.

Then add multiple plugins, a mixture of procedural and object-oriented PHP, hooks, filters and dependencies between components.

Something that should have been a relatively simple modification can suddenly require understanding several layers of unrelated code.

This isn't theoretical criticism. It's based on my experience working with actual WordPress projects.

I haven't worked extensively with OpenCart, so I won't pretend to know all its architectural problems. However, the broader issue applies to any platform that is selected primarily because it's popular or inexpensive to implement.

What has changed in WooCommerce since 2020?

When I originally published this article, WooCommerce stored orders using the WordPress posts and metadata tables.

Since then, WooCommerce has introduced High-Performance Order Storage (HPOS), which uses dedicated database tables for orders. It has been enabled by default for new installations since WooCommerce 8.2, released in October 2023.

You can read more about it in the official WooCommerce HPOS documentation.

This is a welcome improvement. It also illustrates why choosing an appropriate data structure matters in the first place.

My criticism isn't that WordPress can never be improved. It's that developers and businesses should understand the architectural limitations of the software they choose before committing to it.

The hidden cost of saving development time

I understand why businesses prefer ready-made solutions.

Building a custom CMS requires a capable developer, time and money. Installing WordPress and purchasing several plugins can be considerably cheaper at the beginning.

But software development doesn't end when a product goes live.

A business might save money during the initial development phase and then spend years paying developers to resolve compatibility issues, optimize database queries, maintain dependencies and work around architectural limitations.

Was the original decision really that economical?

Consider the costs that accumulate throughout a project's lifetime:

  • Maintaining third-party dependencies and plugins.
  • Resolving compatibility problems after updates.
  • Paying recurring licensing fees.
  • Working around functionality that doesn't fit the project.
  • Optimizing architecture that wasn't designed for the actual workload.
  • Replacing components that are no longer maintained.

Custom software has its own maintenance costs. You're responsible for its security, documentation, testing and future development.

However, you also have greater control over the architecture and can make decisions based on the actual requirements of your product rather than the limitations of someone else's solution.

That's a trade-off worth considering.

Why I wanted to build my own screen capture application

Another example from my personal experience is Snagit.

It's a fairly good application for capturing screenshots and recording your screen, although I felt there was room for optimization and bug fixes.

But why should I have to purchase an entire application when I only need a particular set of features?

I've always preferred software monetization models that give users more flexibility. Optional paid features or subscription plans with a genuinely useful free tier are more appealing to me than requiring everyone to purchase the entire application upfront.

Of course, someone could suggest downloading a free alternative.

The problem is that free alternatives don't necessarily meet my requirements either. Some lack important features, some perform poorly, and others are no longer actively maintained.

So, back in 2020, I started experimenting with my own screen capture application in C++.

My intention was to make it freely available through my repository, keep its resource consumption low and implement the functionality I actually needed.

Would my application immediately become better than Snagit? Probably not.

But I would understand its implementation, control its development and gain practical experience with screen capture and resource management.

Simply purchasing another application wouldn't give me any of that.

Building my own MMORPG server

Since I originally wrote this article, I've continued working on projects that follow the same principle.

One of the largest is Mirenhold, my independent MMORPG built with Unreal Engine and a custom C++ game server.

Developing the server myself means dealing with network communication, sockets, packet processing, concurrency, game logic and synchronization between the server and the game client.

These are problems that existing multiplayer frameworks and backend solutions can help solve. Building my own implementation requires more effort, and I'm responsible for the consequences of my architectural decisions.

But it also allows me to design the server around the requirements of my game.

When I need to change how packets are processed, how entities communicate with the server or how a gameplay system is implemented, I have direct access to the underlying code.

I don't have to treat the server as a black box.

The project has already reached the point where I've published a playtest on Steam.

For me, the experience gained throughout its development is another reason why building something yourself can be worthwhile, even when alternatives already exist.

When should developers reinvent the wheel?

I don't think every project needs a custom framework, networking library or database engine.

The decision should depend on the requirements, risks and expected lifetime of the software.

ConsiderationUse an existing solutionBuild your own
Development timeFast delivery is essentialInitial development time is acceptable
RequirementsExisting functionality fits wellExisting solutions impose significant limitations
ArchitectureThe existing design suits the projectGreater architectural control is needed
MaintenanceThe dependency is reliable and actively maintainedYou can realistically maintain your implementation
LearningThe implementation details aren't important to your goalsUnderstanding the underlying technology is valuable
Long-term costReusing software reduces overall costsA custom solution may reduce recurring costs and workarounds
SecurityA mature, tested implementation reduces riskYou have the expertise and resources to manage the risks

I wouldn't recommend writing your own cryptographic algorithms or replacing a reliable security-critical library simply because you dislike dependencies.

There is a difference between making an informed engineering decision and introducing unnecessary risks.

What I disagree with is rejecting custom development before even evaluating whether it makes sense.

Does AI change the way we approach custom software?

When I wrote the original version of this article in 2020, modern AI coding agents weren't part of my development workflow.

Today, I regularly work with large language models and AI-assisted development tools.

They introduce another consideration into the decision between building something yourself and using existing software: the amount of effort required to create a custom solution.

An AI coding agent can assist with implementation, prototyping, documentation, debugging and repetitive development tasks.

This makes it worth reconsidering some situations where custom development was previously too time-consuming to justify.

But generating code more quickly doesn't eliminate the need to understand it.

Someone still needs to design the architecture, evaluate the implementation, identify security problems and maintain the resulting software.

Replacing dependency on a framework with dependency on an AI agent doesn't automatically make someone a better programmer.

The ability to understand and evaluate a technical solution remains important, regardless of who or what wrote the code.

Reinventing the wheel makes you a better developer

This is ultimately the most important part of the discussion for me.

When you build something yourself, you start understanding problems that other people's software normally hides from you.

You learn why certain architectural decisions were made. You encounter performance bottlenecks, discover limitations and start thinking about how things could be implemented differently.

Sometimes you even gain a better appreciation for the existing solutions you originally criticized.

That knowledge remains useful even if you eventually decide to use an established framework or library instead of your own implementation.

I'm not suggesting that you should build an operating system from scratch just because you need somewhere to run your applications.

But if you're a web developer, do you really need WordPress to build your own personal blog? Do you need another plugin for a feature you could implement yourself? Is the most popular framework necessarily the righ