9 ms·
Not too familiar with Go but this makes sense to me. The standard libraries are really great for microservice type stuff. Things that, as a python guy, I would
by sroerick 2y ago
Not too familiar with Go but this makes sense to me. The standard libraries are really great for microservice type stuff. Things that, as a python guy, I would have reached to Flask for. Problem is, I never reached to Flask for much of anything.
I’m really having fun with Go these days, though
- rednafi 2y agoGo’s stdlib is almost as good as Python’s—with the bonus of a stricter type system and faster execution speed. Package management in Go is better too, though uv is making Python’s experience smoother. That said, Python is great, and beginners love it. For algorithms and prototyping, I still prefer it. But for writing servers, Go’s stdlib lets me spin up a production-ready, concurrent server using just the basics. What Go lacks, though, is something like Django, which it could really benefit from.
- sroerick 2y agoWSGI was a learning curve for me
- rednafi 2y agoASGI too. But it’s not too bad and tools like Starlette / FastAPI make it a breeze. Go servers are fast but generating docs from code is a lot more work which you get free in FastAPI.
- adhamsalama 2y agohttps://huma.rocks/ https://huma.rocks/ https://github.com/go-fuego/fuego https://github.com/go-fuego/fuego
- lolinder 2y ago> Go’s stdlib is almost as good as Python’s—with the bonus of a stricter type system and faster execution speed Define good, and for what applications? I'm having a very hard time imagining that go's standard library is anything like as comprehensive as python's.
- jen20 2y agoNo need to imagine - here’s the documentation for it: https://pkg.go.dev/std https://pkg.go.dev/std I’ve found the Go standard library to not only be very complete, but also to contain far fewer sharp edges and dead batteries than that of Python for every use case I’ve tried.
- rednafi 2y agoGo’s HTTP library is production-ready. Python’s isn’t. Python has a ton of dead batteries in the standard library—stuff like urllib is plain dangerous to use these days. But Go doesn’t have collections.abc, itertools, heapq, deque, and many other data structure niceties. I still reach for Python for numerical and algorithmic tasks.