天天看点

【程序媛晒83行代码】超独特个性小姐姐,happy(被)来(逼)的

在中国程序媛中,他们的代码有什么样的魅力,Aone联合云栖社区、饿了么、钉钉、阿里云、天猫、口碑发起首届程序媛比码活动——不秀大长腿,秀高智商;不秀美图照,秀代码图,参与晒码互动游戏赢“83行代码”T恤!

我们来说说这群女工程师的第83行代码及代码背后的故事:

听说程序媛这个物种十分罕见,我是作为罕见中的一员happy(被)来(逼)的,毕业几年的人生感悟:每个人在浩瀚的宇宙中都有自己独特的坐标,这个坐标会因为你的选择而变的不同,同样这个世界也会因为你坐标的移动而变得不同!SO,COME ON 加入我们,让我们一起改变世界,成就更好的自己!我在tmall一直等你![email protected] 

【程序媛晒83行代码】超独特个性小姐姐,happy(被)来(逼)的

package tmall;

import lombok.*;

/**

  • Created by caiyue on 2018/7/16.

    */

@AllArgsConstructor

class Business {

private String buName, salary, awardMoney, mission, colleague;
public Person change(Person p) {return p;}
public String toString() {
    return buName + "公司:[工资:" + salary + ",奖金:" + awardMoney + ",同事:" + colleague + ",使命:" + mission + "]";
}           

}

@Data

class Person {

private String role, x, y, z;
public String toString() {return role + ":[" + x + "、" + y + "、" + z + "]";}           

class TmallBu extends Business {

public TmallBu(String buName, String salary, String awardMoney, String misson, String colleague) {
    super(buName, salary, awardMoney, misson, colleague);
}
public Person change(Person p) {
    switch (p.getRole()) {
        case "程序媛": 
            return new Person(p.getRole(), "人美", "码赞", "会生活");
        case "程序员": 
            return new Person(p.getRole(), "人帅", "钱多", "疼老婆");
        default: 
            return new Person(p.getRole(), "坐标丢失", "坐标丢失", "坐标丢失");
    }
}           

public class TransformAll {

public static void main(String[] args) {
    Business tmall = new TmallBu("天猫", "五颗星", "五颗星", "改变自己改变世界", "一群有情有义的人");
    Person ordinaryGirl = new Person("程序媛", "定位自我", "找寻理想", "探索生活意义");
    Person tmallProgrammerGirl = tmall.change(ordinaryGirl);
    System.out.println(tmall.toString());
    System.out.println(tmallProgrammerGirl.toString());
    System.out.println("欢迎来天猫一起成为更好的自己!");
}           

与采月小姐姐互动,为她打call——> 点击进去采月晒码

更多小姐姐,点击进入查看代码

有被代码耽误的钉钉吃货程序媛,写代码写到忘记吃饭的——采霜

她急需能把她从代码中叫醒去吃饭的小伙伴,赶紧勾搭;

http://yq.aliyun.com/roundtable/126499/answer/170319#visit170319

有以代码为乐的饿了么大前端打(bei)杂(guo)工程师——敖天羽

http://yq.aliyun.com/roundtable/126499/answer/170299#visit170299

还有全栈美女工程师——前端后端一锅端的——墨瑜女神

http://yq.aliyun.com/roundtable/126499/answer/170316#visit170316

还有阿里云活好码赞,像男人一样活着的技术专家小姐姐——清宵

http://yq.aliyun.com/roundtable/126499/answer/170296#visit170296

和天猫Java程序媛,happy(被)来(逼)的——采月

http://yq.aliyun.com/roundtable/126499/answer/170354#visit170354

阿里口碑 搜索推荐组的JAVA女工程师——妍霏

http://yq.aliyun.com/roundtable/126499/answer/214059#visit214059

阿里口碑基础平台技术部的工程师-衔远,一个技术与马甲线并存的mm

http://yq.aliyun.com/roundtable/126499/answer/248798#visit248798

云栖社区聚能聊专家,具有知性温婉气质的——海洋的云

http://yq.aliyun.com/roundtable/126499/answer/170290#visit170290

福州市五佰网络科技有限公司的Java女工程师——江小白太白

http://yq.aliyun.com/roundtable/126499/answer/189332#visit189332

在下*的程序媛——cn_suqingnian

http://yq.aliyun.com/roundtable/126499/answer/170309#visit170309

交通银行的前端女工程师——昆0830

http://yq.aliyun.com/roundtable/126499/answer/201979#visit201979