Next Sep 13 Previous
Item 547202
You are reviewing the code of one of the juniors and you come across this code fragment:
<?php
...
if ("GET" === $_SERVER["REQUEST_METHOD"]) {
renderPage();
} else {
openDbAndSoapConnectionsAndDoOtherHeavyStuff();
}
...
?>
What do you think:
A: Ok, he's using functions.
B: I like that immutable left hand value trick and the use of identity comparison operator.
C: He's showing some potential but I need to take him aside.
D: Looks good to me. It's about lunchtime, I'm thinking club sandwich.



