-
Probably similar to the concurrent chat server from gopl[0] then. The pattern is a bit surprising at first, still fairly readable.
[0]: https://github.com/adonovan/gopl.io/blob/master/ch8/chat/cha...
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
FizzBuzz Enterprise Edition
FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
It gets worse (this isn't too much of an exaggeration): https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris....
As an undergrad, I once spent about half an hour peer programming with a computer science PhD - it was enlightening.
He didn't have the slightest understanding of software - calling me out for things like not checking that the size of a (standard library) data structure wasn't negative.
Sometimes there's a scary lack of understanding and competency where you'd expect to find it.
Sometimes these things are done for a reason; sometimes it's actually sane and sometimes it's just a way to deal with the lunacy of a codebase forged by the madmen who came before you.
-
It gets worse (this isn't too much of an exaggeration): https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris....
As an undergrad, I once spent about half an hour peer programming with a computer science PhD - it was enlightening.
He didn't have the slightest understanding of software - calling me out for things like not checking that the size of a (standard library) data structure wasn't negative.
Sometimes there's a scary lack of understanding and competency where you'd expect to find it.
Sometimes these things are done for a reason; sometimes it's actually sane and sometimes it's just a way to deal with the lunacy of a codebase forged by the madmen who came before you.
-
Sending channels over channels (i.e. chan chan) is a common pattern for publish-subscribe systems, e.g.
https://github.com/twpayne/go-pubsub/blob/master/pubsub.go
-
IsEven
A robust, extensible, and blue-sky-thinking .NET library for calculating if an integer is even (by Benjlet)
And IsEven! (the not-JS one) https://github.com/Benjlet/IsEven
It looks really innocent. But then you browse it...
-
peerdb
Fast, Simple and a cost effective tool to replicate data from Postgres to Data Warehouses, Queues and Storage
I did end up using a `chan chan` when implementing a threadpool: https://github.com/PeerDB-io/peerdb/pull/1613/files#diff-427...
The inner channel represents a future, while the outer channel has the threadpool reading a stream of futures. This way the ordering doesn't get corrupted by parallelism