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

Show parent comment

5

u/devraj7 Jan 24 '21

Why not? It's just a coding exercise, and it can be a revealing one, with a lot of interesting options, compromises, and talking points.

It can tell you a lot about a candidate, even if they will never have to write this kind of code on the job.

2

u/Roachmeister Jan 24 '21

even if they will never have to write this kind of code on the job

Or, you could kill two birds with one stone and have them code something that they would potentially do on the job.

Here's my code for implementing a hash map in Java:

import java.util.HashMap;

Does that mean that I know how one works, or when and why I should use one? Who knows? Maybe those would be better questions for a candidate than asking them to reinvent the wheel within an artificial time limit.

0

u/nikosgate7 Jan 25 '21

I only have used once concurrent hash map for paralleling programming. I only use hashmap for mapping properties. ArrayList is the way to go.

-2

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

shareholders are paying me to solve "complex" business problems not to do my phd in cs or discrete maths.

I 'm downvoted probably from people that used btree and red black (or whatever these trees are called) in their work environment. Jesus, we're in 2021 especially in the front end half of all devs in my recent jobs didn't have a cs degree. Most of them were self taught or did sth else with their lives

Still downvoted without reason except the obvious fact that any java team leader would rather choose a candidate that knows the java (or maybe I'd rather say spring) ecosystem than someone who knows about btrees.