程式媛上班第一天,盡然讓我做這個?!

lWl1024發表於2021-09-08

大家好!

本人
性別:女
母語:golang
愛好:電影,運動,做研究
今天是我入職第一天,hr居然讓我做招聘。

以下是我用母語寫的JD,有興趣的大佬可以加入一起工作

聘Golang工程師(後端、雲相關)

薪資:30k-70k·14薪

座標杭州•紫金港

有興趣的大佬可以傳送簡歷到我的郵箱:linwanlu@gnlab.com

package main

import (
    b64 "encoding/base64"
    "reflect"
)

func contains(arrayType interface{}, item interface{}) bool {
    arr := reflect.ValueOf(arrayType)
    for i := 0; i < arr.Len(); i++ {
        if arr.Index(i).Interface() == item {
            return true
        }
    }
    return false
}

type GolangCandidate struct {
    goFundamentals, goInAction []string
    githubRepoStars int
    yearsOfExperiences int
    familiarWithWechatEcosystem bool
    deeplyInvolvedInOpenSource bool
    deeplyInvolvedInProjectsLikeTikTok bool
}

type Company struct { name, slogan string }

func GnLab() Company {
    return Company{"光年實驗室(GnLab)", "Hacking Everything"}
}

func (com Company) _scoreCandidate(cand GolangCandidate) int {
    var score int = 0
    if contains(cand.goFundamentals, "併發程式設計") &&
        contains(cand.goFundamentals, "並行程式設計") &&
        contains(cand.goFundamentals, "任務排程") &&
        contains(cand.goFundamentals, "垃圾回收") {
        score += 200
    }
    if cand.yearsOfExperiences >= 2 {
        score += cand.yearsOfExperiences * 10
    }
    if contains(cand.goInAction, "鏈路追蹤") { score += 100 }
    if contains(cand.goInAction, "分散式快取") { score += 100 }
    if contains(cand.goInAction, "訊息佇列") { score += 100 }
    if cand.githubRepoStars > 500 { score += 200 }
    if cand.familiarWithWechatEcosystem { score += 50 }
    if cand.deeplyInvolvedInProjectsLikeTikTok { score += 200 }
    if cand.deeplyInvolvedInOpenSource { score += 100 }
    return score
}

func (com Company) willConsiderHiring(cand GolangCandidate) bool {
    return com._scoreCandidate(cand) >= 450
}

func (com Company) benefitsPackage() string {
    b, _ := b64.StdEncoding.DecodeString(
        "MHgwMC4g5YWt6Zmp5LiA6YeRCjB4MDEuIDk1NQoweDAyLiDmnJ" +
        "/mnYPlpKfnpLzljIUKMHgwMy4g5YWo6aKd5YWs56ev6YeRCg==",
    )
    return string(b)
}

func main() {
    // 說出來不怕大家笑,我們正在做一款有潛力超越抖音的產品。
    //
    // gnlab := GnLab()
    // cand1 := GolangCandidate{
    //     []string{"併發程式設計", "並行程式設計", "任務排程", "垃圾回收"},
    //     []string{"鏈路追蹤"},
    //     500,
    //     6,
    //     true,
    //     true,
    //     false,
    // }
    // fmt.Println(gnlab.benefitsPackage())
    // fmt.Println(gnlab._scoreCandidate(cand1))
}
本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章