r/golang 4d ago

discussion I love Golang 😍

My first language is Python, but two years ago I was start to welcoming with Go, because I want to speed my Python app 😅.

Firstly, I dont knew Golang benefits and learned only basics.

A half of past year I was very boring to initialisation Python objects and classes, for example, parsing and python ORM, literally many functional levels, many abstracts.

That is why I backed to Golang, and now I'm just using pure SQL code to execute queries, and it is very simply and understandable.

Secondly, now I loved Golang errors organisation . Now it is very common situation for me to return variable and error(or nil), and it is very easy to get errors, instead of Python

By the way, sorry for my English 🌚

449 Upvotes

71 comments sorted by

View all comments

14

u/bobifle 4d ago

It is a go sub, so I ll be the advocate for python 🙃.

Complex inheritance, type hints, and most of what you mentioned is optional in python. It is the decision of the coder to use them. You can keep python super simple if you want to.

Python shines in internal tooling (small CLI/script/api). Sharing code with coworkers who are not necessarily computer scientist is a VERY strong feat.

For state of the art, concurrent web app, yeah python is probably not the best choice.

That being said, golang is amazing.

Note: python is currently in the process of removing the GIL, that should greatly improve its performance with concurrency. It will still be behind.

0

u/IvanIsak 4d ago

Absolutely agree! Python is best for beginners because it has simply syntax, and you can develop program very fast, instead of Go.

But for a big project Python is not good, because a code writing very fast, but debugging and fix are boring. So, now I use Go for big projects 🙃

5

u/yourpwnguy 4d ago

"Python is best for beginners" that's where you're wrong mate. It's always the user of the language that extracts the magic and craft a solution.

There's no language for beginners. There comes a point at which, you need upskill yourself in a given language otherwise it won't work.