Mator

public class programmer

Jan 3rd, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. public class Programmer {
  2.   public string name;
  3.   public ProgrammerJob job;
  4.   public Locale locale;
  5.  
  6.   public void getYourShitTogether() {
  7.     if (!job) {
  8.       tryToGetJob();
  9.       if (!job) {
  10.         writeMoreCode();
  11.         getYourShitTogether();
  12.       }
  13.     }
  14.     else {
  15.       job.getExperience();
  16.     }
  17.   }
  18.  
  19.   public void writeMoreCode() {
  20.     while (true) {
  21.       Console.WriteLine("Write more code");
  22.     }
  23.   }
  24.  
  25.   public void tryToGetJob() {
  26.     foreach (ProgrammerJob aJob in locale.getJobListing()) {
  27.       new Thread(delegate () {
  28.         ApplyFor(aJob);
  29.       }).Start();
  30.     }
  31.   }
  32.  
  33.   public void applyFor(ProgrammerJob aJob) {
  34.     sendResumeTo(aJob.address);
  35.     doInterview(aJob);
  36.     waitForResult(aJob);
  37.   }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment