This article will cover the top five different tools to optimize software development. These five tools will surely improve any software developer’s productivity. The technology or language you are working with may evolve, but if you can understand these five tools you are good to go.
The first one is a good editor. A good editing tool might be generic or specific. It can be an editor or it can be an editor tool within an IDE (integrated development environment). If you are a web developer, notepad might not be the best tool. Many web developers prefer Atom or Sublime. If you are working as a backend developer you may prefer Visual Studio. For Java there are many tools like Eclipse, Netbeans, IntelliJ.
Choosing a proper IDE is an important way to increase your productivity. There are different IDEs available for technologies like PHP or Ruby.
Visual Studio: https://visualstudio.microsoft.com/
Writing code in the right tool is significantly important. Using a good editor, like sublime text, will surely improve your productivity. Using IDEs increases the speed of development tasks, reduces setup time, keeps developers updated and standardizes the development process.
Back in the day, people used to share their code via email when working on a project. Then came SVN and now we have moved to GIT. In GIT we specifically use GitHub, BitBucket, or Gitlab. It is very important to learn GIT as most software developers use it. GIT may be a public or private repository.
Learn GIT : https://www.tutorialspoint.com/git/index.htm
The most basic and fundamental difference between Bitbucket andGitHub is that GitHub is focused around public code, and Bitbucket is mostly used for private repositories. In a nutshell, GitHub has a huge open-source community while Bitbucket tends to have mostly enterprise and business users.
Linux and Mac users are familiar with shell. Most of the open-source programs are written in shell programming. Shell is also required for configuration. Learning shell, how to use command prompt and Powershell will surely help any developer.
Working with terminal/shell in Linux or command prompt/PowerShell in Windows provides an efficient interface to access the true power of a computer system more than any other graphical user interface.
Consider a team of developers working on a project who need to utilize peer to peer communication. Possible ways to facilitate this are via calls, email or discussion in a WhatsApp group. However, there is a special, helpful messenger service known as Slack. Initially it may not be that easy to move to Slack from other tools but once you start using it you’ll find it is very versatile. Once you get comfortable working with Slack it will improve teamwork and productivity which will make your clients happy.
Slack is an instant messaging system with lots of additional workspace features and an easy to use interface. The main functionality is team collaboration so the add-ins may not be necessary, though there are many different ways to cooperate and interact through the platform. Slack supports different types of communication methods:
Channels, or group chat, or direct message (DM) (person to person).
In earlier days we used to build a project and then deploy the entire project on the server. But now most developers follow the agile concept using CI - continuous integration. Consider you are part of a team in which multiple developers are working on the same modules. As a team you develop the project and after completion, combine the entire project and deploy it. If anything goes wrong it will be very difficult to find out what it is, where the bug is, and who made the mistake.
With CI, you can build the project and push it to the server continuously. If you are using an IDE you can just right click and push the data onto the server, which is responsible for CD. So we have:
CI (continuous integration): pushing the code to the server.
CD (continuous deployment): delivery/deployment of code.
The most recommended CI tool is Jenkins.
Why choose Jenkins over other tools?
Jenkins is an excellent free and open-source CI tool written in Java. Jenkins is platform independent and available for all operating systems: OS X, Linux, and Windows. Jenkins can also transfer and share test loads to several computers with different OS so there is no need to keep the same OS on all machines.
GitLab CI is an open-source service included with GitLab. To configure GitLab CI, owner/maintainer permission is required.
Creating GitLab CI/CD Pipeline :
Add .gitlab-ci.yml in the root folder on project/repository.
This file is used to configure the pipeline and defines structure and order of the pipeline.
Commit and push to repository.
Create GitLab runner for the project making sure the tags are the same as that provided in the yaml file.
Start the runner.
Now make any change to the project then commit and push.
The gitlab-ci.yml will check for any commits and push in the project. You can check for CI/CD jobs getting triggered under your project.
Setting up CI/CD in GitHub is super easy using GitHub actions. If there exists a process which can be automated after every push or pull request, the GitHub action is an important tool to consider. GitHub actions removes the need for third party CI apps like Jenkins.
Steps to set up simple workflow:
Go to your repository.
You can fork this simple Python program. Link : https://github.com/shubham-dota/PyGithubActions.git
This repository contains a simple Python program to find factorial.
Go to the actions tab and select the required workflow template or create your own.
This will create a workflow directory with a yaml file. I chose the Python application as my code deals with a small Python program.
Understanding the yml file :
name – configures the name of whole workflow
on – The on field is used to set up workflow triggers. This determines which action will trigger the workflow to run. In the above on field this would trigger the workflow on every pull-request or every push to master branch.
jobs – The jobs sections covers the build process, dependency installations, and tests. In the above field it will run a simple command to find the factorial of number 10.
Now commit the changes to the master branch and it will trigger the Github action.
This GitHub action will set up a Python 3.9 on Ubuntu-os on a temporary server managed by GitHub.
This is just a simple and generic method to set up GitHub actions. For setup for different programs please refer to https://docs.github.com/en/free-pro-team@latest/actions.