Proper English is always preferable.
Just curious, if I have an interface which contains only the Actuate method, should it be an Actuater or an Actuator?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
And in the Australian context, Ropeable.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I'm still struggling with naming interfaces in Golang. I initially thought it was my fault not being able to come up with names fitting correctly into the "er" convention, but then I found out the same problem in Golang source code. It seems like this whole interface naming convention is source of a lot of confusion even for Golang core developers. For example:
- Queryer interface: https://github.com/jnwhiteh/golang/blob/master/As long as your standardize within your own codesrc/pkg/database/sql/driver/driver.go#L64. Is it ok that it is not proper English?
- Conn interface: https://github.com/jnwhiteh/golang/blob/master/src/pkg/database/sql/driver/driver.go#L83. Why not Conner?
- Result interface: https://github.com/jnwhiteh/golang/blob/master/src/pkg/database/sql/driver/driver.go#L102 Why not Resulter?
It would be extremely helpful if somebody could thoroughly clarify more about this topic either through a blog post or through this email thread. It could be that we users are approaching code design the wrong way in Golang, if so, it would be also great if somebody can explain what the mindset should be when designing code in Golang.This has been the only pain point for me in Golang, the rest has been a breeze. Golang is awesome and please keep up the good work.Best,Camilo Aguilar
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Since interfaces naturally describe capabilities I personally would go with Queryable over Queryer.
On Monday, October 28, 2013 2:36:36 PM UTC-5, Camilo Aguilar wrote:
- Queryer interface: https://github.com/jnwhiteh/golang/blob/master/As long as your standardize within your own codesrc/pkg/database/sql/driver/driver.go#L64. Is it ok that it is not proper English?
- Conn interface: https://github.com/jnwhiteh/golang/blob/master/src/pkg/database/sql/driver/driver.go#L83. Why not Conner?
- Result interface: https://github.com/jnwhiteh/golang/blob/master/src/pkg/database/sql/driver/driver.go#L102 Why not Resulter?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.