• 请不要在回答技术问题时复制粘贴 AI 生成的内容
unbug
V2EX  ›  程序员

你被强迫写过哪些违背意愿的代码?

  •  
  •   unbug · Mar 17, 2018 · 7834 views
    This topic created in 3154 days ago, the information mentioned may be changed or developed.

    可以试试这个模块 https://github.com/unbug/against-my-will

    Against My Will

    Have you been forced to make code changes against your will?

    You're not alone!

    Please never forget you have the right to tell the truth.

    Import this code to you project is a way to get started.

    Languages

    JavaScript

    Install

    npm install --save against-my-will
    

    Usages

    
    import AMW from 'against-my-will';
    
    // I am forced to make this code change.
    if (AMW(99)) {
      // TODO This code change is against my will
    }
    

    Contribution

    Please feel free to add your favorite language to this repo, and change this README.

    https://github.com/unbug/against-my-will

    29 replies  •  2018-03-19 09:35:20 +08:00
    gowl
    gowl
    Mar 17, 2018
    1
    作业要用.VBA 写.....
    theTd
    theTd
    Mar 17, 2018❤️1
    2
    “越简单越好,能用就行”
    RqPS6rhmP3Nyn3Tm
    RqPS6rhmP3Nyn3Tm
    Mar 17, 2018 via iPhone❤️1
    3
    “ Don ’ t care about security and maintenance, just get it working ”
    zyxbcde
    zyxbcde
    Mar 17, 2018 via Android❤️2
    4
    变量名函数名不让我用拼音。
    iAcn
    iAcn
    Mar 17, 2018 via Android
    5
    为了追求极致的速度,不讲解耦,甚至连非 null 判断都不做的...
    diggerdu
    diggerdu
    Mar 17, 2018 via iPhone❤️7
    6
    方校长有话说
    unbug
    unbug
    OP
    Mar 17, 2018
    7
    @zyxbcde hahahaha
    dilu
    dilu
    Mar 17, 2018
    8
    Toast.info("缓存清除成功");
    v2mm
    v2mm
    Mar 17, 2018❤️3
    9
    千万级规格的 ACL 设备,干嘛用,你懂的
    fangchang
    fangchang
    Mar 17, 2018
    10
    TSP,TOPTW 这些问题用机器学习。。。。。内心是呼喊着草泥马的
    Xbluer
    Xbluer
    Mar 17, 2018
    11
    @zyxbcde 那用什么?
    easylee
    easylee
    Mar 17, 2018
    12
    cout<<(wife_mind?"girlfriend is right":"girlfriend is right");
    GG668v26Fd55CP5W
    GG668v26Fd55CP5W
    Mar 17, 2018 via iPhone
    13
    被迫写了一些硬编码的代码😅
    zythum
    zythum
    Mar 17, 2018
    14
    这代码质量啊,参数类型都不判断,如果 pain 是负数 或者 非数字,就傻逼了....
    menc
    menc
    Mar 17, 2018
    15
    你们写代码没有 code review ?这代码能通过 code review ?
    SingeeKing
    SingeeKing
    Mar 17, 2018
    16
    使用 VB 完成大数乘法。。。
    diggerdu
    diggerdu
    Mar 17, 2018 via iPad
    17
    @fangchang tsp 用神经网络好像有看过 paper
    MinonHeart
    MinonHeart
    Mar 17, 2018 via iPhone
    18
    这英语读着难受,一定是有语病
    zhenizhui
    zhenizhui
    Mar 17, 2018
    19
    h82258652
    h82258652
    Mar 18, 2018
    20
    感觉楼上你们都还好啊,只是写法上的问题。
    之前在一家做客户端的时候,老板让我加开机启动(还要是弄成这功能无法关闭的)。程序也是卸载不干净的。
    后来提的需求越来越恶心,我就跑路了。
    orangeade
    orangeade
    Mar 18, 2018 via Android❤️3
    21
    坐等 GFW 程序员
    chinvo
    chinvo
    Mar 18, 2018
    22
    被迫不解耦,不分层,不抽象,web 强制开 app,客户端多渠道开机自启,向着流氓软件的深渊大步前进

    赶紧结单不管了,留一坨几乎不能维护的代码给甲方,再怎么额外加钱都不给做维护,现在或许已经死了

    @orangeade #21 前面已经有了吧
    QK8wAUi0yXBY1pT7
    QK8wAUi0yXBY1pT7
    Mar 18, 2018
    23
    @diggerdu 据说方校长是自己卖屁股的
    3IOhG7M0knRu5UlC
    3IOhG7M0knRu5UlC
    Mar 18, 2018 via Android
    24
    说起来 就这几行代码还搞个包
    fan123199
    fan123199
    Mar 18, 2018
    25
    启动页广告
    hbhswj
    hbhswj
    Mar 18, 2018 via Android
    26
    @h82258652 2345 浏览器?
    qhxin
    qhxin
    Mar 18, 2018
    27
    http 劫持,截取拷贝监听
    Coioidea
    Coioidea
    Mar 18, 2018
    28
    @orangeade 楼上有一个,acl 应该就是
    e8c47a0d
    e8c47a0d
    Mar 19, 2018
    29
    去支持 IE 浏览器
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1252 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 71ms · UTC 22:18 · PVG 06:18 · LAX 14:18 · JFK 17:18
    ♥ Do have faith in what you're doing.