[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Dear Maven:
The fucking ERROR message is “Compilation Failure”, ya fucksticks.
Sincerely,
Everyone who understand the definition of the words “Error” and “Info”
P.S. Thanks a million for letting us configure the log message level.
9 months ago
switch (someStringIGot)
{
case "foo" :
doSomething();
case "bar" :
doSomethingElse
default:
throw new RuntimeException("Sorry dude");
}
- If I understand that this is a compact if-else-if construct, why can’t Java?
- What is the purpose of requiring me to have break? Fall-through is usually seen as a code-smell, and should be avoided.
9 months ago
float f = Float.NaN;
How the fuck can a number hold something that’s not a number?!?!?
9 months ago
Map<int,List<Float>> whyTheFuckAmIRepeatingMyself = new HashMap<int,List<Float>>();
The irony is, these types are discarded and only relevant at compile time. Then why am I typing them so God damn much??!?!
The solution: if you aren’t gonna actually enforce the types, save me some typing:
List list = getMeAList();
String s = list.get(4);
9 months ago
public class RetardedSyntaxerror
{
public static void main(String args[])
{
doit(5);
}
public static void doit(Float f) { }
}
9 months ago