Programming
Arrays Usage Tips
‘Return zero-length arrays, not nulls’ Some APIs intentionally return a null reference to indicate that instances are unavailable. This practice can lead to denial-of-service vulnerabilities when the client code fails to explicitly handle the null return value case. For methods that return a set of values using an Read more…