Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

spec change

有种事情会造成无法预料的后果,就是 spec change
一旦出现了这种事情,程序中所有的 ASSERT 都必须从头考虑 :(
因为时间序列的数据可能出现,也可能不出现

这种代码写得真是比较糟糕
代码正确的前提就是时间范围的准确,因此在开始就多次申请确认时间范围,描述算法,没想到一切完工,最初的前提却变了 :(

郁闷一下
Tags: 小东西
Subscribe

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • #thotcon badge?

    [root@m4700 ~]# esptool write_flash 0x00000 /home/yuan/tracking/thotcon0x9/tc0x9.bin esptool.py v2.3.1 Connecting.... Detecting chip type...…

  • Portfolio weighted averages

    Last week I got an assignment to make a small Java library for some often used portfolio calculations. A portfolio is a collection of holdings, each…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments