This content originally appeared on raganwald.com and was authored by Reginald Braithwaite
You’re interviewing for a Ruby job, and the interviewer poses the following question:
You’re reviewing some code and find the line
config ||= config
. What do you infer?
Well, what DO you infer?
- The author of that code is insane.
- The author is sane, was trying to __________
- The author is sane, but didn’t know about Ruby feature __________
- The company is insane for posing questions like this in an interview.
(Question courtesy of Peter Cooper)
This content originally appeared on raganwald.com and was authored by Reginald Braithwaite

Reginald Braithwaite | Sciencx (2013-05-02T00:00:00+00:00) config ||= config. Retrieved from https://www.scien.cx/2013/05/02/config-config/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.