LoginSignup
3
2

More than 5 years have passed since last update.

残念なコード

Posted at

古いコードをメンテしてて発見した何だか残念な気分にひたれるコード

$global_hoge = 1;
// .....
function hoge($foo, $bar)
{
    // $global_hoge = 7;
    $bazz = get_bazz_array($global_hoge);
    if ($bazz)foreach($bazz as $key => $val){
        $array[$key] = true;
    }
    // .....
}

直すのつらい。

3
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2