Vezi pagina în română

IT Glossary

What is source code?

The text written by programmers from which an application is produced — the recipe of the software; whoever owns it controls the product.

6
sections
5
questions answered

Source code is the text of a program: the instructions programmers write in a programming language (PHP, Python, Java, JavaScript), in files a person can read and change. The computer does not run it as written: a compiler translates it into machine code, an executable file, or an interpreter runs it directly. If the application is the cake, the source code is the recipe. The distinction looks academic right up until the first parting of ways with a supplier: whoever holds the recipe can modify, repair and develop the product further, while whoever holds only the cake can, at best, eat it. Hence the genuinely important question about any custom-built software: who owns the source code, and where does it live? A healthy contract either assigns the rights and hands over the code — ideally with continuous access to the Git repository rather than a zip file on a memory stick at the end — or at minimum grants a broad licence plus an escrow arrangement in case the supplier disappears. With off-the-shelf software you do not get the code, and that is entirely normal. With bespoke development you paid for, the absence of these clauses means you are financing a product you do not legally control. Check it before signing; afterwards, your negotiating position has evaporated.

Why it matters for your business

Freedom to change supplier

With the source code and its documentation, any competent team can take over development — the relationship with your supplier stays a choice rather than a captivity.

A real company asset

Software whose code you own is valuable intellectual property, and it counts in fundraising, in a sale of the business and in financing conversations.

Guaranteed continuity

A supplier going bankrupt or simply disappearing does not bury the application your business runs on — the recipe is either with you or in an escrow you can trigger.

From source code to a running program

Compiled languages (C, C++, Go, Rust) pass the code through a compiler, which produces machine code for one processor and operating system. The resulting executable can be shipped without the source. Java and C# compile to an intermediate format, bytecode in Java's case, run by a virtual machine: the JVM specification describes a class file as virtual machine instructions (bytecodes) plus a symbol table.

Interpreted languages, or ones run by a runtime (Python, PHP, JavaScript), need no separate compile step: the Python documentation says the language is interpreted and that no compilation and linking is necessary. The business consequence: a web application in PHP or Python keeps its source code on the server, so whoever controls the server and the Git repository controls the code. From a compiled program alone you cannot recover the readable original.

What source code looks like

One line, if (stoc < 5) trimiteAlerta();, tells the program to send an alert when stock falls below 5 units. A real project means hundreds or thousands of such files (.php, .py, .js, .java), plus configuration, database migrations, tests and build scripts, kept in a Git repository with the full history of changes.

The Open Source Initiative's definition shows what counts: source code is the preferred form in which a programmer would modify the program. That is why an obfuscated or minified copy is not source code, even if it holds the same logic.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

Directive 2009/24/EC, art. 1(2), protects the expression of a computer program in any form, but not the ideas and principles behind it. Romania's Law 8/1996, art. 73, says the same: programs are protected whether in source code or object code, together with preparatory design material and manuals, while ideas, procedures, methods and principles are not.

Under art. 2(3) of the Directive, and art. 75 of Law 8/1996, the economic rights in a program written by an employee in the course of their duties belong to the employer unless the contract says otherwise. At a software firm, that means the firm, not the client who pays. Romanian law (art. 42–43) requires an assignment to name the rights, uses, duration, extent and payment, and to be in writing to be provable. The handover checklist and contract clauses are the subject of the page on who owns the source code.

Open and closed source

Open source code is published under a licence that lets anyone read, change and redistribute it; the Open Source Definition requires that the program include source code and allow distribution in source as well as compiled form. With closed (proprietary) software the vendor keeps the code and you receive a licence to use the program: by default under Law 8/1996, art. 76, a non-exclusive, non-transferable right.

With off-the-shelf software it is normal not to receive the code. With bespoke development you paid for, the code should reach you.

Frequently asked questions

I paid for the development — is the source code automatically mine?

No. Absent an express clause, copyright normally remains with the developer; paying the invoice does not transfer intellectual property (Romania's Law 8/1996, art. 42–43: an assignment is in writing and names the rights, uses, duration and price). Ask for assignment of the economic rights and handover of the code with its full history.

What is source code escrow?

An arrangement where the code is deposited with a trusted third party and released to you in defined situations, such as the supplier's insolvency or the end of support. It is the standard answer when a supplier will not assign the code to their own product but you depend on it critically.

How do I verify that I received all of the source code and not part of it?

The definitive test: can an independent team build a working application from what was handed over? Ask for documented build instructions at handover and, ideally, a supervised trial build. An archive nobody can compile is a handover in name only.

What is the difference between source code and an executable?

Source code is the text people read and change; an executable is machine code, produced by a compiler, that the processor runs. You can change and rebuild an application only from its source code, which is why the source matters in any handover.

Can you get the source code back from a compiled application?

Not the original: decompiling gives hard-to-read code, as a rule without the original comments and often without the original names. Without the rights holder's consent the law allows it only for interoperability (Law 8/1996, art. 79; Directive 2009/24/EC, art. 6). So ask for the source code at handover.