IT projects age faster than products in other technology industries. This is driven by the dizzying pace of development of solutions, approaches, work methodologies, ways of designing, trends and other things the IT world is famous for, as well as by the specifics of working in it. But by "aging" we do not necessarily mean that systems available for many years become unusable. Yes, that happens, but remember that software is constantly updated. The passage of time affects the structure of a project's source code and its architecture more. The people who start a project are sometimes different and have different knowledge than the team looking at the software many years later. We call this kind of code "legacy code", and we talk about it mainly in the context of other developers or even companies taking it over.

Today, however, we will not approach this topic from the software house's side (although the time may come for that). If you are more interested in the issue from that perspective, I recommend the text on the Britenet company blog, and in the meantime we will approach the topic from the other side: the client's.

Over the years of working and playing as a programmer, I have seen the various assignments that clients bring. They often bring their own ideas for a project they want to build and develop together with us. That is the foundation of how software houses work, and of both sides' satisfaction with a job well done. But there are also situations where someone needs to continue work on software that the company did not originally start. The reasons vary a lot and we will go through them today, but above all this text is meant to make you, dear clients, aware of what such projects involve from the contractor's side, which you should understand.

What are the characteristics of "legacy" projects?

Building any application involves some agreements and assumptions about how its code is written. We usually talk about this in the context of software architecture, but sometimes it also concerns more detailed matters, such as patterns for building screens, naming, and so on. People who have been in the project from the start usually know these guidelines and try to follow them. Sometimes documentation is skipped in the process, because it is considered unnecessary: "everyone knows what is going on" (interestingly, sometimes this argument really does make sense, but that is for another occasion). Well...

Developers who join a project later do not have this comfort, let alone a company that takes over code from another one. It is only half bad if the application was written according to the recommendations of the given framework or generally good practices. Then you can find your way around it a bit faster, because what the engine's documentation recommends will match. Often, however, the reason for moving a project is dissatisfaction with the previous team's work, which does not have to be, but may be, connected with other not very pleasant issues, including a mess in the code.

There are so many frameworks and languages that you have to be aware that a company taking over a project from someone else will usually not be familiar with the libraries already used in the software. They need to be learned, analyzed and adapted to. For example, code written in PHP does not mean that any developer who programs in that language every day will automatically jump right in. It will be easier for them, of course, but you often have to learn a specific engine and its peculiarities thoroughly. There are also more extreme situations, where the project is not written in any popular technology and everything is the original author's own invention, from the structure of the application to the way of authenticating users. That can sometimes be a good approach (especially for performance), but much more often it is an obstacle for the developer taking over the software.

To help you understand what this is about, I will give an example from a completely different industry: a car repair shop. A mechanic working in such a place knows cars well and will gladly take care of your vehicle when you drive up and ask a specialist for help. What is more, they will probably have no trouble figuring out how the vehicle is built. Why? Because all of them are built in more or less the same way and (forgive me here, I am not an expert) it is simply known where everything is and how it works or should work. Now imagine there is no "standard" for designing cars mechanically, and everyone builds them their own way, in their own garage, from parts and instructions found on the Internet. Some common patterns supposedly exist, but in reality people work out the details on their own to a large extent. What is more, not everyone uses the same type of engine, because some daredevils have appeared who base their cars on electricity. Now imagine the mechanic to whom such "customized" vehicles are brought, and who has to find his way around them and also repair them or install additional mechanisms. He will probably manage, but the road to it is longer, because he has to learn each car from scratch (most likely without documentation) and adapt his procedures to it. That is exactly how a developer feels when given a project to develop that they have never worked on. Applications are supposed to be built in a similar way, but usually they are not, because there are many paths to good software and people can take any of them. Or blaze their own trail...

When does a project need to be handed over?

The situations in which clients came to us with their existing applications were really varied. But they can be divided into three categories:

  • the contractor withdraws. This is the more "positive" kind of parting, resulting from the previous contractor ceasing to provide services, for example because of staffing problems or even a change of industry. With this kind of handover there is more often a chance for the new IT team to contact the previous one, ask about various details, or even arrange occasional consultations.
  • the client withdraws. This kind of parting is usually connected with dissatisfaction with the previous contractor. The reasons can again be all sorts: from a higher price, through a clear drop in quality, to friction over business arrangements. In such cases the client is more determined to find a new company to look after the project, while the previous contractor is, for obvious reasons, unhappy and may not want to cooperate at first.
  • a project started by the client. It happens that the client started on the software personally, but it became too much, or they ran out of time, for example, and it looks promising. In that case the new contractor can usually count on the client's full support, because the client is not only the originator of the idea but also the original creator of the application.

In a word, a project handover never happens for no reason. Most often the source is software that keeps growing, and the original contractor has trouble maintaining it (after it has already been published). It is not always actually their fault. You have to consider the real quality of the developers and infrastructure, but also the budget and the client's ambitions. That is not a topic I want to raise here, though. The fact is that moving a project to another contractor involves some adaptation time and never happens "just like that".

And what projects get moved? Here too we have two main categories:

  • projects that are not finished yet and need polishing or missing features implemented
  • projects already live in production that are being developed further

We have seen both cases more than once in our company's career. Is either of them easier to take over? In theory the first, because they are not on a server yet, and any fixes and update deployments (which are always hard the first time) will not temporarily block users. But everything depends on the situation and the specific project.

How to prepare a project for takeover?

In other words: what will a software house ask when you turn up asking it to finish a program or take over its maintenance? You need to be aware that, just as when starting a completely new application, the contractor must be familiarized with the project's requirements and specification. It is even slightly easier here, because developers can "read up" on some things in the code or "click through" them themselves if they are already built. In addition, though, there are a number of things the client should have at hand when choosing a new contractor and wanting to pass on their knowledge.

  • current state of the project: this applies especially to software that needs to be finished, and describes how far the work has gone.
  • access to the source code: a very important point, especially for non-PHP applications. Clients rarely realize that access to the resulting files on the server is usually not enough to develop an application (written in Angular, for example). The source material is needed, which the previous contractor has, but they should share it with the client (who under most contracts has the right to dispose of this code). Remember: without the sources, nobody will take over your project. Even in PHP it is worth having them, because not all the files needed for developing the software end up on the server, where they could be downloaded.
  • access to the server (if there is one): related to the previous point. It is often the first step toward getting to know the new project and finding your way around its code (if it is available there).
  • project documentation: I mentioned this earlier, and this is usually the biggest problem. Specifications and technical descriptions are usually prepared for larger IT systems, which, not only after a change of contractor but also for the original company, can be complex enough to need describing. The problem with documentation, though, is that preparing it takes time, which nobody ever has enough of. That is why agile methodologies introduce in their manifesto the principle "working software over comprehensive documentation". It is a sound principle, although many people may fall into the trap of concluding that they do not need documentation at all. But that is a topic for another article.
  • time: perhaps trivial, but besides starting the work itself, the contractor needs initial (paid) time for analysis and getting to know the project, which usually also includes setting up the software on local computers, and consultations.

Regarding the last point, you must be aware that no matter how much time is spent getting to know the project, after that time things will always appear that raise doubts and make the following specific tasks harder. That is normal. It is a mistake to assume that during the first stage developers will learn every nook and cranny of the code and the application. Often that is not possible, because it is not always clear what to look for. Some understanding is needed here.

Does it make sense to rewrite a project from scratch?

Sometimes you hear the sentence "it is easier to write this project from scratch than to rework it". From a developer's point of view this is often a sound approach, especially if the code is not well written. From a business point of view, though, such a path usually makes no sense, because it is better to struggle even with a badly written project and refactor it piece by piece (change and modify it without changing functionality) than to write everything anew.

Again, everything depends on context. It is rare for a taken-over application to be so small that it pays to create it from scratch, and besides, with software that small it is fairly easy to make the needed corrections. Much more often a "legacy" project is large and extensive, and starting it from zero means a very large number of hours. There are situations where clients decide on it, though, for example when taking over the project also means refreshing the UX (User eXperience) and the mechanisms on the site. Then creating what is really a new application modeled on the existing one makes sense.

This depends on the specific situation, project, client and contractor. Usually, however, a "legacy" project is maintained, not "remade".

Summary

Changing the contractor for existing software is usually not an easy process, but sometimes a necessary one. Remember that maintaining code and a running application is often an underappreciated, but the most time-consuming, stage of a project's development. Both sides, the one commissioning and the one delivering, have to accept this and know that sooner or later they will come across a "legacy" creation. The key is good preparation for such an undertaking, and understanding on the client's side that the procedure of such a transfer takes time and resilience to the many surprises that will happen along the way.

Best regards and thank you - Jakub Rojek