News for hackers. Stuff that matters.
Re:The Mother of All Interview Questions by sitkack on Tuesday August 02, 2011 @11:50PM (#2839756)
I had a working mapreduce job that was 300 lines of fairly high level java code. Compact, terse, expressive, everything you don't see in most Java. I came back over a the weekend and my boss/coworker made it 'configurable' which means he added 800 lines of code.

I fucking cried.

He was like, "I hoisted out some stuff that should have been behind interfaces." ... I didn't need an interface because I only had ONE and specifically made the API have a low surface area so this could occur IF IT NEEDED TO.

I sucked it up and took it in stride.

Jumping in and solving a problem is usually the last thing you want to do, but that character trait(flaw) is what people think of as a good leader. Someone who will take you over a cliff with conviction.

Re:The Mother of All Interview Questions by lonnyk on Wednesday August 03, 2011 @07:07AM (#2840617)
>Compact, terse, expressive

Does 'Compact' mean that you originally did:

if( foo ) while( foo ){ do something }

all on one line and the boss split them up into multiple lines?

I ask because I worked a job where statements were combined on single lines for ease or reading and it was a nightmare.

Re:The Mother of All Interview Questions by sitkack on Wednesday August 03, 2011 @07:18PM (#2843646)
By compact I mean the domain logic was all in one place and not diluted like a fine mist across the code. You could read it like english and it made sense. Consistency in abstraction levels and not too much genericism.
Re:The Mother of All Interview Questions by Arwill on Wednesday August 03, 2011 @01:50PM (#2842143)
"Adding interfaces" to improve is when i start to freak out too, also splitting a well-defined piece of code into multiple classes. I call that symptom "knowing object oriented programming principles too well".
Re:The Mother of All Interview Questions by rdingwall on Sunday August 14, 2011 @09:03AM (#2883530)
'Well-defined' piece of code or SRP-violating?
Re:The Mother of All Interview Questions by ryanc on Wednesday August 03, 2011 @02:53PM (#2842462)
I've never met a class I didn't want to inherit.