The last 2 days, i've been doing some Java programming. I have a hard time understanding how some programmers can stand it. For example, a simple thing as checking if a numeric variable is >0 or if a bitwise AND is >0 (true) is a mess in Java and really pollutes the code.
I found out that the if statement expects a boolean so i have to do: if(variable != 0) { }. I actually tried doing a typecast from an int to a boolean. But that's not allowed either.
This is not sane!
I wonder if C# has the same stupidity...