3 ms·
Been writing Python code for about 10 years (C/Pascal/Assembly-style languages for 20 years prior to that) and was interested in Go for specific advantages:
by rgacote 10y ago
Been writing Python code for about 10 years (C/Pascal/Assembly-style languages for 20 years prior to that) and was interested in Go for specific advantages:
- coroutines
- channels
- simple one-file delivery
- cross platform (I tend to develop on Mac and deploy on Linux or Windows)
After writing Go for about a year now, I'm switching back to Python -- specifically Python 3.5.
My (personal) issues with Go:
- No basic support for NULLs in database responses
(yes, there are third-party modules).
- XML manipulation is a pain.
- third-party module management problematic.
- poor debugging environment.
Switching back to Python and stepping up to Python 3.5 (and pyInstaller for single-file builds) addresses all the above pain points, plus introduces asyncio which is a seriously pleasant way to build asynchronous web/database applications. Rewrote a 1,000 line Go application in about 300 lines of Python using asyncio.
In addition to the specifics, writing in Go simply was not enjoyable.
A typical end of the day with Go felt like I'd (usually) gotten the tool to do what I needed.
Contrast that to a typical end of the day with Python feeling like I'd been using a tool that always supported me.
I'll continue to watch what Go is doing, but I'm back in Python (and playing with Elixir) for now.
- lcsontos 10y agoThanks for your feedback! I've also heard that devs are tend to move back to Python after having a journey in Go.