Posts by ramonritter • 361 points
4 posts
-
1
votes3
answers1299
viewsA: Should every table have Primary key?
In the case of tables that only involve relationships between other tables, as mentioned by you, I usually create an "artificial" PK (an Identity or a guid). This facilitates me direct access to the…
-
0
votes1
answer152
viewsA: How to send an XML from an Nfec to the Sefaz homologation server using C# via the Nfeauthorization website?
I don’t know if that’s what’s causing the error, but you’re using the protocol TLS 1.2 (SecurityProtocolType.Tls12) for an Nfe version 3.10. As far as I know the version 3.10 uses the protocol SSL…
nfeanswered ramonritter 361 -
12
votes2
answers2992
viewsA: Decimal places of the float
As answered above, using Decimal usually solves your floating point usage problem in Java. I would just like to share a technique that I learned in the 1980s working with languages that didn’t have…
-
13
votes4
answers4254
viewsA: Why should we avoid returning error codes?
Personally I prefer to return error codes (or true/false) rather than throw exceptions for security reasons, as someone might forget to treat an exception. In projects where I worked where Apis were…