3 ms·
To be fair, it does depend on the question. Yours is fine. I've also seen things like "Why would you specify the # of elements when initializing an ArrayList i
by _ea1k 3y ago
To be fair, it does depend on the question. Yours is fine.
I've also seen things like "Why would you specify the # of elements when initializing an ArrayList in Java?", and you just know the person asking is the guy that sprinkles magic constants all over his code. And gives negative reviews when you don't put random (often relatively small) numbers in yours too.
- hnfong 3y agoInstead of hardcoding, you can specify a million configuration variables to be determined at runtime, and shift the responsibility to SRE to draft a deployment plan for that :P