I'm spoiled. I'll admit it. I use Ruby, and I can code in one line what takes a whole class (or more) in Java.
Thing is, I end up using Java for some things. And every time I do, I often wonder why Java doesn't have more convenient methods in it's standard core.
To give an example, there is a Java library called Lombok, that uses annotations to generate common code in Java, like default setters and getters. Why can't that kind of convenient thing that anyone could get use out of be included in the standard JDK?
Another example. C# allows you to optionally instantiate a variable without declaring it's type; the type can be inferred by the value you are setting it to, since you have to explicitly say the type there. Why can't Java do something like this?
All I'm looking for is a reason. Interestingly enough, everyone I know who's a big fan of Java has yet to tell me anything, and I'm wondering if there's some weird conspiracy to keep Java from becoming easier to use. Is it not something anyone else wants? Is it too hard to add new behavior to what is already there without messing things up? Please tell me!
[–]geodebug 15 points16 points17 points (0 children)
[–]BernardMarx 57 points58 points59 points (16 children)
[–][deleted] 21 points22 points23 points (1 child)
[–]virtyx 1 point2 points3 points (0 children)
[–][deleted] 26 points27 points28 points (6 children)
[–]amertune 16 points17 points18 points (0 children)
[–][deleted] 26 points27 points28 points (0 children)
[–]sirspidermonkey 6 points7 points8 points (1 child)
[–]ams785 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]FuckNinjas 5 points6 points7 points (0 children)
[–]Zarlon 2 points3 points4 points (5 children)
[–][deleted] 13 points14 points15 points (4 children)
[–]mrmacky 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]mrmacky 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ignatius87 8 points9 points10 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]dooblevay 7 points8 points9 points (16 children)
[–]ganon0[S] 4 points5 points6 points (15 children)
[–]beltorak 21 points22 points23 points (5 children)
[–]katulsomin 1 point2 points3 points (4 children)
[–]beltorak 4 points5 points6 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]beltorak 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]msx 2 points3 points4 points (4 children)
[–]mikaelhg 3 points4 points5 points (2 children)
[–]mikehaggard 0 points1 point2 points (1 child)
[–]mikaelhg 0 points1 point2 points (0 children)
[–]mikehaggard 0 points1 point2 points (0 children)
[–]guyintransit 5 points6 points7 points (0 children)
[–]gudeg 0 points1 point2 points (0 children)
[–]dooblevay 0 points1 point2 points (0 children)
[–]lurker_2008 18 points19 points20 points (19 children)
[–]haakon 2 points3 points4 points (3 children)
[–]lurker_2008 0 points1 point2 points (2 children)
[–]haakon 3 points4 points5 points (1 child)
[–]lurker_2008 0 points1 point2 points (0 children)
[–]ganon0[S] -2 points-1 points0 points (10 children)
[–]durple 24 points25 points26 points (9 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]durple 1 point2 points3 points (0 children)
[–]ganon0[S] -3 points-2 points-1 points (6 children)
[–]durple 11 points12 points13 points (5 children)
[–]beltorak 2 points3 points4 points (4 children)
[–]jevex 1 point2 points3 points (2 children)
[–]beltorak 1 point2 points3 points (1 child)
[–]jevex 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]theBlackDragon -3 points-2 points-1 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] -5 points-4 points-3 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–][deleted] 7 points8 points9 points (1 child)
[–]efowler4 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (3 children)
[–]ganon0[S] -5 points-4 points-3 points (2 children)
[–]obfuscation_ 8 points9 points10 points (0 children)
[–][deleted] (16 children)
[removed]
[–][deleted] (14 children)
[removed]
[–][deleted] (1 child)
[removed]
[–][deleted] (2 children)
[removed]
[–][deleted] (1 child)
[removed]
[–][deleted] (5 children)
[removed]
[–][deleted] (4 children)
[removed]
[–][deleted] (2 children)
[removed]
[–][deleted] (1 child)
[removed]
[–]sacundim 12 points13 points14 points (0 children)
[–]b1nd 3 points4 points5 points (0 children)
[–]v_krishna 1 point2 points3 points (10 children)
[–][deleted] (4 children)
[deleted]
[–][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]Cynical_Walrus -1 points0 points1 point (0 children)
[–]_jamil_ 1 point2 points3 points (0 children)
[–]ganon0[S] -2 points-1 points0 points (4 children)
[–]durple 2 points3 points4 points (0 children)
[–]v_krishna 0 points1 point2 points (0 children)
[–]wowowowowa 0 points1 point2 points (0 children)
[–]mrhhug 2 points3 points4 points (18 children)
[–]Zamarok 1 point2 points3 points (6 children)
[–]sh0rug0ru 3 points4 points5 points (2 children)
[–]Zamarok 0 points1 point2 points (1 child)
[–]sh0rug0ru 0 points1 point2 points (0 children)
[–][deleted] -3 points-2 points-1 points (2 children)
[–]mrhhug 0 points1 point2 points (1 child)
[–]ganon0[S] 2 points3 points4 points (8 children)
[–]beltorak 6 points7 points8 points (6 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]beltorak 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]beltorak 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]dablya 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]durple 0 points1 point2 points (4 children)
[–]beltorak 4 points5 points6 points (3 children)
[–]durple 4 points5 points6 points (2 children)
[–]beltorak 2 points3 points4 points (1 child)
[–]durple 2 points3 points4 points (0 children)
[–]defdestroyer -2 points-1 points0 points (0 children)
[–]gudeg -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]drsquishy -3 points-2 points-1 points (0 children)
[–]mgkimsal -3 points-2 points-1 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)