Last active
August 29, 2015 14:10
-
-
Save spble/db05cf53212ea45d1dbd to your computer and use it in GitHub Desktop.
black_swan_projects.get_dev_assistant()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExcitingStartup(SuccessfulBusiness): | |
team = { | |
"lead_dev": UberNerdEmployee, | |
"marketing_guy": LeetMarketerEmployee, | |
"ceo": BrilliantFinanceEmployee, | |
"dev_assistant": None | |
} | |
required_skills = { | |
"dev_assistant": set(("Python", "Django", "JavaScript", "Angular.js", "SQL", "HTML", "CSS", "Linux")) | |
} | |
def get_dev_assistant(): | |
candidate = SocialMedia.find_person() | |
suitable = self.assess_dev_assistant(candidate) | |
if suitable == True: | |
self.team["dev_assistant"] = candidate | |
self.employee_benefits(self.team["dev_assistant"]) | |
def assess_dev_assistant(candidate): | |
if candidate.availiable_hours_per_week <= 10: | |
return False | |
if len(set(candidate.skills).intersection(self.required_skills["dev_assistant"])) < 3: | |
return False | |
if distance_in_km("Glebe, NSW", candidate.location) > 50: | |
return False | |
if candidate.attitude < ENTHUSIASTIC: | |
return False | |
return True | |
def employee_benefits(employee): | |
employee.get_paid_well() | |
employee.learn_from(UberNerdEmployee) | |
employee.build_awesome_website() | |
employee.swim_in_pool() | |
black_swan_projects = ExcitingStartup() | |
black_swan_projects.get_dev_assistant() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment