DEV Community

Juan Cantero
Juan Cantero

Posted on

How I feel looking for my first job explained with code.

Hi my name is Juan and I'm a computer science student looking for my first job as a developer, so far I'm doing good in the technical interviews, but when they ask me about my experience I feel like this:

function getFirstJob(programmer) {
  if(programmer.hasExperience) {
    return "you are hired"
  }
  getExperience(programmer)
}

function getExperience(programmer) {
  getFirstJob(programmer)
}

Enter fullscreen mode Exit fullscreen mode

And you know what happens when you run getFirstJob(). So far I couldn't get out of that loop. I would like to get advice or your comments if you are going through a similar situation. Thanks for reading, have a great day :)

Top comments (2)

Collapse
 
dendihandian profile image
Dendi Handian • Edited
function getFirstJob(programmer) {
  if(programmer.hasExperience || programmer.hasPortfolio) {
    return "you are hired"
  }
  getExperience(programmer)
}

function getExperience(programmer) {
    if (programmer.hasExperience) {
        getFirstJob(programmer)
    } else {
        getPortfolio(programmer)
    }
}

function getPortfolio(programmer) {
    programmer.hasPortfolio = 'made cool stuffs'
    getFirstJob(programmer)
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
juancantero profile image
Juan Cantero

thanks for your advice :D