[北京] [搜狐快站 - 前端] 我们的招聘是一段代码,欢迎调用

2017-03-28 18:09:29 +08:00
 aimicheng
import cvUtils from './lib/cvUtils';
import mailUtils from './lib/mailUtils';

mailUtils.onMailArrived((mail) => {
    // Rule No.1: No acient skills!
    if (mail.content.match(/Dreamweaver|DIV\+CSS|Swiper|AJAX|Bootstrap/i)) {
        return mailUtils.reply(mail.from, 'false');
    }

    // Rule No.2: Skills required
    const skills = cvUtils.extractSkills(mail.content);
    let skillPoints = 0;
    ['es6', 'babel', 'webpack', 'gulp', 'grunt', 'react', 'vue'].forEach(
        (skill) => {
            if (skills.indexOf(skill)) {
                skillPoints += 1;
            }
        }
    );
    if (skillPoints < 2) {
        return mailUtils.reply(mail.from, 'false');
    }

    // Rule No.3: Must have a github account
    if (!mail.content.match(/github\.com/)) {
        return mailUtils.reply(mail.from, 'false');
    }

    // Rule No.4: Prefered skills
    ['创业', 'ReactNative', '研究.*(框架|工具库).*源码', '设计.*前端架构'].forEach(
        (skill) => {
            if (mail.content.match(new RegExp(`${skill}`, 'i'))) {
                skillPoints += 5;
            }
        }
    );


    const forwardMailbox = skillPoints > 10 ?
            mailUtils.MAILBOX_PASSED_EXCELLENT : mailUtils.MAILBOX_PASSED;
    mailUtils.reply(mail.from, 'true');
    return mailUtils.forward(mail, forwardMailbox);
});


调用此接口请发简历至: chengliu@sohu-inc.com

邮件回复说明:

6221 次点击
所在节点    酷工作
49 条回复
aimicheng
2017-03-29 10:23:11 +08:00
@Sivan 调戏接口并不好玩
11
2017-03-29 10:25:01 +08:00
acient 是啥意思
aimicheng
2017-03-29 10:35:56 +08:00
@akq AJAX 、 Swiper 、 Boostrap 是非常基础的技能,并不是鄙视的意思;一个符合我们要求的前端不屑于把这些写简历里面,因为这代表不了 TA 的水平和品味。

ES6/Node.js 代表的是一套大前端技术体系,是我们推崇的开发方式。

创业技能加成是在于文化认同。我们部门给每个人很大的空间,因此青睐于具备兴趣、自我驱动、敢于尝试等创业特质的人
aimicheng
2017-03-29 10:36:36 +08:00
@11 类似出土文物的意思
Weny
2017-03-29 10:42:50 +08:00
LZ 的趋势 开除 HR 写个语义分析来处理简历就可以了咯
11
2017-03-29 11:23:25 +08:00
@aimicheng ancient?
AbrahamGreyson
2017-03-29 11:53:09 +08:00
@aimicheng 书里也这么说 ,厉害了我的哥。
chnhyg
2017-03-29 11:58:30 +08:00
14 points ,可惜岗位在北京
galenyuan
2017-03-29 12:09:31 +08:00
```javascript
const skillPoints = ['es6', 'babel', 'webpack', 'gulp', 'grunt', 'react', 'vue'].reduce(
(res, skill) => {
return skills.indexOf(skill) ? res + 1 : res
}, 0);
```

请保持代码简洁
galenyuan
2017-03-29 12:53:59 +08:00
skills.indexOf(skill) === -1 😂
akq
2017-03-29 12:54:44 +08:00
@galenyuan 请用 return ~skills.indexOf(skill) && res + 1; 你的有 bug

@aimicheng 会用这些 js 框架的不代表水平和品位的高低,一样见过拿 react 写的极土的网页。
galenyuan
2017-03-29 12:56:08 +08:00
@akq 失误 😂 没注意看
akq
2017-03-29 12:59:36 +08:00
@galenyuan 抱歉没看到你更新。我的也出 bug 了。汗。
DaraW
2017-03-29 15:30:53 +08:00
收实习吗==
aimicheng
2017-03-29 18:33:25 +08:00
@DaraW 收实习
hronro
2017-03-29 19:09:51 +08:00
`if (skills.indexOf(skill))` -> `if (skills.includes(skill))`
谢谢
bonfy
2017-03-29 19:14:02 +08:00
@huntererer #7

+1
DaraW
2017-03-29 22:34:16 +08:00
@aimicheng 简历已发,谢谢!
v2dogas
2017-03-29 22:48:21 +08:00
头像蠢
内容中二
暴露智力系列
hiwower
2017-03-30 08:24:10 +08:00
看着你们英文写注释,好羡慕

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/350970

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX