Hacker News new | ask | show | jobs
by codehero 2933 days ago
I tried really hard to find a main() function browsing the demo source code, but I could not. I also find it interesting that code boilerplating is called out as a problem, but I run into code like this:

  #include "Protocol.h"

  #include "comms/comms.h"

  namespace cc = comms_champion;

  namespace demo
  {

  namespace cc_plugin
  {

  Protocol::~Protocol() noexcept = default;

  const QString& Protocol::nameImpl() const
  {
      static const QString& Str("Demo");
      return Str;
  }

  }  // namespace cc_plugin

  }  // namespace demo
1 comments

I'm trying to remain open minded to it, I found a few protocols :-

https://github.com/arobenko/comms_all_protocols

the ublox example seems a reasonably complex protocol of messages.

However, I'm not really sold on the framework to do it this way.