You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume I have a protobuf file called abc.proto as follows:
syntax="proto3";
packagepop.www.bbb;
// ...
I wonder if there is a real reason why this lib is not creating another constant variable to gives devs the file name of the protobuf file, something like this:
Instead of that code then I can simply import the filename, though I can see that one might think that just type the freaking filename and get over with it. But the way I look at it I can see myself using the same string in multiple places and if I import it instead of typing it I would say it less prone to errors and bugs.
The text was updated successfully, but these errors were encountered:
Assume I have a protobuf file called
abc.proto
as follows:I wonder if there is a real reason why this lib is not creating another constant variable to gives devs the file name of the protobuf file, something like this:
Exactly like the
protobufPackage
or the one with a more descriptive name which I usually use with the same value asprotobufPackage
:This can help in places like this: https://github.com/kasir-barati/nestjs-materials/blob/182f05d3414f0ad6b1222fdabc4472d4b0a13561/microservices/grpc/apps/nestjs-client/src/main.ts#L28
Instead of that code then I can simply import the filename, though I can see that one might think that just type the freaking filename and get over with it. But the way I look at it I can see myself using the same string in multiple places and if I import it instead of typing it I would say it less prone to errors and bugs.
The text was updated successfully, but these errors were encountered: