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!

Tenks

Bronze Knight of the Realm
14,163
607
I had to interview someone for a Senior Hadoop Developer job and I asked him to describe his experience writing Map Reduce and he said "One time I wrote a program to map all the temperatures for a city and find the high and low for each city." I'm not sure if he's aware that I read the exact same book that example comes out of (from 3 years ago) and that someone doing a Chapter 1 project from the first Hadoop book ever written isn't what I consider "senior."
 

Tenks

Bronze Knight of the Realm
14,163
607
The other guy interviewing him just have thought even less of him than I did because he asked him what an anonymous inner class is and his response was pretty pitiful there as well. If it takes more than like 2 sentences tops to describe something like that I just assume you're bullshitting.
 

Vinen

God is dead
2,791
497
Those are like lambda functions, but classes instead?
Overall thats a pretty terrible interview question. While I know what they are I've never seen them actually used in a code-base.

They were barely added in Java 8 which is "new." (not saying they were not in other languages earlier!)
 

ShakyJake

<Donor>
7,969
20,089
The other guy interviewing him just have thought even less of him than I did because he asked him what an anonymous inner class is and his response was pretty pitiful there as well.
Well, if he's from the C# world he was probably thinking WTF is that.

But that's interesting. No such thing exists in C#.
 

Vinen

God is dead
2,791
497
Well, if he's from the C# world he was probably thinking WTF is that.

But that's interesting. No such thing exists in C#.
Lambda Expressions (C# Programming Guide)

Same concept. Different name and syntax
biggrin.png


Added in .NET 3.5 (I think?)
 

Luthair

Lord Nagafen Raider
1,247
85
Unfortunately it'll be 2-3 years before most of us Java developers can use them since we're still forced to support 7... and sometimes 6... even though yours is the only application running on the system.
 

Tenks

Bronze Knight of the Realm
14,163
607
Those are like lambda functions, but classes instead?
Lambdas have basically deprecated the need for AIC in Java but the Spark we write here is written on Java 7 so all your function implementations are done anonymously. Probably the best response I'd be satisfied with would be something like "They are in-line definitions of interface or abstract methods." If you've done anything with Java's shit-tier UI Swing they use AIC all over the place too.
 

Tenks

Bronze Knight of the Realm
14,163
607
You rarely actually define the class full-on anonymously in a class. 99% of the use cases I've ever come across are just defining the method behavior.
 

Tenks

Bronze Knight of the Realm
14,163
607
Whats the 1% use-case since I'm too lazy to google.
It would probably be some thing

But like I said I don't see it used like that. You'd probably just write your own implementation of the interface and instantiate it that way instead of doing it anonymously.

But the most common use-case for AIC is more like

Or something like that. Intellij automatically does most of the AIC syntax for me so I don't know it verbatim off the top of my head.
 

Mrs. Gravy

Quite Saucy
<QUITE SAUCY>
1,699
2,228
I don't understand
This is about the only phrase in this thread that I DO understand (besides the shitting one's pants reference - perhaps you can get a bonus of Zorflex undies out of your boss?).

I am illiterate - and I mean that; in re coding. The first computer I ever touched was a TRS-80 with cassette and intro to BASIC (my HS was the first in the County to get/teach "computer science" 1982). I was terrible at it, but my best friend was great at it (she does some "fancy ass coding computational I have no idea what the hell it actually is"... for Edward Jones now...) good thing I was good at Micro-Biology and College Lit. We just traded homework. (Bad Catholic Schoolgirls, bad!!!)

Regardless, I am trying to learn from all of you - at least to spark a new interest in learning about what you do; besides Fast Food Thread, Cooking, Amod: this and Science/Magnets are my faves.
OK, please continue your way the fuck over my head "conversation" and thank you for making my brain hurt.
 

Khane

Got something right about marriage
20,626
14,374
You were learning Computer Science the year I was born. Just felt like that needed saying.