Thursday 9 August 2018

Interviewer asks: "What's the value of dependency injection?"







I respond: "You don't need to use the new operator."



Interviewer's response: ". That's it?"




That's all I could come up with.



What would have been a more correct response if that is not correct?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...