News for hackers. Stuff that matters.
Re:People suck at technical interviews (2014) by SilasX on Friday June 10, 2016 @11:57AM (#11877292)
I met a professional, working Rails dev who didn't know how to expose a class's instance variables for read access in Ruby. (i.e. write getters)

(Not an interview context though; it was a hack night where I was learning ruby and didn't know the right terms to use to look up that question from the docs.)

Re:People suck at technical interviews (2014) by rhizome on Friday June 10, 2016 @03:53PM (#11879492)
Just out of curiosity, did you phrase the question "expose a class's instance variables for read access," or "write a getter?" I see it as the difference between academic phrasing and colloquial.
Re:People suck at technical interviews (2014) by SilasX on Friday June 10, 2016 @04:04PM (#11879574)
I phrased the question in many different ways and verified that he understood that I meant, "how do I get the value of @foo from an object of a class that has @foo?" The answer he gave did not hinge on the distinction, and ended up being the ol'

    def foo
      @foo
    end