DEV Community

Geshan Manandhar
Geshan Manandhar

Posted on

4 pillars of a reliable software application and tools to support it

Software development is not just punching some code on the keyboard for desired output. The business side of software development always takes priority than the technicalities of it.

I have seen some software development teams are slow because they have a lot of technical debt. Some teams are naive, the members don't want to explore new things. They are stuck with 10-year-old technology like FTP, old legacy framework etc. In this post, I will shed some light on the four primary and essential things of a reliable software application. This contents of the post are language and framework agnostic. It applies to any software project.

4 pillars of a reliable software application and tools to support it

Assumptions

For this post I have made the following assumptions:

  • The software development team is using some Version Control System (VCS) like git.
  • There is some form of project management and team structure in place.

Maintainable Code

Making software work is super important, making it just work is a problem. I have seen teams writing code for the sake of making it work. Sometimes it feels like the code is there just for compilers/interpreters, not humans. Code, simple, readable and maintainable is also essential. We have discussed some rules about making code maintainable do read it. Naming things well and writing relevant code comments is also undermined.

Having a culture of code review always helps. If someone else can check your code before its merged to the main branch, it is a good practice to follow. It opens up more ways to learn how to code practically. Code reviews are better done in systems like Github, Bitbucket and Gitlab.

Automated Testing with Continuous Integration

Having automated tests is essential. Opt for the test type that matches your team's current skill set. Unit testing is good to have. Writing testable code and giving team members the skill to do unit testing is an investment. Best way to approach unit testing will grab the low hanging fruit.

It will be better to start with Smoke Tests or necessary functional tests. Doing a web application on each push/deployment? Check that all pages respond with a 200 HTTP response.

Step by step add more tests and time for your team members to gain more skills. As soon as you have some form of automated tests, wire it up with a Continuous Integration (CI) service. Some good options are Travis CI, Wercker, Shippable CI.

Automated Deployment

A finished feature should reach production from developer's machine in less time. It will be possible using automated deployment using latest tools. Are you using File Transfer Protocol (FTP) in 2018? You should stop it right now, the first step towards automation for FTP user is to use GitFTP. It is an automated way to get the changed files to the server than copying it over FTP client.

Do one step deployment and least human work. Tools like Capistrano, Fabric, Rocketeer are used for automated deployment process. To sum it up, the best deployment tool is... the one that fits your needs. In 2018, it is better to go the Docker and Kubernetes path.

Logging with Monitoring

Logs are the only way your software application talks back to you. Gather all your system, application logs and make it accessible via a web interface. Follow the logging standard and use free SAAS to render your logs in a readable way that gives you value.

If dog is a man’s best friend, log is a developer’s best friend.

Understand and exploit the importance of logging in your software application.

Just having logs is not enough, view your logs after each change. Always check your logs after each deployment to track any suspicious activity. You can use Sematext Logsense, Logentries or Loggly for cloud logging. For application monitoring New Relic and AppDynamics stand out.

Conclusion

I have not focused on the server and DevOps part of the software application and deployment. These are the practices all software engineers should adhere to. These should be the goals whenever a new project starts.

Without 4 stable legs even a chair falls. Save your application from going down follow these 4 practices.


Originally published at Geshan.com.np, you can read more things there.

Top comments (0)