r/java • • Jan 23 '21

Interview with Brian Goetz, Java Language Architect

https://freecontent.manning.com/interview-with-brian-goetz/
190 Upvotes

19 comments sorted by

View all comments

26

u/Roachmeister Jan 24 '21

For example, take red-black trees. How do they work? Most of the time, I shouldn’t have to care. If you need one, every language has an excellent pre-written, well tested, high performance library that you can just use. The important skill is not being able to recreate this library, but knowing how to spot when you can use it profitably to solve a bigger problem, whether it is the right tool, how this will fit into the time or space complexity of your overall solution, etc

And that is exactly why I never ask anyone to implement basic data structures in interviews. Nor would I want to work with anyone who does (unless the work was designing language features).

3

u/simoncox Jan 24 '21

I would never employ someone who didn't have the basic understanding of how the most common data structures work internally. Not red-black tree level of knowledge, more that they understand maps are not implemented by linearly searching a list.

0

u/[deleted] Jan 24 '21

[deleted]

1

u/nikosgate7 Jan 25 '21

How would that knowledge help me as a java developer? Eg I'd be much more interested in how the candidates knows when to use spring annotations like bean, autowired where to use what and when than some abstract phd topic.

2

u/Roachmeister Jan 24 '21

And I wouldn't either. Neither Goetz nor I ever implied that. In fact, he said that those are the things that people should know. But giving someone 30 minutes to implement a binary tree without an IDE is not the way to find out. (Yes, I've been told to do that in an interview).

0

u/nikosgate7 Jan 25 '21 edited Jan 25 '21

the moment you would mention sth like that in an interview, I'd kindly thanked for your time and move on. There are much more important and pressing matters in the day of an java/spring developer than theory crafting about btrees. Like I will ever need that as a java/spring developer in the enterpise environment.

.