Skip to content

Instantly share code, notes, and snippets.

@jarnheimer
Last active March 21, 2018 13:01
  • Select an option

Select an option

Test example
<?php namespace App;
class Developers
{
function get_best_developer($type)
{
if ($type == 1) { // VueJs
$developer = 'John Smith';
} elseif ($type == 2) { // Laravel
$developer = 'Andrew';
} elseif ($type == 3) { // Servers
$developer = 'Maria';
} elseif ($type == 4) { // Sympfony
$developer = 'Max';
}
return $developer;
}
}
@jarnheimer
Copy link
Author

jarnheimer commented Mar 19, 2018

A pull request is made from the branch feature-developer-finder to dev. You will make a code review. The code above is written by a very junior developer, and your task is to give him tips on how this can be improved. What do you say to him?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment