You are here |
www.alexedwards.net | ||
| | | |
jordanorelli.com
|
|
| | | | How to use interfaces in Go Before I started programming Go, I was doing most of my work with Python. As a Python programmer, I found that learning to use interfaces in Go was extremely difficult.... | |
| | | |
alexandrugris.github.io
|
|
| | | | These are my first steps in Go, this time learning how to build web services. The post touches handling requests, json serialization, middleware, logging, da... | |
| | | |
www.integralist.co.uk
|
|
| | | | Interfaces in Go Name Your Interface Arguments Keep Interfaces Small Accept Interfaces, Return Concrete Types Don't Return Concrete Types Use existing interfaces Don't Force Interfaces Embedding Interfaces Upgrading Interfaces Standard Library Interfaces Tight Coupling Dependency Injection Refactoring Considerations Testing More flexible solutions? Conclusion This post is going to explain the importance of interfaces, and the concept of programming to abstractions (using the Go programming language), by ... | |
| | | |
techblog.izotope.com
|
|
| | (This article assumes some familiarity with shared_ptrs in C++.) Imagine the following line of code and comment are in the private area of the definition of a C++ class Foo: // The current Quaffle, always valid shared_ptr currentQuaffle; Can you spot any dangerous thinking here? If not, that's okay, but hopefully this article will change... |