Tags

    教訓シリーズ、動いているからといって

     プログラムが予想通りに動いているからと言って、それが正しく無いこともある。

     NSMenuItem *item = [popUp itemWithTitle:[item title];

     この1行だけ見れば、おかしいのは一目瞭然なのだけど、これが、希望したように動いたりしちゃうと、埋もれてしまう。この行はコンパイラーのエラーも出ない。自分の環境ではこれで動いていても、他の環境に持っていくと、落ちたり、落ちなかったり。。。落ちない方が不思議なんだけど、こんな事も起こり得るってこと。他にも30万行の中に同じような過ちが紛れているかもしれない。


    Comments

    /users/kiwamu/search/index.rss?tag=hotlist/users/kiwamu/search/?tag=hotWhat’s HotHotListHot!?tag=hot0/users/kiwamu/sidebar/HotListNo items tagged with hot.hot/users/kiwamu/search/index.rss?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomelist/users/kiwamu/search/?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomeRecent ChangesRecentChangesListUpdates?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcome0/users/kiwamu/sidebar/RecentChangesListmodifiedDateallRecent ChangesRecentChangesListUpdateswiki/welcomeNo recent changes.reverse5search