|
You are here |
golangtutorials.blogspot.com | ||
| | | | |
aneesh.mataroa.blog
|
|
| | | | | ||
| | | | |
krakendev.io
|
|
| | | | | Subclassing can suck. There are so many ways to get it wrong and it's so easy to fall into anti-patterns when you create such a tight coupling between two classes. Most of the time, the need for subclassing can actuallybe replaced by abstraction through protocol-oriented, value-oriented, and functional programming. In fact, I may even argue that doing it that way can far outweigh the "benefits" of subclassing the majority of the time. | |
| | | | |
usethe.computer
|
|
| | | | | ||
| | | | |
mfbmina.dev
|
|
| | | One of the best Go features is how easy we can use concurrency. The language gives us goroutines, which are like lightweight threads managed by the Go runtime. It help us to run several functions at the same instant and is very helpful if you wish to improve the performance of your application. Using this feature is easy as adding the go keyword before any function call. This will make the function run concurrently. To make it simpler, let's show you the code. Here I've written the SleepSort algorithm, w... | ||