2

Is it me or is this code seem unnecessarily complicated?

This is a queue I have used myself:
https://github.com/Demolishun/...

This is a queue I ran across:
https://github.com/cameron314/...

I understand the second link shows a queue that does a LOT more than the first example. It supports multiple produce/consumers for instance. It is also lock free. However, it seems really complicated to me. I was always under the impression that the more code you write the harder it is to maintain.

Comments
  • 1
    In javawe have some sort of rule: if a class has more than 1000 lines, somethings wrong ...
  • 0
    When I look at the second source I see a lot of fallbacks and stuff, probably needed, but yeah the code looks .... ugly
Add Comment