Hacker News new | past | comments | ask | show | jobs | submit login

Thanks for sharing. I understood the contract was about replicating as much as possible the same structure or workflow as the original Java code but if you had to develop the same client in Go from scratch, where would be the main differences in your approach and how the Go code would benefit ?



I would split it into multiple packages.

I would survey existing libraries for other JSON document databases (MongoDB, Google's Firestore etc.) and steal all their best ideas.

But honestly, good API design is something that needs a lot of time to reach the polished state.

Whatever I can come with today, I'm sure a year from now I would find ways to improve that.

That has been my experience with much smaller libraries I wrote.

The more time you get to spend thinking about the problem, the better solution you can come up with.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: