Ask HN: What's more valuable: expert or broad knowledge in different areas?
It certainly all depends if you do consulting/customer projects or have projects of your own with consulting on top, for instance. However, after ten years working extensively with Java and lately some Kotlin in the backend, I would like to know if I should have a much broader knowledge or the desire to learn everything (yeah, well, we all know a couple of languages a little bit). I'm currently learning TypeScript, and most languages, if they are not purely functional, are relatively easy to learn with some experience. But I'll sure lack some depth and to learn the major frontend concepts for instance underlying the frameworks, build tools, you name it will certainly need much more time than 2 or 3 months.
I think the most interesting from my perspective, however, is a much deeper knowledge of specific topics (for instance, lately, I'm all about reading latency/throughput-related stuff, as I'm extensively profiling my OSS database project and I'm reading books from experts as Brendan Gregg...).
What's your opinion on the topic? For example, be an expert in something or be able to use the right tool for the right project at hand, but maybe not be able to use it in the best idiomatic way or not know all the pitfalls and stuff you'd probably know if you're more specialized?