danglingfarpointer's memoization

仕事周りでの気付き、メモ、愚痴などを書いていきます。

Java

「レガシーコード改善実践録」

lombok: JavaのSetter/Getter自動生成 SonarQube: ソースコード・メトリクス収集 参考になるメトリクス: 「サイクロマティック複雑度(循環的複雑度)」 テスト: SQLiteのテストコード量は、本体のコード量の約680倍 Mockit: モックライブラリ AssertJ: 心地…

Javaから外部コマンド起動

Javaから外部コマンドを起動するサンプルプログラム。 import java.io.File; import java.io.IOException; public class ProcessRunner { public static int exec(String exePath, String dir) throws IOException, InterruptedException { ProcessBuilder p…