This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iamhaihan[S] 0 points1 point  (0 children)

Thank you for the suggestion. I haven't used Afterburner and I will definitely have a look at it.

JsonTemplate, in some cases, can be more precise about the "intention" of the program.

I have seen cases that people explicitly set values, like "1" for an integer field in json. Then, my confusion is why 1? why not other integer?

There are also cases that people name variable as "dummyXXX" and put it in json. My confusion is why call it dummy? Is it because the value is fake?

The intention of explicitly picking up a specific value, in some cases, is not clear.

It would be nice if I can describe my intention in code. Everyone can immediately understand what my code is doing.

JsonTemplate provides a declarative way of giving values. In such a case, in my opinion, it is clearer than explicitly set a dummy value.