DEV Community

Discussion on: Go or Python and why?

Collapse
 
cathodion profile image
Dustin King • Edited

I would choose Python for web development, but then I don't know Go. There are Web frameworks for Go as well. However, if you use Python with Django or Flask, you will probably have an easier time hiring developers who are familiar with those frameworks if your app takes off.

I don't think the speed of the language is going to be a limiting factor (in webdev it's usually download size or database queries that slow you down). If it ends up being an issue, there are things like Cython for that.

Python lets you work at a high level of abstraction, letting you get more done faster, which wouldn't usually be the main focus of a systems language like Go, but again I don't know Go, so it could be great at that as well for all I know.

Where I would start looking at Go would be if I wanted a lot of low level control, e.g. of system calls, memory, drivers, threading. I would also look at Rust in this case, as it's another newish systems language that has a great community.

Collapse
 
albertdugba profile image
Albert

Okay. Thank you

Collapse
 
ilgityildirim profile image
Ilgıt Yıldırım

Just for clarification, Go doesn't need a framework to run as a web app. In most cases, you will find built-in functionalities of Go is more than enough to achieve what you want / need.

Speed (as well as resource usage) is a limiting factor in more than once case. You might be building a serverless app and the amount of time your app takes to execute & finish, it will effect how much you will pay for each request (among other things such as resource usage). In some cases, if your app is slow enough to hit the limits, it might be a problem.

Even if your app is not a serverless app, you will pay more to server the same amount of users if your app is slow / uses more resources.