config ||= config

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 …

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?

  1. The author of that code is insane.
  2. The author is sane, was trying to __________
  3. The author is sane, but didn’t know about Ruby feature __________
  4. The company is insane for posing questions like this in an interview.

(Question courtesy of Peter Cooper)


Print Share Comment Cite Upload Translate
APA
Reginald Braithwaite | Sciencx (2024-03-28T15:24:52+00:00) » config ||= config. Retrieved from https://www.scien.cx/2013/05/02/config-config/.
MLA
" » config ||= config." Reginald Braithwaite | Sciencx - Thursday May 2, 2013, https://www.scien.cx/2013/05/02/config-config/
HARVARD
Reginald Braithwaite | Sciencx Thursday May 2, 2013 » config ||= config., viewed 2024-03-28T15:24:52+00:00,<https://www.scien.cx/2013/05/02/config-config/>
VANCOUVER
Reginald Braithwaite | Sciencx - » config ||= config. [Internet]. [Accessed 2024-03-28T15:24:52+00:00]. Available from: https://www.scien.cx/2013/05/02/config-config/
CHICAGO
" » config ||= config." Reginald Braithwaite | Sciencx - Accessed 2024-03-28T15:24:52+00:00. https://www.scien.cx/2013/05/02/config-config/
IEEE
" » config ||= config." Reginald Braithwaite | Sciencx [Online]. Available: https://www.scien.cx/2013/05/02/config-config/. [Accessed: 2024-03-28T15:24:52+00:00]
rf:citation
» config ||= config | Reginald Braithwaite | Sciencx | https://www.scien.cx/2013/05/02/config-config/ | 2024-03-28T15:24:52+00:00
https://github.com/addpipe/simple-recorderjs-demo