3 ms·
For personal projects I pick between Python and Go. I ask myself some questions before I pick, in no particular order: - How complex is the thing I wanna do? I
by imauld 10y ago
For personal projects I pick between Python and Go. I ask myself some questions before I pick, in no particular order:
- How complex is the thing I wanna do? If it's very complex I'll go with Python since I'm much stronger with Python than Go. This allows me to focus on the problems I'm trying to solve not the ones I create by misunderstanding something in Go.
- What are going to be some of the key features I'll need from my tools? Concurrency is not a strong point of Python so something that requires it may be better off in Go. Am I going to need auth, email sending, an ORM? Django is great for getting that crap out of the way so I'll probably use Python.
- How much new stuff will I be learning for this project? Most of my personal stuff is done as a learning exercise. I have found in the past I tried to learn too many things at once and I would just end up lost.
These are just some of the things I think about before choosing a language. However, your milage may vary of course. What ever questions you ask yourself you should always keep in mind the strengths and weaknesses of your options and whatever you do end up choosing you keep those strengths/weaknesses in mind and work to make the most of the strengths and use other tools/processes to mitigate the weaknesses.