Six Principles That Guide How I Design Software

Developing software involves more decisions than it might first appear.

Which programming language should I use? How many features should I implement? How should I distribute the program? How many system resources should it consume?

Different developers have different priorities. Some value development speed, while others emphasize the range of features or the user experience.

Over time, I have developed my own set of preferences too.

I do not think these principles will suit every developer. In fact, readers may disagree with several parts of this post.

Some may object to my preference for simplicity over a broad feature set, or to my decision not to include certain accessibility features in standard releases.

These are personal design preferences, not universal rules. I want to record the criteria I use when designing and building software rather than claim that my choices are the correct ones.

At the moment, six principles matter most to me.

1. Make software portable whenever possible

The first thing I consider when building a program is whether it can be portable.

Portable software generally refers to programs that can run without a separate installation process.

On Windows, for example, many applications use installers that let you choose an installation location and register various components with the operating system.

Portable applications, by contrast, can often be run immediately after downloading an executable or extracting an archive.

Of course, not every portable application is completely self-contained. Some depend on components already installed on the operating system, while others store settings or caches elsewhere.

Even so, I prefer avoiding installation whenever possible.

I do not want unnecessary traces left on the system

My biggest reason for liking portable software is that I want to keep my system as tidy as possible.

Sometimes I install a new application just to try it, use it a few times, and then remove it.

Some programs leave configuration files, caches, or registry entries behind even after being uninstalled.

Those files are not necessarily harmful. They may be legitimate ways to preserve settings or improve startup performance.

Still, I do not particularly like having traces of software I no longer use scattered throughout the system.

This matters even more to me with small, single-purpose utilities.

Does a program that converts a file format or performs one simple task really need its own installer?

That is why I want to distribute my programs as a single executable whenever possible.

For Windows software, one EXE file is my ideal format.

If a program needs additional assets, libraries, or runtime files, I also like distributing them alongside the executable in a ZIP archive.

Users can extract the archive and run the program.

When they no longer need it, deleting the extracted folder removes most of the program's files.

I cannot guarantee that this leaves absolutely no trace. Windows may retain execution history, temporary files, or system caches.

But if the program is designed not to require global configuration or operating-system registration, I believe removing it can be much simpler than removing a typical installed application.

What if installation is unavoidable?

This does not mean I intend to force every program into a portable format.

Some applications need to register operating-system services or install drivers.

For those programs, an installation process may be unavoidable.

I do not intend to make such software artificially portable at any cost.

Instead, if installation is necessary, I want removal to be as simple as possible too.

For example, when a Windows application must install a system service or driver, I would like to provide a PowerShell removal script where feasible.

Rather than having users search for complicated commands on their own, I want them to be able to follow instructions and run a script that cleans up the relevant components.

Administrator privileges or a restart may still be necessary, and the removal steps will depend on what was installed.

Even so, I do not want to build programs that are convenient to install but cumbersome to remove.

For me, portability means more than the absence of an installer.

My most important principle is to make it easy for users to start using a program—and just as easy to leave it behind when they no longer need it.

2. Spend more resources during development to reduce the user's burden

My second principle concerns computing resources during development and execution.

I am willing to accept higher resource consumption when building or packaging a program.

In exchange, I want the finished program to use as few resources as reasonably possible on the user's computer.

A developer may build a program a limited number of times, but the finished software can run repeatedly on many users' computers.

If spending a little more time and computing power during development saves resources whenever users run the program, I consider that a meaningful trade-off.

Of course, this is not always the best choice.

If development costs become excessive, or if substantial optimization work produces almost no practical benefit for users, that may not be a reasonable investment.

Nevertheless, where possible, I prefer bearing more of the cost during development.

This is also connected to why I like Rust

This way of thinking is one reason I like Rust.

In my earlier post, “Why Rust Is My Favorite Programming Language”, I explained my views on memory management, system resources, and software distribution.

Rust uses ownership and borrowing checks to catch many memory-safety problems at compile time.

Compiling Rust code can take considerable time and computing resources, but finished programs can manage memory without a conventional tracing garbage collector.

That is one of the language's appealing qualities for me.

In some of my own projects, I have found that simple API servers and backend programs written in Rust used significantly less memory than versions I built with Python or Node.js.

That is an observation from my projects, not a universal benchmark.

A Rust program is not automatically faster or more memory-efficient than one written in another language. Libraries, runtimes, data structures, and implementation choices can all change the outcome.

Python and JavaScript may also be better choices for developer productivity or their library ecosystems.

Even so, Rust has been a good match for the kinds of programs I often build.

For small utilities and background processes in particular, I value the ability to limit unnecessary resource consumption at runtime.

To me, how a finished program behaves on the user's computer matters more than shaving a little time off the build process.

3. Keep memory usage as low as reasonably possible

My third principle is memory efficiency.

I pay close attention to how much RAM my programs use.

My main desktop operating system is currently Windows.

When using Windows, Task Manager can sometimes show a substantial amount of memory in use.

This reflects not only running applications but also operating-system services and caches.

Windows may use available RAM for file caches and standby memory. Some of that memory can be repurposed when other programs need it.

So it would be inaccurate to treat all memory reported as in use as permanently unavailable.

At the same time, it would also be wrong to dismiss all reported memory consumption as fake. Applications and the operating system genuinely need some memory, and not all allocations are readily reclaimable.

What matters to me is that the operating system and other applications need RAM too.

I would like my programs to consume as little of that shared resource as practical.

I design with an 8 GB RAM environment in mind

Some ordinary desktops and laptops still have 8 GB or 16 GB of RAM.

Many machines have more, of course, but I do not want to assume every user has abundant hardware resources.

When I develop relatively lightweight utilities, I therefore try to design them so that they can run in an 8 GB RAM environment.

That does not mean I plan to create an 8 GB virtual machine and conduct long-running tests for every application.

Repeatedly testing every project across many hardware configurations would impose significant time and maintenance costs on me as an individual developer.

I do not intend to do that level of validation for every project.

Instead, I try to limit the program's own memory requirements from the design stage.

For example, with file converters, simple image-processing tools, or small system utilities, I would like to aim for a memory footprint of no more than about 1 GB under ordinary usage conditions.

That leaves some room for the operating system and other applications, even on an 8 GB computer.

Of course, this is not an absolute limit.

Some workloads or larger input files may temporarily require more memory.

Requirements also vary enormously by type of application.

It would be unrealistic to restrict games or large-scale data-processing software to 1 GB.

Reducing memory use at the expense of a program's actual purpose is not good design either.

What I want is not simply a low memory figure, but to avoid consuming far more memory than the program's functionality reasonably requires.

The 1 GB figure is a personal design target for certain kinds of utilities, not a strict rule for everything I build.

4. Be willing to remove features that are not necessary

My fourth principle is simplicity.

When I build software, I would rather have the features that truly matter work properly than offer a long list of features.

Adding a feature does not necessarily end with adding a button or menu item.

It may bring more code, dependencies, test cases, documentation, and maintenance work.

Something that initially looks small can gradually increase a project's complexity.

So before implementing a feature, I try to ask whether it is really necessary.

A feature that might be nice to have is not necessarily one that people need.

If its purpose is unclear, its benefit is limited, and it mainly adds maintenance work, I would rather leave it out.

I want to make programs that accomplish a clearly defined purpose simply and reliably, not programs that attempt to support everything.

My personal approach to accessibility features

There is a part of this principle on which people may strongly disagree.

It concerns accessibility.

Accessibility helps people with different needs use software. It can include keyboard-only interaction, screen-reader support, and adjustments to visual presentation.

I recognize that some users depend on these capabilities.

However, for my personal projects, I currently do not plan to implement and continually maintain extensive accessibility features in the standard release.

This is not because I consider accessibility unimportant.

Supporting a broad range of accessibility requirements can involve different environments and assistive technologies. Every new version may also require checking that those features still work properly.

As an individual developer, I find the cost of implementing and maintaining every requirement difficult to take on.

I may, of course, implement basics such as keyboard interaction that improve a program's general usability.

But at present, I do not plan to include detailed screen-reader integration or specialized features for particular usage environments in the standard version.

I have considered an alternative approach.

If someone who wants to use my software needs a particular accessibility feature, they can contact me by email.

After understanding the request, I may be able to create a separate branch or fork of the source code, add the requested feature, and provide a customized build.

This would let me address an actual need without adding the feature to the standard distribution.

I cannot promise to accept every request or guarantee a customized version. Whether I can do it will depend on feasibility and the work involved.

I also do not intend to maintain two continuously updated editions—one standard and one accessibility-focused—for every release.

The idea is closer to building a separate version from the current source code when a specific request arises.

I do not believe this approach is ideal for every user.

Having to contact me and wait creates an additional barrier, and a customized build may not receive continuous updates.

I recognize those limitations.

Even so, given the scale of my projects and the amount of maintenance I can take on, responding to specific requests seems more realistic to me than promising all features in every standard release.

5. Release source code openly when possible

My fifth principle is open source.

Whenever practical, I would like to publish the source code of programs I write.

The biggest reason is that I have learned a great deal from code other developers have shared.

When I ran into problems while learning programming, I read official documentation, but I also frequently looked at how others had solved similar issues.

When I found a project implementing something close to what I wanted, reading its source code helped me understand its structure and approach.

This is different from simply copying code.

Developers can solve the same problem in different ways, using different architectures and technologies.

I learned a lot by examining those differences.

Sometimes I discovered techniques I would not have considered by myself. At other times, they made me reconsider problems with my own code.

I would like to leave behind code that might serve as a useful reference for someone else.

I prefer the MIT License

The license I would generally like to use is the MIT License.

It is a relatively short, permissive software license that allows use, modification, and redistribution provided its copyright and permission notices are retained.

I am generally comfortable with other developers studying the code I share or using it in their own projects.

Of course, the MIT License will not necessarily be appropriate for every project. Third-party code, license compatibility, and the project's purpose can require different choices.

Some repositories on my GitHub account also do not yet contain a LICENSE file.

I plan to address that.

The fact that source code is visible on GitHub does not automatically mean that other people have permission to modify and redistribute it.

It is important to specify an appropriate license for projects intended to be reusable.

I want to pay more attention to that in future releases.

I do not intend to publish every small project

This does not mean I want to upload every program I write to my current GitHub account.

I would prefer to keep my main account focused on larger projects or projects I intend to continue developing.

If I put every small experiment or personal utility in the same place, I worry that the list of repositories would become cluttered and make the projects I actively manage harder to find.

There is nothing wrong with publishing small libraries and personal projects. Many of them are genuinely useful to other developers.

I simply want my own main account to remain relatively organized.

In the future, I might create a separate account for small projects and personal tools.

That is only a possibility for now, not a definite plan.

My goal is not to maximize the number of public repositories.

It is to share code I believe is worth publishing in a useful form, so that other developers may benefit from it.

6. Record how problems were solved

My sixth principle is to document the process of solving problems.

A relatively recent experience made this especially important to me.

While developing an Instagram DM bridge plugin, I encountered an error related to the Meta API.

I could not identify the cause easily, and resolving the issue took considerable time.

I described the technical details in “Two Days Chasing the 2534022 Error”.

Here I want to focus on what I learned from that experience.

I found reports of success, but not the solutions

I searched through many resources while trying to fix the error.

Other people had encountered similar problems, but I struggled to find a concrete explanation of how they had resolved them.

Some posts merely said that the author had modified backend source code. Elsewhere, I found traces of responses or comments whose actual solutions were not publicly visible.

I could see that someone had solved a problem, but not what they had changed or why it worked.

At first, I did not know how to approach my own issue either.

I examined the error messages and investigated several possibilities without immediately finding the cause.

Eventually, after numerous attempts, I identified a problem involving webhook configuration and got things working.

That made me wonder whether the process I went through might help someone else.

Of course, another person's error might have a different root cause even if the error code is identical.

That is precisely why I think it is important to record the environment, the things I checked, and the steps that actually helped.

I want to record failed attempts, not just the successful fix

I want to document not only the result of resolving a technical issue but also the path I took to get there.

That includes what I first suspected, what I tried, and why certain attempts did not work.

Such information can be useful in a different way from documentation that provides only the final answer.

Learning that a certain approach failed may save someone else time.

I cannot record every error and every experiment, of course.

Documenting every trivial issue could take more time than solving the issues themselves.

So I want to focus on problems I spent a long time investigating, or those for which I could not find a clear solution despite searching.

I have not yet decided whether these records should remain regular blog posts, move into a dedicated troubleshooting category, or live in a GitHub issue tracker.

But I want to keep sharing what I learn from solving difficult problems.

Other people's records have helped me countless times.

I hope my own records can eventually help someone else too.

Another preference: English comes first in project documentation

Beyond the six principles above, I also have a preference about documentation.

Where possible, I want to write project documentation in English first.

It is not because my English is perfect.

A great deal of software-development material is written in English, and using it can help more developers understand a public project.

My preferred language order for documentation is English, Korean, and Japanese.

Korean is the language I am most comfortable with, while Japanese is a language I am studying.

That is also why this blog currently supports all three.

However, I see blog posts and software documentation somewhat differently.

A blog post can be written and translated as a finished piece. Software documentation often needs to change whenever features are modified or new versions are released.

Keeping documentation up to date in several languages can become a considerable burden, particularly for frequently updated software.

That is why I expect most project documentation to be available primarily in English and Korean.

I would also like to provide Japanese documentation where possible, but I cannot promise it for every project.

I intend to support languages within the maintenance capacity I have as an individual developer.

What happens when these principles conflict with reality?

So far, I have explained the six principles I care about.

But do I think they must be followed without exception?

No.

I prefer portable software, but some programs need installation.

I want low memory consumption, but a program's purpose may require substantial resources.

I value simplicity, but a feature that a particular user genuinely needs may be worth implementing separately.

I like open source, but I cannot publish every project.

While developing software, there will inevitably be moments when personal preferences and practical requirements conflict.

When that happens, I want to consider the program's purpose and the amount of work I can realistically maintain rather than cling rigidly to a principle.

That does not mean I plan to abandon my standards whenever things become inconvenient.

Having a set of criteria to return to when making difficult choices matters in itself.

That is why I wanted to write down these six principles.

Closing thoughts

In this post, I have described six principles that matter to me when developing software.

I prefer portable distribution, reducing runtime costs for users, keeping memory usage modest, removing unnecessary features, publishing source code where possible, and recording the process of solving problems.

They may seem like separate concerns, but for me they point in a similar direction.

I want to avoid placing unnecessary burdens on the people who use my software, while building simple and efficient programs within the limits of what I can develop and maintain.

I know many developers will disagree with these choices.

Some may place more importance on a wide range of features. Others may prioritize accessibility or support for multiple platforms.

Those can be entirely reasonable decisions too.

I do not want to claim that my approach is inherently superior.

I am also still learning.

I do not know whether every principle I value today will remain unchanged.

A future project may show me that something I believed was mistaken, or that an issue I had overlooked is more important than I realized.

If that happens, I am willing to change my approach.

This post is not a declaration of permanent rules. It is a record of how I currently think about building software.

As I create more programs, I would like to look back at how these principles work in practice and how they may change.