Hacker News new | ask | show | jobs
by _ea1k 1092 days 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.

1 comments

Instead 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