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

今年你写了多少行代码?

  •  
  •   Sai · Dec 31, 2010 · 11479 views
    This topic created in 5786 days ago, the information mentioned may be changed or developed.
    到了年底,就会有各种总结,作为一个程序员,代码行数大概是衡量这一年充实与否的一个参考。
    不过……要怎么统计呢?
    25 replies  •  1970-01-01 08:00:00 +08:00
    Livid
    Livid
    MOD
    PRO
    Dec 31, 2010
    1
    port install sloccount
    napoleonu
    napoleonu
    Dec 31, 2010
    2
    #wc -l somefile | awk '{print $1}'
    napoleonu
    napoleonu
    Dec 31, 2010
    3
    wc连文件夹下面所有文件的行都可以统计啊,统计三层目录的:

    #wc -l /home/* /home/*/* /home/*/*/*

    看到一个:

    find /home/ -type f -exec wc -l {} \; | awk '{total += $1} END{print total}'
    bcxx
    bcxx
    Dec 31, 2010
    4
    虽说不算是一个程序员,但为了准备NOIp,也写了快5K行代码了……
    chone
    chone
    Dec 31, 2010
    5
    可以直接用源代码大小来衡量,这个更简单也更具参考性
    shellex
    shellex
    Dec 31, 2010
    6
    很难判定...哪些是今年写的...
    sophon
    sophon
    Jan 1, 2011 via Android
    7
    哈哈,直接按照M算吧。
    timshi
    timshi
    Jan 1, 2011
    8
    The person with the least amount wins!
    yanyanlong
    yanyanlong
    Jan 1, 2011
    9
    在公司qa有统计,大约2w行的plsql..
    napoleonu
    napoleonu
    Jan 1, 2011
    10
    @timshi 我0行
    jjgod
    jjgod
    Jan 1, 2011
    11
    可能是负数。
    bluef
    bluef
    Jan 1, 2011
    12
    大概五千行actionscript + 八行php
    Los
    Los
    Jan 1, 2011
    13
    5W C&C++ 有效代码
    6K ruby 有效代码
    500 python

    汗,发觉C&C++跟ruby对比强烈
    gonghao
    gonghao
    Jan 1, 2011
    14
    @bluef PHP需求这么大?!
    timshi
    timshi
    Jan 2, 2011
    15
    @napoleonu good for you

    @jjgod well done!
    mayokaze
    mayokaze
    Jan 7, 2011
    16
    偏执one liner情何以堪
    avril
    avril
    Jan 7, 2011
    17
    00000……
    cruiserdou
    cruiserdou
    Jan 8, 2011
    18
    好多好多,写了一年代码!
    WarWithinMe
    WarWithinMe
    Jan 15, 2011
    19
    4个月,2W-3W行C++左右。。。
    Len
    Len
    Jan 15, 2011 via iPhone
    20
    由于noip很多……
    silver0511
    silver0511
    Jan 19, 2011
    21
    好少好少
    freefcw
    freefcw
    Jan 19, 2011
    22
    不能用代码行数来判断一个人的工作,和能力- -
    chinese_zmm
    chinese_zmm
    Jan 19, 2011
    23
    写了很多,又删了很多。。
    thicket
    thicket
    Jan 31, 2011
    24
    几十M吧~~
    qingyulive
    qingyulive
    Feb 1, 2011
    25
    做IOS配置的算不算程序员?
    去年几万行总有的。
    不过主要是copy and paste...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4473 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 01:12 · PVG 09:12 · LAX 17:12 · JFK 20:12
    ♥ Do have faith in what you're doing.