1. Making changes to the code
As I said earlier, software development boils down to making small changes to code. This process has been carried out by millions of programmers for decades, which has led to it being thoroughly debugged, standardized, and formalized in every possible way.
There is a special program for storing code: Git. Git is a distributed version control system. It does not just store code—it tracks all changes in it and helps programmers work on projects together without getting in each other’s way 🤝.
With Git, developers can create different versions of a project (branches), keep a complete history of changes, and even roll back to any moment in the past. It’s like a time machine for code! Git helps merge changes and resolve conflicts, which is why it has become the main tool for teamwork in modern development. 👩💻
2. Building the project
Before you can test a project or upload it to a server, you need to build it.
🏗️ Project build is the process of compiling a project’s source code into executable programs or other runnable formats, often including testing and deployment. This is a key aspect of software development that ensures the program is ready for use.
A build is not just compilation, although compilation is often part of the build process. After the build is complete, you may end up with dozens or even hundreds of files that need to be uploaded to various servers.
Build tools can be low-level, such as:
- ☕ Maven and Gradle are widely used in Java projects for dependency management and project builds.
- 🐜 Apache Ant is another Java build tool; it provides greater flexibility for writing build scripts.
- 🖥️ MSBuild is used to build projects created with Microsoft Visual Studio.
- ⚙️ Make is a classic build tool that uses a Makefile to define build rules; it is especially popular in C and C++ projects.
- 🌐 Webpack is often used to bundle JavaScript applications, managing dependencies and modules.
- 📜 Gulp and Grunt are tools that help automate frequently performed tasks in web application development, such as file minification and compiling SCSS to CSS.
There are also high-level build systems. More on them below.
3. CI/CD
🔄 CI/CD (Continuous Integration/Continuous Delivery) is a methodology that involves continuously merging changes from all development branches into the main branch, as well as automatically testing and deploying those changes. This makes it possible to quickly detect and fix errors, improving efficiency and development speed.
One of the most common, though somewhat outdated, CI/CD systems is Jenkins. If you work at a small company, there is about an 80% chance they will use it.
🤖 Jenkins is a popular automation system used for continuous integration and delivery (CI/CD). Jenkins makes it possible to automate various stages of software development, including building, testing, and deployment, which improves code quality and speeds up the development process.
If you end up in a large company, there may be about five more options to choose from:
- 🚦 TeamCity is a powerful commercial system by JetBrains. It offers deep integration with various development and testing environments.
- 📝 GitLab CI is a built-in part of GitLab; it provides continuous integration and delivery with configuration via YAML files.
- ☁️ CircleCI is a cloud CI/CD service that supports automated testing and deployment for many projects.
- 🦑 Travis CI is one of the first cloud CI services used by many open-source projects. It integrates well with GitHub.
- 🎍 Bamboo is a product by Atlassian; it integrates closely with other tools from that company, such as Jira and Bitbucket.
You do not need to know them or be able to work with them—companies usually have DevOps specialists who set up all these processes. You just need to know they exist and understand what people are talking about if Jenkins, CI/CD, or “continuous integration” comes up in conversation.
4. Delivering the project to the server
Writing a project is not enough—it also needs to end up on your server. In general, deploying (deploy) a project to a server is the process of placing and activating a web application on a server so that it is available to users over the internet 🚚.
This process includes transferring project files to the server, configuring the server environment, databases, and dependencies, as well as setting up networking and security 😅.
How do you think your code gets to the server? Will someone upload it there? Or maybe you will connect to a remote server via SSH, upload a couple of files, and configure everything manually? Relax: no one does it like that anymore. Now there is Docker.
🐳 Docker is a platform for developing, delivering, and running applications using containers. Docker simplifies creating, deploying, and running applications by packaging them together with all dependencies and the environment into a single compact object. This ensures environment consistency across all stages—from development to testing to production.
Docker lets you package your project (or projects) into a Docker container. It’s something like a virtual machine.
And although on any Docker forum people will roast you if you call it a “virtual machine,” you can think of a Docker container as a virtual machine—just a much more lightweight one.
Essentially, a Docker container is a “virtual virtual machine”. Virtual machines include a full copy of the operating system, the OS kernel, and virtual hardware, while Docker containers share the host kernel and can be lighter and faster ⚡.
Deploying a project with Docker greatly simplifies the process, providing speed and reliability. The project is packaged into Docker containers, which can be easily moved and run on any system that supports Docker 🚢.
This eliminates problems related to differences between server environments and makes it easy to scale an application by adding or removing containers depending on load. Everyone has switched to Docker—it’s very convenient and very simple.
GO TO FULL VERSION