topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • March 19, 2019, 03:02 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Anyone used protocol buffers?  (Read 502 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,183
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Anyone used protocol buffers?
« on: December 16, 2018, 05:10 AM »
Again suggested to me by real life friend and previous DC server admin, Gothic:

Protocol Buffers, from google:

https://developers.g...om/protocol-buffers/

"Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages."

Looks quite nice -- and lighter weight in all ways than xml.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,183
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Anyone used protocol buffers?
« Reply #1 on: December 16, 2018, 05:13 AM »
JSON is the lightweight format I am more familiar with.  Here's a blog post arguing for protobuffers over json:
https://codeclimate....se-protocol-buffers/

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 10,032
    • View Profile
    • Donate to Member
Re: Anyone used protocol buffers?
« Reply #2 on: December 16, 2018, 12:59 PM »
We had this same discussion at work, and use a combination of the two.  I don't think that either is a case of lets use this in all cases, as each has its own strengths and weaknesses of which one of the primary ones that leads us to use JSON in many cases- JSON is human readable. 

They say it well, right before their conclusion in that second article:

And probably lots more. In the end, as always, it’s very important to keep tradeoffs in mind and blindly choosing one technology over another won’t get you anywhere.


Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,474
    • View Profile
    • Donate to Member
Re: Anyone used protocol buffers?
« Reply #3 on: December 16, 2018, 06:05 PM »
Last time I got this software for free on 'BitsDuJour' or 'GiveAway Of The Day' and it helped me out with JSON.

Yet at 28 USD JSONBuddy isn't that expensive for what it does.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 10,032
    • View Profile
    • Donate to Member
Re: Anyone used protocol buffers?
« Reply #4 on: December 16, 2018, 06:33 PM »
Last time I got this software for free on 'BitsDuJour' or 'GiveAway Of The Day' and it helped me out with JSON.

Yet at 28 USD JSONBuddy isn't that expensive for what it does.

I just use plain text in Sublime Text or VS Code, along with a few tools that are online: