News for hackers. Stuff that matters.
Re:Fizz Buzz codegolf challenge in 15 languages by hallowtech on Friday December 14, 2012 @12:34PM (#4922074)
I don't understand why this only gets a score of 1:

    static String[] c = { "", "FizzBuzz", "Buzz", "Fizz" };
    public static void main(String[] args)
    {
        for(int i = 1; i <= 100; i++)
        {
            c[0] = ""+i;
            int f = ((int)Math.ceil((i%3)/3.0))+1;
            int b = ((int)Math.ceil((i%5)/5.0))*2;
            System.out.println(c[(f+b)%4]);
        }
    }
Re:Fizz Buzz codegolf challenge in 15 languages by ricardobeat on Friday December 14, 2012 @12:35PM (#4922079)
Because it's huge and this is a code golf challenge?
Re:Fizz Buzz codegolf challenge in 15 languages by hallowtech on Friday December 14, 2012 @12:43PM (#4922129)
=\ No point in trying with Java then?
Re:Fizz Buzz codegolf challenge in 15 languages by Tuna-Fish on Friday December 14, 2012 @01:34PM (#4922391)
You can do some decent golfing in Java. For improvement, how about removing all the casts, FP arithmetic, everything from Math, etc?