Good Code, Bad Code
In this article I will try to tell you what priorities should be set when developing software. I don’t like blablabla introductions, self-presentations and so on. So let’s get straight to the point.
I highlight four pillars in software development:
- Attractiveness
- Convenience
- Performance
- Predictability
In a matter of priorities:
Attractiveness -> convenience -> performance -> predictability.
It’s all the same for backend and frontend.
Attractivenes.
If something looks bad, we even dont touch it. It scares.
Convenience.
Is something that helps you do something rather than struggling to do it.
Performance.
System feedback allows to speed up the implementation of features and fixing bugs. Thus, we can make a sustainable, predictable system quickly and easily.
Predictability.
You may ask me why predictability has lowest priority even for backend? Backend is a functionality part of a system; things must work first you will say. Well, if we prefer predictability over attractiveness then our main goal is to build fast at any cost. Our software becomes ridiculous.
I will try to explain why I believe developer experience is the most important aspect of software development.
Text level
Visual impact is huge when we look at something. Then we touch it, use it and wait for response. Detecting -> interaction -> feedback. That is how we learning whatever.
People write code for people and not for machines
It is important that the organization of the text is attractive. Like the structure of a newspaper or magazine. We must immediately understand where everything is located and by what parameters it is grouped.
Get Ilia Emprove’s stories in your inbox
Join Medium for free to get updates from this writer.
When the code looks attractive, we want to get to know it further. And then comes understanding. When everything is structured logically, it is easier and more pleasant to learn what is happening in the program. When it is clear, the code is easy to use. Easy to use — fast feature delivering.
When we pull a new project from Git, we look at the folders and files. If we can quickly group the parts of the system, then such a system seems beautiful. We like to find patterns in everything.
pretty code = good code = understandable code
Beauty surrounds us everywhere. Software is also part of that environment.
What is ugly?
Legacy is not an old code, it is complexly organized code. If new architectural patterns, code style, naming are added to the program without control, then the program can be classified as legacy in a matter of months of development.
I believe that neatness is the main skill that a SWE (software engineer) should have. Neatness means striving to organize and group things around. Of course, this can be partially solved by a static analyzer, code style and other nuts, but an untidy SWE will write untidy code. A review will not help here. No one will spend hours on your MR. Do you hope to rewrite everything in the future? Let’s be honest, conceptual refactoring is a thankless task, no one seriously does it. It is unlikely that there will be volunteers to rake up your multi-year monolith of incomprehensible architecture with business logic woven into it like a crystal web. By doing everything in a slapdash manner now, you are carving your name into the stone vault.
Weeell?
When developing backend we should be focused on developer experience. Of course, dont forget to write tests.
When developing frontend we should be focused on pretty look. Of course, dont forget about user experience.
Be brave to make things simple, I know you are kung fu master, but please, dont show it to me unless you have strong research.
Oversimplifying is much better than overengineering.
Prefer neat engineers over “10x” developers.
Of course, you should focus on the purpose of the software.
If you are interested, next time I can tell you about my vision of hiring good engineers.
Thank you for reading. Please argue with me if you disagree with something.









