Sep 1, 2018 · 1 min read
With protobuf, I have 2big issues to deal with
- The generated Proto Java classes is non-modifiable. If I’m using an ORM like Realm or ROOM for persistent storage, how could I modify there classes with annotation to save them to local db?
- protobuf is binary format, it means that the data is not human-readability. In fact many issues actually come from wrong data structure returned from backend. Since I can not view it directly from response (I use Stetho to catch network call), it would take more time to debug. In contrast, if we use JSON (plain text format), this kind of issues could be quickly determined. Is there any way to save debug time with protobuf?
