Tag Info

New answers tagged

1

Obviously, bugs happen because we make mistakes, but that's not really the problem: when you forget to write a semicolon in your source code, that's also a mistake, but the compiler will tell you exactly what you did wrong and exactly where, so it won't be much of a problem to correct it and proceed with your life. Bugs are hard to track because their ...


2

Possibly the best use of assert: assert( foo != null ); Nulls have been called a billion dollar mistake, and making your code smarter about null handling can save you a lot of headaches. IntelliJ IDEA has extensive static analysis of nulls, and is aggressive about warning about nulls. Not only does this help with more null-sensitive JVM languages ...



Top 50 recent answers are included