Smallwig
Go to: Smallwig
2 shares
The smallwig theory of optimization
via smallwig by Kevin Bourrillion on April 15, 2008
There are three kinds of optimization. Optimization by using a more sensible overall approach.Optimization by making the code less weird.Optimization by making the code more weird.You've probably heard, and maybe even spouted yourself, the phrase "premature optimization is the root of all evil." It's exclusively "Type 3 optimization" that this aphorism applies to. Types 1 and 2 are...
Shared by: Justin Rudd, Mihai,
[ Back to top]
2 shares
Common Java unchecked exception types
via smallwig by Kevin Bourrillion on June 16, 2008
I've noticed a lot of confusion about what type of unchecked exception is the right one to throw under various circumstances. Here's a very simple explanation of the most common types.NullPointerException - multiple schools of thought on this one. Of course, it's thrown automatically by the runtime when you try to dereference null. Many say that you should never rely on this...
Shared by: Bob Lee, Mustafa K. Isik,
[ Back to top]