opterion
1/22/2016 - 12:48 PM

Murano - Hiring the best people only

Murano - Hiring the best people only

var Murano = require('Murano'),
    colleagues = require('MuranoFamily'),
    techs = require('WorldBestITtechnologies'),
    pro;


function helpToImprove(pro) {
    Murano.addComfortTo(pro)
        .done(function comfortLeadsTo(pro) {
            pro.productivity++;
            pro.hasGoodMood = true;
        });

    techs.on('new:perspective', function(tech) {
        pro.learn(tech) && pro.techs.push(tech);
        Murano.beProudFor(pro);
    });

    setTimeout(function() {
        pro.career++;
    }, Murano.getCareerUpPeriod());

    if(pro.hasHardTimes())
        Murano.support(pro);
}

while(pro = colleagues.next()) {
    helpToImprove(pro);

    if(pro.theLastOne())
        colleagues.rewindToStart();
}
var people = require('ITSpecialists'),
    HR = require('HR'),
    hilevel = require('hilevel'),
    colleagues = require('MuranoFamily');


var experts = HR.selectTheBest(people);

function isProficient(candidate) {
    return candidate.knowledge >= hilevel &&
    candidate.experience >= hilevel &&
    candidate.desireForSelfImprovement &&
    candidate.skillToWorkInTeam &&
    candidate.responsibility;
}

function welcomeToMurano(man) {
    getRidOfRoutine(man);
    colleagues.push(man);

    setInterval(function() {
        man.experience++;
        man.freedom++;
        man.responsibility++;
    }, 3600*24*1000);
}

while(candidate = experts.next()) {
    if(isProficient(candidate))
        welcomeToMurano(candidate);
}