Programming blindness and security
Here is a thought and a theory that has recently struck me.
One reason that writing secure programs is hard is because programmershave a kind of blindness about our own code. Instead of seeing the codeas it really is, we tend to see the code as we imagine it in our heads,and as a result we see what we wrote it to do, not what it actuallydoes.
(This is not usually a literal blindness, although we can do that too,but a disconnect between what the the
廣州一年級學生說出“我的志願”
https://www.zonaeuropa.com/200909a.brief.htm#003
“你长大了想做什么?”
“想做官。”
“做什么样的官呢?”
“做……贪官,因为贪官有很多东西。”
Environment variables make bad switches
Someday you may be faced with a deprecation situation where you need to add a compatibilityswitch to your program. When in this situation it may be tempting toresort to controlling things with an environment variable, instead ofgiving your program yet another command line option.
(The problem with using command line options is that they add clutter,complexity, or both to your documentation, including any usage stuffthat the program prints.)
Unfortunately this is not a good way to add such switches to yourprogram, especially compatibility switches
想法一致
轉載自《 蘋果日報 》
傳媒踢爆幾位藝人婚訊,原來早已秘密註冊了。於是各界人士尤其 fans都不滿他們「說謊」,表現激動的還哭訴被騙,大表失望。
當事人有顧左右言他、不回應、身邊人封嘴,也有公開道歉,用上「違諾
