IT/Software career thread: Invert binary trees for dollars.

  • Guest, it's time once again for the massively important and exciting FoH Asshat Tournament!



    Go here and give us your nominations!
    Who's been the biggest Asshat in the last year? Give us your worst ones!

Asshat wormie

2023 Asshat Award Winner
<Gold Donor>
16,820
30,968
THIS is the point I'm trying to make.

Asking people to solve a problem "reverse an array" can have many valid answers. You can go and create your own method, or you can say "This language has all these utility methods, one of this is reverse array and this is how it's implemented" shows to ME that not only can you explain how reversing an array works but also that you are knowledgeable and familiar with a language/api/framework. Also that while you might not be afraid of implementing your own you're more than comfortable using a particular implementation in a language that probably runs in a much better time (O complexities and all) and where proper testing has been done.
Isnt the whole point of the interview questions to find out how the applicant deals with solving problems? No one cares to see what a reversed linked list is, everyone cares to see if the applicant can write code that reverses a linked list.
 

Obtenor_sl

shitlord
483
0
So we're all agreeing here that the point is valid? haha it seems we're all having discussions about all of us agreeing.

Yes, getting your hands dirty right away and code might be an ok solution, but actually learning about the requirements and how to solve things efficiently is a much better answer imho.
 

Cad

scientia potentia est
<Bronze Donator>
25,822
50,687
Isnt the whole point of the interview questions to find out how the applicant deals with solving problems? No one cares to see what a reversed linked list is, everyone cares to see if the applicant can write code that reverses a linked list.
They should ask that question specifically then. Otherwise they get the most efficient/best answer. Ask a stupid question, get a stupid answer.
 

Vinen

God is dead
2,791
497
So we're all agreeing here that the point is valid? haha it seems we're all having discussions about all of us agreeing.

Yes, getting your hands dirty right away and code might be an ok solution, but actually learning about the requirements and how to solve things efficiently is a much better answer imho.
It was more the sarcastic nature of the intial post. If an interviee came up with an arrogant attitude like that I'd be "I don't think this person is a good fit to work with" not "This person is smart"
That said, Wormie is correct. I don't care if you state you can google for a pre-written library which can perform this.

What I care is that you can implement the method.
 

Asshat wormie

2023 Asshat Award Winner
<Gold Donor>
16,820
30,968
Cad: They do ask the right questions. No one asks to reverse an array, they ask for code that reverses the array.

To get back to my original question, so no one uses shit like red-black trees or tries or succinct trees, etc?
 

ShakyJake

<Donor>
7,963
20,076
Ugh, I'd probably fail at these type of interviews. Up to this point, my interviews have just been chit chats to get to know you. "Oh, you seem cool. You're hired!".
 

Noodleface

A Mod Real Quick
38,360
16,251
Cad: They do ask the right questions. No one asks to reverse an array, they ask for code that reverses the array.

To get back to my original question, so no one uses shit like red-black trees or tries or succinct trees, etc?
I think places like Google might, but not in my work
 

moontayle

Golden Squire
4,302
165
Ugh, I'd probably fail at these type of interviews. Up to this point, my interviews have just been chit chats to get to know you. "Oh, you seem cool. You're hired!".
The technical aspect of my interview was two questions (what is 'this' for? and, how many times can a class extend something?) and a story about how Eclipse deleted my R.java file which lead to how I use git on my personal projects, and hey what do you use... never heard of SourceSafe, nope.
 

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
Ugh, I'd probably fail at these type of interviews. Up to this point, my interviews have just been chit chats to get to know you. "Oh, you seem cool. You're hired!".
Never underestimate the value of a cultural fit. If you read my post history you will know why. Today we argued about why namespaces are a good idea, vs having no namespaces.... His reason because ORM tools don't use namespaces.. I kid you not.
 

ShakyJake

<Donor>
7,963
20,076
Today we argued about why namespaces are a good idea, vs having no namespaces.... His reason because ORM tools don't use namespaces.. I kid you not.
He'd love our project then. Namespacing is accomplished by using inner classes. Our class files exceed 5000 files in some instances. I shit you not.
 

Vinen

God is dead
2,791
497
This is all I needed to read

"Thesyllabusfor the interviews is very clear and simple"
I'd forgotten about that. I think I fell asleep when the recruiter was explaining the process. I think they had a script they were required to read from.

You also don't even interview to work on a specific piece of functionality. You interview to work at the company and then once you are given an offer they decide where you go.

It's dumb as shit.
 

Tuco

I got Tuco'd!
<Gold Donor>
47,914
82,545
So for Tuco, get rid of that m_ crap. just name your parameter different than your internal values.
Like I said I don't have a lot invested in it and only brought it up to hear counter-arguments to what I think, but how would you rewrite:
You say change the param, would you write:
At that point you're just suffixing instead of prefixing. Maybe you obfuscate that with:
But you're really just renaming it to make it different because you don't want to use m_ or this.

Instant method to not get hired. If someone dropped this on me I would end the interview within minutes.
This is pretty asinine. If you ask someone to solve a problem, and they solve it in a better way than you knew how, but side-stepped the hoops you hoped they'd have to jump through, they rocked your world and reacting by rejecting them is only done out of your own inadequacy.

It's like the scene in Cap America where they ask the GI trainees to get a flag on a pole and Rogers dismantles the pole. He rightfully gets the girl in the end. And the drugs.
 

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
Tuco I think we are talking a bout two different languages. Are you using accessors instead of properties? Then your constructor could be a calling of the setter method.

And then have your setter with a generic value parameter.

That code is very readable, you can template it, and autogenerate it, and never worry about the use of "this".
 

Tuco

I got Tuco'd!
<Gold Donor>
47,914
82,545
properties? What is this sorcery? I think the clean coding book uses an undefined language that doesn't have properties.

I actually prefer coding books that are language specific both so there's no confusion on whether properties exist and also so you can learn coding styles that are particularly useful in a given language.

edit: I agree, naming it value is a good solution.