tendermint / coding

14 stars 10 forks source link

Design Patterns & Language #71

Open rigelrozanski opened 6 years ago

rigelrozanski commented 6 years ago

We should create a design patterns document for standardized design patterns and associated language which are used within Tendermint/Cosmos. Off the bat, a few features which I think should be discussed here include:

rigelrozanski commented 6 years ago

Could maybe be placed in go/ dir but this repo needs to be reorganized heavily anyways

greg-szabo commented 6 years ago

I think this will only be beneficial if there is some documentation on what the design pattern means. (At least a link of a blog post of some developer somewhere.)

For example: Use contexts where possible: https://blog.golang.org/context Use pointer method receivers where possible: https://nathanleclaire.com/blog/2014/08/09/dont-get-bitten-by-pointer-vs-non-pointer-method-receivers-in-golang/

etc... (I know that the examples are very basic.)